mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
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:
parent
75b71e9b4d
commit
2218428a4d
3 changed files with 5 additions and 0 deletions
|
|
@ -4,6 +4,8 @@ extern "C" {
|
||||||
}
|
}
|
||||||
|
|
||||||
void DynOS_Gfx_GeneratePacks(const char* directory) {
|
void DynOS_Gfx_GeneratePacks(const char* directory) {
|
||||||
|
if (configSkipPackGeneration) { return; }
|
||||||
|
|
||||||
LOADING_SCREEN_MUTEX(
|
LOADING_SCREEN_MUTEX(
|
||||||
loading_screen_reset_progress_bar();
|
loading_screen_reset_progress_bar();
|
||||||
snprintf(gCurrLoadingSegment.str, 256, "Generating DynOS Packs In Path:\n\\#808080\\%s", directory);
|
snprintf(gCurrLoadingSegment.str, 256, "Generating DynOS Packs In Path:\n\\#808080\\%s", directory);
|
||||||
|
|
|
||||||
|
|
@ -188,6 +188,7 @@ unsigned int configDjuiScale = 0;
|
||||||
// other
|
// other
|
||||||
unsigned int configRulesVersion = 0;
|
unsigned int configRulesVersion = 0;
|
||||||
bool configCompressOnStartup = false;
|
bool configCompressOnStartup = false;
|
||||||
|
bool configSkipPackGeneration = false;
|
||||||
|
|
||||||
// secrets
|
// secrets
|
||||||
bool configExCoopTheme = false;
|
bool configExCoopTheme = false;
|
||||||
|
|
@ -319,6 +320,7 @@ static const struct ConfigOption options[] = {
|
||||||
// other
|
// other
|
||||||
{.name = "rules_version", .type = CONFIG_TYPE_UINT, .uintValue = &configRulesVersion},
|
{.name = "rules_version", .type = CONFIG_TYPE_UINT, .uintValue = &configRulesVersion},
|
||||||
{.name = "compress_on_startup", .type = CONFIG_TYPE_BOOL, .boolValue = &configCompressOnStartup},
|
{.name = "compress_on_startup", .type = CONFIG_TYPE_BOOL, .boolValue = &configCompressOnStartup},
|
||||||
|
{.name = "skip_pack_generation", .type = CONFIG_TYPE_BOOL, .boolValue = &configSkipPackGeneration},
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SecretConfigOption {
|
struct SecretConfigOption {
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,7 @@ extern unsigned int configDjuiScale;
|
||||||
// other
|
// other
|
||||||
extern unsigned int configRulesVersion;
|
extern unsigned int configRulesVersion;
|
||||||
extern bool configCompressOnStartup;
|
extern bool configCompressOnStartup;
|
||||||
|
extern bool configSkipPackGeneration;
|
||||||
|
|
||||||
// secrets
|
// secrets
|
||||||
extern bool configExCoopTheme;
|
extern bool configExCoopTheme;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue