From: notaz Date: Sun, 26 Dec 2010 01:20:20 +0000 (+0200) Subject: set memcard paths, rm dead code X-Git-Tag: r2~15 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e400e1c1d60c94128b3b44019be9e9ad52a033c;p=pcsx_rearmed.git set memcard paths, rm dead code --- diff --git a/.gitignore b/.gitignore index 489387fb..12f27497 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ frontend/common frontend/X11 tags cscope.out +pandora/picorestore diff --git a/frontend/main.c b/frontend/main.c index 36b6a6a1..b3a56c60 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, "./");