diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-03-07 21:41:10 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-03-07 21:41:10 +0000 |
commit | 0300fca5b707e025d59e5eee755fdd0d99859d67 (patch) | |
tree | 239c27fe31e32fc85bf1ebd38ad46d05b07769e9 | |
parent | ea98c14cd0de39b82faa2f587a54f386050ea815 (diff) | |
download | rockbox-0300fca5b707e025d59e5eee755fdd0d99859d67.tar.gz rockbox-0300fca5b707e025d59e5eee755fdd0d99859d67.zip |
Baild out instead of crashing when called directly (without playing a ROM file).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6167 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/rockboy/rockboy.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c index 6c831d075f..a34fd7bf69 100644 --- a/apps/plugins/rockboy/rockboy.c +++ b/apps/plugins/rockboy/rockboy.c | |||
@@ -102,8 +102,13 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
102 | /* if you are using a global api pointer, don't forget to copy it! | 102 | /* if you are using a global api pointer, don't forget to copy it! |
103 | otherwise you will get lovely "I04: IllInstr" errors... :-) */ | 103 | otherwise you will get lovely "I04: IllInstr" errors... :-) */ |
104 | rb = api; | 104 | rb = api; |
105 | |||
106 | if (!parameter) { | ||
107 | rb->splash(HZ*3, true, "Play gameboy ROM file! (.gb/.gbc)"); | ||
108 | return PLUGIN_OK; | ||
109 | } | ||
105 | #ifdef USE_IRAM | 110 | #ifdef USE_IRAM |
106 | memcpy(iramstart, iramcopy, iramend-iramstart); | 111 | memcpy(iramstart, iramcopy, iramend-iramstart); |
107 | #endif | 112 | #endif |
108 | shut=0; | 113 | shut=0; |
109 | cleanshut=0; | 114 | cleanshut=0; |