loading msgs, bugfixes
[libpicofe.git] / gp2x / 940ctl.c
index 5c53761..48ebfa0 100644 (file)
@@ -563,6 +563,12 @@ void mp3_start_play(FILE *f, int pos) // pos is 0-1023
        if (loaded_mp3 != f)\r
        {\r
                // printf("loading mp3... "); fflush(stdout);\r
+               if (PicoMessage != NULL)\r
+               {\r
+                       fseek(f, 0, SEEK_END);\r
+                       if (ftell(f) > 2*1024*1024)\r
+                               PicoMessage("Loading MP3...");\r
+               }\r
                fseek(f, 0, SEEK_SET);\r
                fread(mp3_mem, 1, MP3_SIZE_MAX, f);\r
                // if (feof(f)) printf("done.\n");\r