mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-21 18:32:08 +00:00
Revert "Fix MIDI Soundfont code shadowing a global variable."
This reverts commit 3591e3d092
.
This commit is contained in:
parent
5cff567a34
commit
99dbcb9f65
1 changed files with 3 additions and 3 deletions
|
@ -158,14 +158,14 @@ static void MidiSoundfontPath_Onchange(void)
|
|||
|
||||
if (stricmp(Mix_GetSoundFonts(), cv_midisoundfontpath.string))
|
||||
{
|
||||
char *miditoken;
|
||||
char *token;
|
||||
char *source = strdup(cv_midisoundfontpath.string);
|
||||
boolean proceed = true;
|
||||
// check if file exists; menu calls this method at every keystroke
|
||||
|
||||
while ((miditoken = strtok_r(source, ";", &source)))
|
||||
while ((token = strtok_r(source, ";", &source)))
|
||||
{
|
||||
SDL_RWops *rw = SDL_RWFromFile(miditoken, "r");
|
||||
SDL_RWops *rw = SDL_RWFromFile(token, "r");
|
||||
if (rw != NULL)
|
||||
SDL_RWclose(rw);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue