Merge pull request #314 from diamante0018/develop

Return correct working directory
This commit is contained in:
fed 2022-08-07 19:15:53 +00:00 committed by GitHub
commit aacca32cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,12 @@ namespace filesystem
return true; return true;
} }
const char* sys_default_install_path_stub()
{
static auto current_path = std::filesystem::current_path().string();
return current_path.data();
}
} }
std::string read_file(const std::string& path) std::string read_file(const std::string& path)
@ -198,6 +204,7 @@ namespace filesystem
void post_unpack() override void post_unpack() override
{ {
utils::hook::call(0x14060B052, fs_startup_stub); utils::hook::call(0x14060B052, fs_startup_stub);
utils::hook::jump(0x140624050, sys_default_install_path_stub);
} }
}; };
} }