This commit is contained in:
Nishi 2026-02-01 22:34:10 +09:00
commit e9b4f88a5c
Signed by: nishi
GPG key ID: 27EF69B208EB9343
3 changed files with 19 additions and 9 deletions

View file

@ -9,11 +9,27 @@
#include <GearSrc/Net.h>
#include <GearSrc/Physics.h>
#ifdef _WIN32
#include <winsock.h>
#endif
#include <stb_ds.h>
#ifdef _WIN32
static void init_winsock(void){
WSADATA wsa;
WSAStartup(MAKEWORD(1, 1), &wsa);
}
#endif
void GSInit(void) {
GSVersion version;
#ifdef _WIN32
init_winsock();
#endif
GSVersionGet(&version);
GSLog(NULL, GSLogInfo, "GearSrc Engine %s", version.string);