keep fixing parallel-rdp stuff

This commit is contained in:
CocoSimone
2022-08-06 18:46:47 +02:00
parent c5303ede59
commit 8a450e110b
19 changed files with 64 additions and 45 deletions

View File

@@ -6,7 +6,7 @@
#include <parallel-rdp/ParallelRDPWrapper.hpp>
#include <utility>
Window::Window(n64::Core& core) {
Window::Window(const n64::Core& core) {
InitSDL();
InitParallelRDP(core.GetRDRAM());
InitImgui();
@@ -191,9 +191,7 @@ void Window::Render() {
const nfdu8filteritem_t filter {"Nintendo 64 roms", "n64,z64,v64,N64,Z64,V64"};
nfdresult_t result = NFD_OpenDialog(&outpath, &filter, 1, nullptr);
if(result == NFD_OKAY) {
core = std::make_shared<n64::Core>(outpath);
core->initialized = true;
core->system = System::Nintendo64;
core.LoadROM(outpath);
NFD_FreePath(outpath);
}
}