Don't load modules that we have HLE implementations of.

This commit is contained in:
Henrik Rydgard
2012-11-05 10:25:28 +01:00
parent b214a1a1da
commit 8f751efe4d
2 changed files with 46 additions and 23 deletions
+6
View File
@@ -138,10 +138,16 @@ bool TryParse(const std::string &str, u32 *const output)
return false;
if (ULONG_MAX > UINT_MAX) {
#ifdef _MSC_VER
#pragma warning disable(4309);
#endif
// Note: The typecasts avoid GCC warnings when long is 32 bits wide.
if (value >= static_cast<unsigned long>(0x100000000ull)
&& value <= static_cast<unsigned long>(0xFFFFFFFF00000000ull))
return false;
#ifdef _MSC_VER
#pragma warning enable(4309);
#endif
}
*output = static_cast<u32>(value);