Subversion Repositories svn.mios32

Rev

Rev 1610 | Rev 1657 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1610 Rev 1653
Line 1... Line 1...
1
// $Id: app.c 1610 2012-12-17 22:44:44Z tk $
1
// $Id: app.c 1653 2013-01-09 23:08:59Z tk $
2
/*
2
/*
3
 * MIDIO 128 V3
3
 * MIDIO 128 V3
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 407... Line 407...
407
      MIDIO_FILE_StatusMsgSet("No SD Card");
407
      MIDIO_FILE_StatusMsgSet("No SD Card");
408
    } else if( !FILE_VolumeAvailable() ) {
408
    } else if( !FILE_VolumeAvailable() ) {
409
      DEBUG_MSG("ERROR: SD Card contains invalid FAT!\n");
409
      DEBUG_MSG("ERROR: SD Card contains invalid FAT!\n");
410
      MIDIO_FILE_StatusMsgSet("No FAT");
410
      MIDIO_FILE_StatusMsgSet("No FAT");
411
    } else {
411
    } else {
412
      // check if patch file exists
412
      // create the default files if they don't exist on SD Card
413
      if( !MIDIO_FILE_P_Valid() ) {
413
      MIDIO_FILE_CreateDefaultFiles();
414
        // create new one
-
 
415
        DEBUG_MSG("Creating initial DEFAULT.MIO file\n");
-
 
416
-
 
417
        if( (status=MIDIO_FILE_P_Write("DEFAULT")) < 0 ) {
-
 
418
          DEBUG_MSG("Failed to create file! (status: %d)\n", status);
-
 
419
        }
-
 
420
      }
-
 
421
414
422
      // load first MIDI file
415
      // load first MIDI file
423
      MID_FILE_UI_NameClear();
416
      MID_FILE_UI_NameClear();
424
      SEQ_SetPauseMode(1);
417
      SEQ_SetPauseMode(1);
425
      SEQ_PlayFileReq(0, 1);
418
      SEQ_PlayFileReq(0, 1);