--- nono/vm/bootloader.h 2026/04/29 17:05:25 1.1.1.2 +++ nono/vm/bootloader.h 2026/04/29 17:05:29 1.1.1.3 @@ -11,7 +11,6 @@ #pragma once #include "object.h" -#include "iodevstream.h" class LoadInfo; class MainRAMDevice; @@ -21,7 +20,7 @@ class BootLoader : public Object { using inherited = Object; public: - BootLoader(MainRAMDevice *ram_); + explicit BootLoader(MainRAMDevice *mainram_); ~BootLoader() override; // info で指定された実行ファイルをロードする。 @@ -45,17 +44,15 @@ class BootLoader : public Object bool Load_elf32_exec(LoadInfo *); bool Load_elf32_rel(LoadInfo *); bool Load_elf32_sym(LoadInfo *, std::string&); - void WriteFromHost(IODeviceStream&, const void *, int); - void readfile_global(uint32, const void *, int); - MainRAMDevice *ram {}; + MainRAMDevice *mainram {}; }; // 実行ファイルを読み込む際の受け渡しパラメータ class LoadInfo { public: LoadInfo(); - LoadInfo(const char *path_); + explicit LoadInfo(const char *path_); LoadInfo(const char *path_, const uint8 *data_, size_t size_); // ファイルから読み込む時はファイルパスを指定する。