mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 14:01:17 +12:00
Wait for gfx pack init before loading shaders (#168)
2.0 introduced a race condition where the shader cache loading screen could load shaders before the graphic packs finished activating, potentially bypassing custom shaders. Also removed legacy GraphicPack interface (GraphicPack.cpp/.h) since it was only kept around for Cemuhook and removed u8string variant of cemuLog_force since it's no longer used
This commit is contained in:
parent
8dd1688ca7
commit
33167196d9
13 changed files with 135 additions and 148 deletions
|
@ -6,7 +6,7 @@
|
|||
#include "Cafe/OS/RPL/rpl_symbol_storage.h"
|
||||
#include "Cafe/OS/libs/gx2/GX2.h"
|
||||
#include "Cafe/GameProfile/GameProfile.h"
|
||||
#include "Cafe/GraphicPack/GraphicPack.h"
|
||||
#include "Cafe/GraphicPack/GraphicPack2.h"
|
||||
#include "config/CemuConfig.h"
|
||||
#include "gui/CemuApp.h"
|
||||
#include "Cafe/HW/Latte/Core/LatteOverlay.h"
|
||||
|
@ -221,7 +221,7 @@ void mainEmulatorCommonInit()
|
|||
// static initialization
|
||||
IAudioAPI::InitializeStatic();
|
||||
// load graphic packs (must happen before config is loaded)
|
||||
graphicPack_loadAll();
|
||||
GraphicPack2::LoadAll();
|
||||
// initialize file system
|
||||
fsc_init();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue