Allow offline play

This fixes #19
This commit is contained in:
momo5502 2021-03-09 18:59:24 +01:00
parent d4ca18258c
commit 6ba4e274e2

View File

@ -327,6 +327,12 @@ namespace demonware
return ioctlsocket(s, cmd, argp);
}
BOOL internet_get_connected_state_stub(LPDWORD, DWORD)
{
// Allow offline play
return TRUE;
}
}
void bd_logger_stub(const char* const function, const char* const msg, ...)
@ -390,6 +396,11 @@ namespace demonware
if (function == "#52") return io::gethostbyname_stub;
}
if (function == "InternetGetConnectedState")
{
return io::internet_get_connected_state_stub;
}
return nullptr;
}