diff --git a/data/dynos_gfx_init.cpp b/data/dynos_gfx_init.cpp index 327d14c4..e90858ee 100644 --- a/data/dynos_gfx_init.cpp +++ b/data/dynos_gfx_init.cpp @@ -2,6 +2,8 @@ #include "src/pc/loading.h" void DynOS_Gfx_GeneratePacks(const char* directory) { + if (gIsThreaded) { REFRESH_MUTEX(snprintf(gCurrLoadingSegment.str, 256, "Generating DynOS Packs in path:\n\\#808080\\%s", directory)); } + DIR *modsDir = opendir(directory); if (!modsDir) { return; } @@ -57,6 +59,7 @@ static void ScanPacksFolder(SysPath _DynosPacksFolder) { // If pack folder exists, add it to the pack list SysPath _PackFolder = fstring("%s/%s", _DynosPacksFolder.c_str(), _DynosPacksEnt->d_name); if (fs_sys_dir_exists(_PackFolder.c_str())) { + if (gIsThreaded) { REFRESH_MUTEX(snprintf(gCurrLoadingSegment.str, 256, "Generating DynOS pack:\n\\#808080\\%s", _PackFolder.c_str())); } DynOS_Pack_Add(_PackFolder); DynOS_Actor_GeneratePack(_PackFolder); DynOS_Tex_GeneratePack(_PackFolder, _PackFolder, false); diff --git a/src/pc/pc_main.c b/src/pc/pc_main.c index bf8c73fe..cf5aab40 100644 --- a/src/pc/pc_main.c +++ b/src/pc/pc_main.c @@ -262,6 +262,7 @@ void* main_game_init(UNUSED void* arg) { const char *userpath = gCLIOpts.SavePath[0] ? gCLIOpts.SavePath : sys_user_path(); fs_init(sys_ropaths, gamedir, userpath); + if (gIsThreaded) { REFRESH_MUTEX(snprintf(gCurrLoadingSegment.str, 256, "Loading")); } dynos_gfx_init(); // load config