From 605f5635e1b3c464ee12a14ba0f1b406678c52ed Mon Sep 17 00:00:00 2001 From: gered Date: Mon, 31 Oct 2016 21:39:14 -0400 Subject: [PATCH] temporary but _definitely NOT_ ideal fix, music now works. i did not know this previously, but the way doom plays a music track is by first extracting the MIDI file from the WAD to a temporary file (doom.mid) and then playing it from there. for a wii, this will cause unnecessary wear-and-tear on the players SD card, so this behaviour should be changed (probably will end up extracting all MIDI tracks from the WAD somewhere at startup if we detect that it has not already been done so). --- src/m_misc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/m_misc.c b/src/m_misc.c index 53b86db..9e40a3c 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -178,6 +178,8 @@ char *M_TempFile(char *s) { tempdir = "."; } +#elif GEKKO + tempdir = "sd:/apps/chocolate-doom"; #else // In Unix, just use /tmp.