mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-04-19 21:22:54 +00:00
fixes
This commit is contained in:
parent
3f406c26e7
commit
eec84e91ff
@ -72,7 +72,7 @@ namespace fileio
|
|||||||
|
|
||||||
if (!fs_gamedir)
|
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;
|
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
|
#ifdef DEBUG
|
||||||
printf("gscr_fs_fopen: opening %s, mode %s\n", fpath.c_str(), mode);
|
printf("gscr_fs_fopen: opening %s, mode %s\n", fpath.c_str(), mode);
|
||||||
#endif
|
#endif
|
||||||
|
game::Scr_AddInt(i + 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
gsc::function::add("fs_write", []()
|
gsc::function::add("fs_write", []()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user