ok ok it compiles. commented a lot too so check that out

This commit is contained in:
2026-03-30 07:43:09 -06:00
parent 15bf03097f
commit 0015387d60
9 changed files with 39 additions and 25 deletions

View File

@@ -34,7 +34,7 @@ namespace spider {
void Runtime::run() {}
void Runtime::run(u64 n) {}
//void Runtime::run(u64 n) {}
// Misc //
@@ -45,9 +45,10 @@ namespace spider {
/**
* Non-owning reel setup.
*/
void Runtime::hookReel(InstrReel* reel, bool own) {
cpu.hookInstrReel(reel);
if(own) this->reel = reel;
void Runtime::hookReel(InstrReel* newReel, bool own) {
delete this->reel;
cpu.hookInstrReel(newReel);
if(own) this->reel = newReel;
}
}