mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-04-20 05:25:44 +00:00
fixes
This commit is contained in:
parent
3f406c26e7
commit
eec84e91ff
@ -72,7 +72,7 @@ namespace fileio
|
||||
|
||||
if (!fs_gamedir)
|
||||
{
|
||||
fs_gamedir = game::Dvar_FindVar("fs_gamedir");
|
||||
fs_gamedir = game::Dvar_FindVar("fs_game");
|
||||
}
|
||||
|
||||
return std::filesystem::path(fs_localAppData->current.string) / (*fs_gamedir->current.string ? fs_gamedir->current.string : "raw") / path;
|
||||
@ -234,6 +234,7 @@ namespace fileio
|
||||
#ifdef DEBUG
|
||||
printf("gscr_fs_fopen: opening %s, mode %s\n", fpath.c_str(), mode);
|
||||
#endif
|
||||
game::Scr_AddInt(i + 1);
|
||||
});
|
||||
|
||||
gsc::function::add("fs_write", []()
|
||||
|
Loading…
x
Reference in New Issue
Block a user