From 7e400e1c1d60c94128b3b44019be9e9ad52a033c Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 26 Dec 2010 03:20:20 +0200 Subject: set memcard paths, rm dead code --- frontend/main.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'frontend') diff --git a/frontend/main.c b/frontend/main.c index 36b6a6a..b3a56c6 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -56,18 +56,6 @@ static void CheckSubDir() { create_profile_dir(PATCHES_DIR); } -static void CreateMemcard(char *filename, char *conf_mcd) { - struct stat buf; - - make_path(conf_mcd, MAXPATHLEN, MEMCARD_DIR, filename); - - /* Only create a memory card if an existing one does not exist */ - if (stat(conf_mcd, &buf) == -1) { - SysPrintf(_("Creating memory card: %s\n"), conf_mcd); - CreateMcd(conf_mcd); - } -} - void set_cd_image(const char *fname) { const char *ext; @@ -176,6 +164,8 @@ int main(int argc, char *argv[]) CheckSubDir(); // ScanAllPlugins(); + MAKE_PATH(Config.Mcd1, MEMCARD_DIR, "card1.mcd"); + MAKE_PATH(Config.Mcd2, MEMCARD_DIR, "card2.mcd"); strcpy(Config.Bios, "HLE"); strcpy(Config.BiosDir, "./"); -- cgit v1.2.3