From 2fca847499d52f2560d1c8838760b0cf23175a3f Mon Sep 17 00:00:00 2001 From: Isaac0-dev <62234577+Isaac0-dev@users.noreply.github.com> Date: Tue, 4 Mar 2025 17:12:23 +1000 Subject: [PATCH] bring back skip_pack_generation --- data/dynos_gfx_init.cpp | 2 ++ src/pc/configfile.c | 2 ++ src/pc/configfile.h | 1 + 3 files changed, 5 insertions(+) diff --git a/data/dynos_gfx_init.cpp b/data/dynos_gfx_init.cpp index 3fbae797c..3e4ac2145 100644 --- a/data/dynos_gfx_init.cpp +++ b/data/dynos_gfx_init.cpp @@ -4,6 +4,8 @@ extern "C" { } void DynOS_Gfx_GeneratePacks(const char* directory) { + if (configSkipPackGeneration) { return; } + LOADING_SCREEN_MUTEX( loading_screen_reset_progress_bar(); snprintf(gCurrLoadingSegment.str, 256, "Generating DynOS Packs In Path:\n\\#808080\\%s", directory); diff --git a/src/pc/configfile.c b/src/pc/configfile.c index 77043319b..3acd300f2 100644 --- a/src/pc/configfile.c +++ b/src/pc/configfile.c @@ -189,6 +189,7 @@ unsigned int configDjuiScale = 0; // other unsigned int configRulesVersion = 0; bool configCompressOnStartup = false; +bool configSkipPackGeneration = false; // secrets bool configExCoopTheme = false; @@ -320,6 +321,7 @@ static const struct ConfigOption options[] = { // other {.name = "rules_version", .type = CONFIG_TYPE_UINT, .uintValue = &configRulesVersion}, {.name = "compress_on_startup", .type = CONFIG_TYPE_BOOL, .boolValue = &configCompressOnStartup}, + {.name = "skip_pack_generation", .type = CONFIG_TYPE_BOOL, .boolValue = &configSkipPackGeneration}, }; struct SecretConfigOption { diff --git a/src/pc/configfile.h b/src/pc/configfile.h index 046d898bc..cbefa1f39 100644 --- a/src/pc/configfile.h +++ b/src/pc/configfile.h @@ -137,6 +137,7 @@ extern unsigned int configDjuiScale; // other extern unsigned int configRulesVersion; extern bool configCompressOnStartup; +extern bool configSkipPackGeneration; // secrets extern bool configExCoopTheme;