Init dynos packs after djui is created

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

View file

@ -621,7 +621,6 @@ static void DynOS_Opt_CreateModelPacksSubMenu() {
void DynOS_Opt_Init() { void DynOS_Opt_Init() {
#ifdef COOP #ifdef COOP
DynOS_Gfx_Init();
#else #else
// Convert options menu // Convert options menu
DynOS_Opt_InitVanilla(sOptionsMenu); 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) { void djui_base_compute_tree(struct DjuiBase* base) {
if (!base) { return; }
if (base->parent != NULL) { if (base->parent != NULL) {
djui_base_compute_tree(base->parent); 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) { void djui_console_message_create(char* message) {
if (!gDjuiConsole) { return; }
djui_base_compute_tree(&gDjuiConsole->base); djui_base_compute_tree(&gDjuiConsole->base);
struct DjuiBase* cfBase = &gDjuiConsole->flow->base; struct DjuiBase* cfBase = &gDjuiConsole->flow->base;

View file

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