[Dedicated] Fix dedis on wine
This commit is contained in:
parent
66dd013925
commit
244b46ac0d
@ -41,6 +41,12 @@ namespace Components
|
|||||||
|
|
||||||
LocalFree(argv);
|
LocalFree(argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Workaround for wine
|
||||||
|
if (Utils::IsWineEnvironment() && Dedicated::IsEnabled() && !Flags::HasFlag("console") && !Flags::HasFlag("stdout"))
|
||||||
|
{
|
||||||
|
Flags::EnabledFlags.push_back("stdout");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Flags::Flags()
|
Flags::Flags()
|
||||||
|
@ -294,8 +294,11 @@ namespace Components
|
|||||||
Utils::Hook::Set<BYTE>(0x4DACA2, 0xEB);
|
Utils::Hook::Set<BYTE>(0x4DACA2, 0xEB);
|
||||||
|
|
||||||
// require Windows 6 (Vista)
|
// require Windows 6 (Vista)
|
||||||
Utils::Hook::Set<BYTE>(0x467ADF, 6);
|
if (!Utils::IsWineEnvironment())
|
||||||
Utils::Hook::Set<char>(0x6DF5D6, '6');
|
{
|
||||||
|
Utils::Hook::Set<BYTE>(0x467ADF, 6);
|
||||||
|
Utils::Hook::Set<char>(0x6DF5D6, '6');
|
||||||
|
}
|
||||||
|
|
||||||
// disable 'ignoring asset' notices
|
// disable 'ignoring asset' notices
|
||||||
Utils::Hook::Nop(0x5BB902, 5);
|
Utils::Hook::Nop(0x5BB902, 5);
|
||||||
|
Loading…
Reference in New Issue
Block a user