fix: use int64 for gsc magic
This commit is contained in:
parent
cf9c856c4d
commit
a73b0e21d3
@ -69,7 +69,7 @@ namespace script
|
||||
{
|
||||
std::string data;
|
||||
auto script_file = script.generic_string();
|
||||
if (!std::filesystem::is_directory(script) && utils::io::read_file(script_file, &data) && *(int*)data.c_str() == 0x43534780)
|
||||
if (!std::filesystem::is_directory(script) && utils::io::read_file(script_file, &data) && *(uint64_t*)data.c_str() == 0x1C000A0D43534780)
|
||||
{
|
||||
print_loading_script(script_file);
|
||||
load_script(script_file, data);
|
||||
|
Loading…
Reference in New Issue
Block a user