Allow to differentiate platforms

This commit is contained in:
Kenzzer 2024-10-03 23:25:06 +02:00
parent a019747b42
commit 2b10550fc3
No known key found for this signature in database
GPG Key ID: A4474D96720FD722

View File

@ -73,12 +73,22 @@ SMCResult SignatureGameConfig::ReadSMC_NewSection(const SMCStates *states, const
}
// Handle platform specific sections first.
#ifdef DYNAMICHOOKS_x86_64
#if defined WIN32
if (!strcmp(name, "windows64"))
#elif defined _LINUX
if (!strcmp(name, "linux64"))
#elif defined _OSX
if (!strcmp(name, "mac64"))
#endif
#else
#if defined WIN32
if (!strcmp(name, "windows"))
#elif defined _LINUX
if (!strcmp(name, "linux"))
#elif defined _OSX
if (!strcmp(name, "mac"))
#endif
#endif
{
// We're already in a section for a different OS that we're ignoring. Can't have a section for our OS in here.
@ -99,13 +109,8 @@ SMCResult SignatureGameConfig::ReadSMC_NewSection(const SMCStates *states, const
g_PlatformOnlyState = g_ParseState;
return SMCResult_Continue;
}
#if defined WIN32
else if (!strcmp(name, "linux") || !strcmp(name, "mac"))
#elif defined _LINUX
else if (!strcmp(name, "windows") || !strcmp(name, "mac"))
#elif defined _OSX
else if (!strcmp(name, "windows") || !strcmp(name, "linux"))
#endif
else if (!strcmp(name, "windows") || !strcmp(name, "linux") || !strcmp(name, "mac")
|| !strcmp(name, "windows64") || !strcmp(name, "linux64") || !strcmp(name, "mac64"))
{
if (g_PlatformOnlyState != PState_None)
{