mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-31 10:09:46 -06:00
Allow CartGameSolarSensor::LightLevel
to be set explicitly (#2179)
* Allow `CartGameSolarSensor::LightLevel` to be set explicitly * Add `CartGameSolarSensor::GetLightLevel` * Update GBACart.cpp --------- Co-authored-by: Kemal Afzal <RSDuck@users.noreply.github.com>
This commit is contained in:
@ -158,6 +158,8 @@ public:
|
||||
void DoSavestate(Savestate* file) override;
|
||||
|
||||
int SetInput(int num, bool pressed) override;
|
||||
void SetLightLevel(u8 level) noexcept;
|
||||
[[nodiscard]] u8 GetLightLevel() const noexcept { return LightLevel; }
|
||||
|
||||
protected:
|
||||
void ProcessGPIO() override;
|
||||
|
Reference in New Issue
Block a user