From 7e400e1c1d60c94128b3b44019be9e9ad52a033c Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 26 Dec 2010 03:20:20 +0200 Subject: [PATCH] set memcard paths, rm dead code --- .gitignore | 1 + frontend/main.c | 14 ++------------ 2 files changed, 3 insertions(+), 12 deletions(-) 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, "./"); -- 2.39.5