File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,14 @@ static inline int dbg_printf( const char* format, ... )
57
57
return ret;
58
58
}
59
59
60
+ // ---------------------------------------------------------------------------------
61
+ void stop (void ) {
62
+ // ---------------------------------------------------------------------------------
63
+ while (1 ) {
64
+ swiWaitForVBlank ();
65
+ }
66
+ }
67
+
60
68
// ---------------------------------------------------------------------------------
61
69
void dopause () {
62
70
// ---------------------------------------------------------------------------------
@@ -197,6 +205,15 @@ int main( int argc, char **argv) {
197
205
198
206
if (fatInitDefault ()) {
199
207
nocashMessage (" fatInitDefault" );
208
+
209
+ if (access (" fat:/" , F_OK) == 0 ) {
210
+ consoleDemoInit ();
211
+ printf (" This edition of nds-bootstrap\n " );
212
+ printf (" can only be used on the\n " );
213
+ printf (" SD card.\n " );
214
+ stop ();
215
+ }
216
+
200
217
CIniFile bootstrapini ( " sd:/_nds/nds-bootstrap.ini" );
201
218
202
219
if (bootstrapini.GetInt (" NDS-BOOTSTRAP" ," DEBUG" ,0 ) == 1 ) {
@@ -372,6 +389,6 @@ int main( int argc, char **argv) {
372
389
printf (" SD init failed!\n " );
373
390
}
374
391
375
- while ( 1 ) { swiWaitForVBlank (); }
392
+ stop ();
376
393
}
377
394
You can’t perform that action at this time.
0 commit comments