move is_wine bool to g_config
This commit is contained in:
parent
f79b7db8cd
commit
e9b585f440
7 changed files with 15 additions and 13 deletions
|
@ -1067,6 +1067,8 @@ static void cfg_create_ini()
|
|||
|
||||
static void cfg_init()
|
||||
{
|
||||
g_config.is_wine = real_GetProcAddress(GetModuleHandleA("ntdll.dll"), "wine_get_version") != 0;
|
||||
|
||||
/* get process filename and directory */
|
||||
if (GetModuleFileNameA(NULL, g_config.game_path, sizeof(g_config.game_path) - 1) > 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue