small fixes

This commit is contained in:
quaK 2024-07-14 00:01:42 +03:00
parent 4cfcd93439
commit b311c04b18
3 changed files with 6 additions and 5 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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