[Dedicated] Fix dedis on wine

This commit is contained in:
momo5502 2017-06-30 11:09:01 +02:00
parent 66dd013925
commit 244b46ac0d
2 changed files with 11 additions and 2 deletions

View File

@ -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()

View File

@ -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);