--- nono/host/driver.h 2026/04/29 17:05:11 1.1 +++ nono/host/driver.h 2026/04/29 17:05:39 1.1.1.4 @@ -24,7 +24,7 @@ class Driver : public Object protected: Driver(HostDevice *hostdev_, const char *drivername_); public: - virtual ~Driver() override; + ~Driver() override; virtual bool InitDriver(); @@ -34,13 +34,16 @@ class Driver : public Object virtual int Dispatch(int udata); // モニタのうちドライバ依存部分の情報を書き出す。 - // screen のうち (0から数えて) 1行目と2行目のみがドライバ依存部分なので + // screen のうち y行目から2行のみがドライバ依存部分なので // ここだけ書き出すこと。不要なら書き出さなくてよい。Clear() しないこと。 - virtual void MonitorUpdateMD(TextScreen& screen); + virtual void MonitorUpdateMD(TextScreen& screen, int y); // ドライバ名を取得。 const char *GetDriverName() const { return drivername; } + // 親ホストデバイス(基本クラス)を取得。 + HostDevice *GetHostDev() const { return hostdev; } + protected: // 親ホストデバイス HostDevice *hostdev {};