mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-28 08:39:59 -06:00
Make the initial 3D renderer configurable via NDSArgs
(#1913)
* Allow 3D renderers to be created without passing `GPU` to the constructor * Make the initial 3D renderer configurable via `NDSArgs` * Fix a compiler error
This commit is contained in:
@ -328,6 +328,14 @@ public:
|
||||
Firmware& GetFirmware() { return SPI.GetFirmwareMem()->GetFirmware(); }
|
||||
void SetFirmware(Firmware&& firmware) { SPI.GetFirmwareMem()->SetFirmware(std::move(firmware)); }
|
||||
|
||||
const Renderer3D& GetRenderer3D() const noexcept { return GPU.GetRenderer3D(); }
|
||||
Renderer3D& GetRenderer3D() noexcept { return GPU.GetRenderer3D(); }
|
||||
void SetRenderer3D(std::unique_ptr<Renderer3D>&& renderer) noexcept
|
||||
{
|
||||
if (renderer != nullptr)
|
||||
GPU.SetRenderer3D(std::move(renderer));
|
||||
}
|
||||
|
||||
virtual bool NeedsDirectBoot() const;
|
||||
void SetupDirectBoot(const std::string& romname);
|
||||
virtual void SetupDirectBoot();
|
||||
|
Reference in New Issue
Block a user