mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- added missing return to the GENMIDI loader.
This commit is contained in:
parent
63f2bf7ae3
commit
a2883cdf39
1 changed files with 5 additions and 1 deletions
|
@ -225,7 +225,11 @@ static void SetupGenMidi()
|
|||
// The OPL renderer should not care about where this comes from.
|
||||
// Note: No I_Error here - this needs to be consistent with the rest of the music code.
|
||||
auto lump = Wads.CheckNumForName("GENMIDI", ns_global);
|
||||
if (lump < 0) Printf("No GENMIDI lump found. OPL playback not available.");
|
||||
if (lump < 0)
|
||||
{
|
||||
Printf("No GENMIDI lump found. OPL playback not available.");
|
||||
return;
|
||||
}
|
||||
auto data = Wads.OpenLumpReader(lump);
|
||||
|
||||
auto genmidi = data.Read();
|
||||
|
|
Loading…
Reference in a new issue