mirror of
https://github.com/citra-emu/citra-canary.git
synced 2024-12-23 14:05:28 +00:00
citra-sdl: Add Load Disk Resources
This commit is contained in:
parent
d418f0438d
commit
6f2756089d
|
@ -43,7 +43,7 @@
|
|||
#include "core/movie.h"
|
||||
#include "core/settings.h"
|
||||
#include "network/network.h"
|
||||
#include "video_core/video_core.h"
|
||||
#include "video_core/renderer_base.h"
|
||||
|
||||
#undef _UNICODE
|
||||
#include <getopt.h>
|
||||
|
@ -413,6 +413,14 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
|
||||
std::thread render_thread([&emu_window] { emu_window->Present(); });
|
||||
|
||||
std::atomic_bool stop_run;
|
||||
Core::System::GetInstance().Renderer().Rasterizer()->LoadDiskResources(
|
||||
stop_run, [](VideoCore::LoadCallbackStage stage, std::size_t value, std::size_t total) {
|
||||
LOG_DEBUG(Frontend, "Loading stage {} progress {} {}", static_cast<u32>(stage), value,
|
||||
total);
|
||||
});
|
||||
|
||||
while (emu_window->IsOpen()) {
|
||||
system.RunLoop();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue