Init dynos packs after djui is created

This commit is contained in:
MysterD 2023-06-23 14:26:04 -07:00
parent c2d218a6ab
commit d2734cf390
4 changed files with 3 additions and 1 deletions

View File

@ -621,7 +621,6 @@ static void DynOS_Opt_CreateModelPacksSubMenu() {
void DynOS_Opt_Init() {
#ifdef COOP
DynOS_Gfx_Init();
#else
// Convert options menu
DynOS_Opt_InitVanilla(sOptionsMenu);

View File

@ -176,6 +176,7 @@ void djui_base_compute(struct DjuiBase* base) {
}
void djui_base_compute_tree(struct DjuiBase* base) {
if (!base) { return; }
if (base->parent != NULL) {
djui_base_compute_tree(base->parent);
}

View File

@ -65,6 +65,7 @@ static bool djui_console_on_key_down(UNUSED struct DjuiBase* base, int scancode)
}
void djui_console_message_create(char* message) {
if (!gDjuiConsole) { return; }
djui_base_compute_tree(&gDjuiConsole->base);
struct DjuiBase* cfBase = &gDjuiConsole->flow->base;

View File

@ -291,6 +291,7 @@ void main_func(void) {
sync_objects_init_system();
djui_unicode_init();
djui_init();
dynos_packs_init();
mods_init();
// load config