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/sio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpcsxcore/sio.h') diff --git a/libpcsxcore/sio.h b/libpcsxcore/sio.h index b3897552..64993992 100755 --- a/libpcsxcore/sio.h +++ b/libpcsxcore/sio.h @@ -55,7 +55,7 @@ int sioFreeze(gzFile f, int Mode); void LoadMcd(int mcd, char *str); void LoadMcds(char *mcd1, char *mcd2); -void SaveMcd(int mcd, char *str, char *data, uint32_t adr, int size); +void SaveMcd(char *mcd, char *data, uint32_t adr, int size); void CreateMcd(char *mcd); void ConvertMcd(char *mcd, char *data); -- cgit v1.2.3