summaryrefslogtreecommitdiff
path: root/games/sms_sdl/japan_and_fm.diff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2010-05-12 23:29:31 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 23:29:31 +0200
commit416f1e2c1b0ad5cdae54c0ada35e128ad2518efd (patch)
tree5abaa2f54e665c12fa90d875a781a35146361a55 /games/sms_sdl/japan_and_fm.diff
parent4c6bc6d15e15588c930ef1e3903851380190a500 (diff)
downloadslackbuilds-416f1e2c1b0ad5cdae54c0ada35e128ad2518efd.tar.gz
games/sms_sdl: Added to 12.2 repository
Diffstat (limited to 'games/sms_sdl/japan_and_fm.diff')
-rw-r--r--games/sms_sdl/japan_and_fm.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/games/sms_sdl/japan_and_fm.diff b/games/sms_sdl/japan_and_fm.diff
new file mode 100644
index 0000000000..d33f405e68
--- /dev/null
+++ b/games/sms_sdl/japan_and_fm.diff
@@ -0,0 +1,29 @@
+--- sms_sdl-0.9.4a-r7.1/sdl/main.c 2003-07-21 12:40:56.000000000 -0300
++++ sms_sdl-0.9.4a-r7.1.patched/sdl/main.c 2009-05-12 17:42:29.362768285 -0300
+@@ -45,21 +45,19 @@
+ int i;
+
+ /* default virtual console emulation settings */
+- sms.use_fm = 0;
+- sms.country = TYPE_OVERSEAS;
++ cfg.fm = 0;
++ cfg.japan = 0;
+
+ cfg.filter = -1;
+ strcpy(cfg.game_name, argv[1]);
+
+ for(i = 2; i < argc; ++i) {
+ if(strcasecmp(argv[i], "--fm") == 0)
+- sms.use_fm = 1;
++ cfg.fm = 1;
+ else if(strcasecmp(argv[i], "--japan") == 0)
+- sms.country = TYPE_DOMESTIC;
+- else if(strcasecmp(argv[i], "--usesram") == 0) {
++ cfg.japan = 1;
++ else if(strcasecmp(argv[i], "--usesram") == 0)
+ cfg.usesram = 1;
+- sms.save = 1;
+- }
+ else if(strcasecmp(argv[i], "--fskip") == 0) {
+ if(++i<argc) {
+ cfg.frameskip = atoi(argv[i]);