MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / HexStr2Int_replacement

Function HexStr2Int_replacement

src/Misc/Hooks.BugFixes.cpp:1381–1385  ·  view source on GitHub ↗

Suppress Ares' swizzle warning

Source from the content-addressed store, hash-verified

1379
1380// Suppress Ares' swizzle warning
1381size_t __fastcall HexStr2Int_replacement(const char* str)
1382{
1383 // Fake a pointer to trick Ares
1384 return std::hash<std::string_view>{}(str) & 0xFFFFFF;
1385}
1386
1387DEFINE_FUNCTION_JUMP(CALL, 0x6E8305, HexStr2Int_replacement); // TaskForce
1388DEFINE_FUNCTION_JUMP(CALL, 0x6E5FA6, HexStr2Int_replacement); // TagType

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected