From eec84e91ffd817f00edfb77ae18594e115883077 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Thu, 30 Nov 2023 20:20:16 -0600 Subject: [PATCH] fixes --- src/component/fileio.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/component/fileio.cpp b/src/component/fileio.cpp index 1e1cc4f..7a02bd6 100644 --- a/src/component/fileio.cpp +++ b/src/component/fileio.cpp @@ -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", []()