From 5df260ab3efe24f0c22591a64407b55dd6695fd8 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Wed, 5 Apr 2023 23:34:20 +0200 Subject: [PATCH] pfft --- src/frontend/qt_sdl/Netplay.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/qt_sdl/Netplay.cpp b/src/frontend/qt_sdl/Netplay.cpp index 52992231..dafafeba 100644 --- a/src/frontend/qt_sdl/Netplay.cpp +++ b/src/frontend/qt_sdl/Netplay.cpp @@ -35,6 +35,7 @@ #include "ROMManager.h" #include "Config.h" #include "Savestate.h" +#include "Platform.h" #include "ui_NetplayStartHostDialog.h" #include "ui_NetplayStartClientDialog.h" @@ -625,7 +626,7 @@ printf("[MC] finish blob type=%d len=%d\n", type, len); // load initial state // TODO: terrible hack!! - FILE* f = fopen("netplay2.mln", "wb"); + FILE* f = Platform::OpenFile("netplay2.mln", "wb"); fwrite(Blobs[Blob_InitState], BlobLens[Blob_InitState], 1, f); fclose(f); Savestate* state = new Savestate("netplay2.mln", false); @@ -664,7 +665,7 @@ void SyncMirrorClients() NDS::DoSavestate(state); delete state; printf("[MH] state taken\n"); - FILE* f = fopen("netplay.mln", "rb"); + FILE* f = Platform::OpenFile("netplay.mln", "rb"); printf("[MH] state=%d\n", f?1:0); fseek(f, 0, SEEK_END); u32 flen = ftell(f);