name refactor

This commit is contained in:
Nilton Constantino
2026-01-16 16:44:00 +00:00
parent b43d046433
commit ead9e4286a
11 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
mod prometeu_os;
pub use prometeu_os::PrometeuOS;
pub use crate::vm::native_interface::NativeInterface;
pub use crate::virtual_machine::native_interface::NativeInterface;
@@ -1,6 +1,6 @@
use crate::model::{Cartridge, Color, Sample};
use crate::hardware::{HardwareBridge, InputSignals};
use crate::vm::{Value, VirtualMachine};
use crate::virtual_machine::{Value, VirtualMachine};
use std::sync::Arc;
use crate::prometeu_os::NativeInterface;
@@ -70,7 +70,7 @@ impl PrometeuOS {
match run_result {
Ok(run) => {
if run.reason == crate::vm::LogicalFrameEndingReason::FrameSync {
if run.reason == crate::virtual_machine::LogicalFrameEndingReason::FrameSync {
hw.gfx_mut().render_all();
self.end_logical_frame(hw);
self.logical_frame_index += 1;
@@ -159,7 +159,7 @@ impl NativeInterface for PrometeuOS {
match id {
// system.has_cart() -> bool
0x0001 => {
// vm.push(Value::Boolean(self.current_cartridge.is_some()));
// virtual_machine.push(Value::Boolean(self.current_cartridge.is_some()));
Ok(10)
}
// system.run_cart()