--- nono/host/netdriver.cpp 2026/04/29 17:04:28 1.1.1.1 +++ nono/host/netdriver.cpp 2026/04/29 17:04:30 1.1.1.2 @@ -5,12 +5,12 @@ #include "header.h" #include "netdriver.h" -#include "configfile.h" +#include "mainapp.h" #include "mystring.h" static void *netdriver_run(void *); -NetDriver *gNetDriver; +std::unique_ptr gNetDriver; // コンストラクタ NetDriver::NetDriver(const char *name, EthernetDevice *p, @@ -90,7 +90,7 @@ bool NetDriver::RunScript(const char *filename) { // ファイルが存在するか - std::string path = gConfig->SearchFile(filename); + std::string path = gMainApp.SearchFile(filename); if (path.empty()) { warnx("%s not found", filename); return false;