From dcf718bdd96c3bbe27e18200f6384cd43c95c111 Mon Sep 17 00:00:00 2001 From: Stelios Tsampas Date: Sun, 30 Jul 2017 13:57:47 +0300 Subject: * Revert parts of the per game memory card patch. The previous implementation was doing file paths manipulation deep inside sio.c, and it was hardcoding windows style paths. This was breaking on linux in more than one ways and it is incompatible with the dynamic apppath handling from codeplex branch. Moreover, SaveMcd and LoadMcd functions already take memory card file paths as arguments, making any such logic redundant. This patch rewrites the global Config.Mcd# variables during game startup, which makes it more compatible across all platforms. It also has the added benefit that it doesn't update the configuration file with the each game's memory cards, i.e. at PCSXR startup the default memory cards will be loaded. --- libpcsxcore/plugins.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libpcsxcore/plugins.h') diff --git a/libpcsxcore/plugins.h b/libpcsxcore/plugins.h index b7ba4cd3..982d0978 100755 --- a/libpcsxcore/plugins.h +++ b/libpcsxcore/plugins.h @@ -422,7 +422,9 @@ extern SIO1registerCallback SIO1_registerCallback; void CALLBACK clearDynarec(void); void SetIsoFile(const char *filename); +void SetAppPath(const char *filename); const char *GetIsoFile(void); +const char *GetAppPath(void); boolean UsingIso(void); void SetCdOpenCaseTime(s64 time); -- cgit v1.2.3