--- nono/vm/lcd.h 2026/04/29 17:05:10 1.1.1.9 +++ nono/vm/lcd.h 2026/04/29 17:05:25 1.1.1.11 @@ -18,7 +18,7 @@ class LCDDevice : public Device using inherited = Device; public: LCDDevice(); - virtual ~LCDDevice() override; + ~LCDDevice() override; void ResetHard(bool poweron) override; void PowerOff() override; @@ -88,4 +88,6 @@ class LCDDevice : public Device static const uint8 CGROM[12 * 16 * 8]; }; -extern LCDDevice *gLCD; +static inline LCDDevice *GetLCDDevice() { + return Object::GetObject(OBJ_LCD); +}