Add some fs paths

This commit is contained in:
fed 2022-12-24 04:23:37 +01:00
parent 6bd59cc6c0
commit f898a6fcb7
2 changed files with 6 additions and 1 deletions

View File

@ -47,6 +47,11 @@ namespace filesystem
filesystem::register_path(utils::properties::get_appdata_path() / CLIENT_DATA_FOLDER);
filesystem::register_path(L".");
filesystem::register_path(L"h1-mod");
filesystem::register_path(L"devraw");
filesystem::register_path(L"devraw_shared");
filesystem::register_path(L"raw_shared");
filesystem::register_path(L"raw");
filesystem::register_path(L"main");
fs_startup_hook.invoke<void>(name);

View File

@ -19,7 +19,7 @@ namespace steam
std::string content;
if (::utils::io::read_file(LANGUAGE_FILE, &content))
{
#if DEBUG
#ifdef DEBUG
console::info("Language switched to \"%s\".\n", content.data());
#endif
strcpy_s(language, sizeof(language), content.data());