mirror of https://github.com/ClassiCube/ClassiCube
Defer directory (audio/texpacks) creation until actually necessary
This commit is contained in:
parent
68572b545e
commit
1395135d38
|
|
@ -525,6 +525,8 @@ void Audio_SetMusic(int volume) {
|
|||
}
|
||||
|
||||
static void OnInit(void) {
|
||||
Utils_EnsureDirectory("audio");
|
||||
|
||||
Sounds_Init();
|
||||
Music_Init();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -1297,6 +1297,9 @@ void Fetcher_Run(void) {
|
|||
{
|
||||
asset_sets[i]->DownloadAssets();
|
||||
}
|
||||
|
||||
Utils_EnsureDirectory("texpacks");
|
||||
Utils_EnsureDirectory("audio");
|
||||
}
|
||||
|
||||
static void Fetcher_Finish(void) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue