Skip DynOS binary file generation on startup (#638)

it is off by default, but the common player may want to turn it on to improve loading times
This commit is contained in:
Cooliokid956 2025-01-19 02:49:15 -06:00 committed by GitHub
parent 75b71e9b4d
commit 2218428a4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 0 deletions

View file

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

View file

@ -188,6 +188,7 @@ unsigned int configDjuiScale = 0;
// other
unsigned int configRulesVersion = 0;
bool configCompressOnStartup = false;
bool configSkipPackGeneration = false;
// secrets
bool configExCoopTheme = false;
@ -319,6 +320,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 {

View file

@ -137,6 +137,7 @@ extern unsigned int configDjuiScale;
// other
extern unsigned int configRulesVersion;
extern bool configCompressOnStartup;
extern bool configSkipPackGeneration;
// secrets
extern bool configExCoopTheme;