diff --git a/src/client/component/branding.cpp b/src/client/component/branding.cpp index efd444b6..8440eca7 100644 --- a/src/client/component/branding.cpp +++ b/src/client/component/branding.cpp @@ -43,7 +43,7 @@ namespace branding dvars::branding = game::Dvar_RegisterBool("branding", true, game::DvarFlags::DVAR_FLAG_SAVED, "Show branding"); }, scheduler::pipeline::renderer); -#ifdef GIT_DIRTY +#if GIT_DIRTY == 1 static char version_buffer[0x100]{}; sprintf_s(version_buffer, sizeof(version_buffer), "%s %s build %s %s %s", BUILD_NAME, VERSION, __DATE__, __TIME__, TARGET_ARCHITECTURE); #endif @@ -52,7 +52,7 @@ namespace branding { if (dvars::branding && dvars::branding->current.enabled) { -#ifdef GIT_DIRTY +#if GIT_DIRTY == 1 static const auto font = game::R_RegisterFont("fonts/blender_pro_medium.ttf", 32); if (!font) return; diff --git a/src/client/component/updater.cpp b/src/client/component/updater.cpp index 6d1c0c7e..60a2e657 100644 --- a/src/client/component/updater.cpp +++ b/src/client/component/updater.cpp @@ -313,7 +313,7 @@ namespace updater } } - if (!found && !std::filesystem::is_directory(file)) + if (!found && !std::filesystem::is_regular_file(file)) { console::info("[Updater] Deleting extra file %s\n", file.data()); utils::io::remove_file(file); diff --git a/src/client/game/types/database.hpp b/src/client/game/types/database.hpp index d44aac4d..e72836ba 100644 --- a/src/client/game/types/database.hpp +++ b/src/client/game/types/database.hpp @@ -11902,8 +11902,8 @@ namespace database enum DBSyncMode : std::int8_t { - DB_LOAD_SYNC = 0x0, - DB_LOAD_ASYNC = 0x1, + DB_LOAD_SYNC = 0x1, + DB_LOAD_ASYNC = 0x2, }; enum DBAllocFlags : std::int32_t @@ -11923,6 +11923,7 @@ namespace database { const char* name; int allocFlags; + int freeFlags; }; struct DBFile