Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joelrau committed Jul 13, 2024
1 parent 4cfcd93 commit b311c04
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/client/component/branding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/client/component/updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 3 additions & 2 deletions src/client/game/types/database.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -11923,6 +11923,7 @@ namespace database
{
const char* name;
int allocFlags;
int freeFlags;
};

struct DBFile
Expand Down

0 comments on commit b311c04

Please sign in to comment.