--- nono/vm/bankram.cpp 2026/04/29 17:05:29 1.1.1.3 +++ nono/vm/bankram.cpp 2026/04/29 17:05:43 1.1.1.5 @@ -34,12 +34,13 @@ BankRAMDevice::~BankRAMDevice() bool BankRAMDevice::Init() { - if (inherited::Init() == false) { + ram.reset(new(std::nothrow) uint8[ram_size]); + if ((bool)ram == false) { + errno = ENOMEM; + warn("BankRAM(%u bytes)", ram_size); return false; } - ram.reset(new uint8[ram_size]); - return true; }