From 8623cf227a80f15d1bd13ea52a5546011d8a681a Mon Sep 17 00:00:00 2001 From: Fussmatte Date: Mon, 28 Aug 2023 15:59:45 -0400 Subject: [PATCH] Fixed custom OGGs not being played with playef() When OGG files got loaded, they weren't given a name in the function LoadOGG(). This caused playef_name() to fail since it couldn't match any of the custom pushed OGGs' filenames with what the user called using playef. This was fixed by copying the name definition from LoadWAV(). --- desktop_version/src/Music.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop_version/src/Music.cpp b/desktop_version/src/Music.cpp index 8803710a..29e28335 100644 --- a/desktop_version/src/Music.cpp +++ b/desktop_version/src/Music.cpp @@ -171,6 +171,7 @@ end: ogg_file = mem; valid = true; + name = std::string(SDL_strrchr(fileName, '/') + 1); } void Dispose(void)