--- nono/host/driver.h 2026/04/29 17:05:47 1.1.1.5 +++ nono/host/driver.h 2026/04/29 17:06:02 1.1.1.7 @@ -22,7 +22,7 @@ class Driver : public Object static const int NODATA = -1; protected: - Driver(HostDevice *hostdev_, const char *drivername_); + Driver(HostDevice *hostdev_, const std::string& drivername_); public: ~Driver() override; @@ -36,10 +36,10 @@ class Driver : public Object // モニタのうちドライバ依存部分の情報を書き出す。 // screen のうち y行目から2行のみがドライバ依存部分なので // ここだけ書き出すこと。不要なら書き出さなくてよい。Clear() しないこと。 - virtual void MonitorUpdateMD(TextScreen& screen, int y); + virtual void MonitorScreenMD(TextScreen& screen, int y); // ドライバ名を取得。 - const char *GetDriverName() const { return drivername; } + const std::string& GetDriverName() const { return drivername; } // 親ホストデバイス(基本クラス)を取得。 HostDevice *GetHostDev() const { return hostdev; } @@ -58,5 +58,5 @@ class Driver : public Object // ドライバ名 ("none" とか)。 // 設定ファイルに合わせてすべて小文字。 - const char *drivername {}; + std::string drivername {}; };