forked from cafeberry/cafeberry
fix(Windows64): SoundEngine starting abit late
This commit is contained in:
@@ -224,7 +224,8 @@ Minecraft::Minecraft(Component *mouseComponent, Canvas *parent, MinecraftApplet
|
||||
|
||||
// 4J-PB - Removed it from here on Orbis due to it causing a crash with the network init.
|
||||
// We should work out why...
|
||||
#ifndef __ORBIS__
|
||||
//str1k3r - removed on Windows64 as the SoundEngine was starting really late
|
||||
#if !(defined __ORBIS__ || _WINDOWS64)
|
||||
this->soundEngine->init(NULL);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1034,6 +1034,9 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
||||
hr = XuiTimersRun();
|
||||
}
|
||||
#endif
|
||||
//str1k3r - moved here from Minecraft.cpp so the SoundEngine starts faster
|
||||
pMinecraft->soundEngine->init(NULL);
|
||||
|
||||
MSG msg = {0};
|
||||
while( WM_QUIT != msg.message )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user