set memcard paths, rm dead code
authornotaz <notasas@gmail.com>
Sun, 26 Dec 2010 01:20:20 +0000 (03:20 +0200)
committernotaz <notasas@gmail.com>
Sun, 26 Dec 2010 01:20:20 +0000 (03:20 +0200)
.gitignore
frontend/main.c

index 489387f..12f2749 100644 (file)
@@ -5,3 +5,4 @@ frontend/common
 frontend/X11
 tags
 cscope.out
 frontend/X11
 tags
 cscope.out
+pandora/picorestore
index 36b6a6a..b3a56c6 100644 (file)
@@ -56,18 +56,6 @@ static void CheckSubDir() {
        create_profile_dir(PATCHES_DIR);
 }
 
        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;
 void set_cd_image(const char *fname)
 {
        const char *ext;
@@ -176,6 +164,8 @@ int main(int argc, char *argv[])
        CheckSubDir();
 //     ScanAllPlugins();
 
        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, "./");
 
        strcpy(Config.Bios, "HLE");
        strcpy(Config.BiosDir, "./");