Defer directory (audio/texpacks) creation until actually necessary

This commit is contained in:
UnknownShadow200 2025-11-09 21:48:39 +11:00
parent 68572b545e
commit 1395135d38
3 changed files with 5 additions and 3 deletions

View File

@ -525,6 +525,8 @@ void Audio_SetMusic(int volume) {
}
static void OnInit(void) {
Utils_EnsureDirectory("audio");
Sounds_Init();
Music_Init();
}

View File

@ -215,9 +215,6 @@ static void Launcher_Init(void) {
Event_Register_(&InputEvents.Down2, NULL, OnInputDown);
Event_Register_(&InputEvents.Wheel, NULL, OnMouseWheel);
Utils_EnsureDirectory("texpacks");
Utils_EnsureDirectory("audio");
}
void Launcher_Setup(void) {

View File

@ -1297,6 +1297,9 @@ void Fetcher_Run(void) {
{
asset_sets[i]->DownloadAssets();
}
Utils_EnsureDirectory("texpacks");
Utils_EnsureDirectory("audio");
}
static void Fetcher_Finish(void) {