aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Source/Functions.inl
diff options
context:
space:
mode:
Diffstat (limited to 'AT91SAM7S256/Source/Functions.inl')
-rw-r--r--AT91SAM7S256/Source/Functions.inl9
1 files changed, 9 insertions, 0 deletions
diff --git a/AT91SAM7S256/Source/Functions.inl b/AT91SAM7S256/Source/Functions.inl
index 1424721..1fcdf63 100644
--- a/AT91SAM7S256/Source/Functions.inl
+++ b/AT91SAM7S256/Source/Functions.inl
@@ -2592,16 +2592,22 @@ UBYTE cUiFileRun(UBYTE Action) // Run selected file
case (FILETYPE_SOUND * 10 + 0) : // Start sound file (*.snd, *.rso) Wait for sound idle
{
+#if 0 /* Dirty hack. */
strcpy((char*)pMapSound->SoundFilename,(char*)VarsUi.SelectedFilename);
pMapSound->Volume = IOMapUi.Volume;
pMapSound->Mode = SOUND_ONCE;
pMapSound->Flags |= SOUND_UPDATE;
+#else /* Dirty hack. */
+ SLONG vars[2] = { 0, 0 };
+ cCmdDrawPicture(0, 0, VarsUi.SelectedFilename, vars, 0);
+#endif /* Dirty hack. */
VarsUi.State++;
}
break;
case (FILETYPE_SOUND * 10 + 1) : // Wait for stop or user break
{
+#if 0 /* Dirty hack. */
cUiRunning(MENU_RUN);
if (SOUND_IDLE == pMapSound->State)
@@ -2609,10 +2615,13 @@ UBYTE cUiFileRun(UBYTE Action) // Run selected file
pMapDisplay->pTextLines[FILERUN_TEXTLINE] = cUiGetString(TXT_FILERUN_ENDED);
VarsUi.State = 99;
}
+#endif /* Dirty hack. */
if (BUTTON_EXIT == cUiReadButtons())
{
+#if 0 /* Dirty hack. */
pMapSound->Flags &= ~SOUND_UPDATE;
pMapSound->State = SOUND_STOP;
+#endif /* Dirty hack. */
pMapDisplay->pTextLines[FILERUN_TEXTLINE] = cUiGetString(TXT_FILERUN_ABORTED);
VarsUi.State = 99;
}