MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / IsPlatformCompatible

Function IsPlatformCompatible

core/logic/GameConfigs.cpp:134–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134static inline bool IsPlatformCompatible(const char *platform, bool *hadPrimaryMatch)
135{
136 if (DoesPlatformMatch(platform))
137 {
138#if defined PLATFORM_COMPAT_ALT
139 *hadPrimaryMatch = true;
140#endif
141 return true;
142 }
143
144#if defined PLATFORM_COMPAT_ALT
145 /* If entry hasn't been found for the primary platform name, check for compatible alternate */
146 if (!*hadPrimaryMatch)
147 return strcmp(platform, PLATFORM_COMPAT_ALT) == 0;
148#endif
149
150 return false;
151}
152
153static inline time_t GetFileModTime(const char *path)
154{

Callers 1

ReadSMC_KeyValueMethod · 0.85

Calls 1

DoesPlatformMatchFunction · 0.85

Tested by

no test coverage detected