From ea40c09db7996d45fdd213bac9575008281c69b8 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Thu, 28 Oct 2021 18:21:26 +0200 Subject: [PATCH] GRAAAAAAAHH can we be done with the stupidity now pls --- src/NDSCart.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp index 72bccb9a..3d231acc 100644 --- a/src/NDSCart.cpp +++ b/src/NDSCart.cpp @@ -1717,10 +1717,10 @@ bool LoadROM(const char* path, const char* sram, bool direct) NDS::Reset(); - char* romname = strrchr(path, '/'); + char* romname = strrchr((char*)path, '/'); if (!romname) { - romname = strrchr(path, '\\'); + romname = strrchr((char*)path, '\\'); if (!romname) romname = (char*)&path[-1]; }