From 92f40774e4c87675a659c931cb74001bafc9ef01 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 10 Aug 2022 23:56:25 -0500 Subject: [PATCH] Game Boy: I hate your artificial limitations fixes a DefleMask demo module --- src/engine/platform/gb.cpp | 4 ++++ src/engine/platform/gb.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/engine/platform/gb.cpp b/src/engine/platform/gb.cpp index abbb19336..31ce24240 100644 --- a/src/engine/platform/gb.cpp +++ b/src/engine/platform/gb.cpp @@ -573,6 +573,10 @@ void DivPlatformGB::reset() { antiClickWavePos=0; } +int DivPlatformGB::getPortaFloor(int ch) { + return 24; +} + bool DivPlatformGB::isStereo() { return true; } diff --git a/src/engine/platform/gb.h b/src/engine/platform/gb.h index 082f33ba9..e4b8568b1 100644 --- a/src/engine/platform/gb.h +++ b/src/engine/platform/gb.h @@ -94,6 +94,7 @@ class DivPlatformGB: public DivDispatch { void forceIns(); void tick(bool sysTick=true); void muteChannel(int ch, bool mute); + int getPortaFloor(int ch); bool isStereo(); void notifyInsChange(int ins); void notifyWaveChange(int wave);