implements PLN-0053

This commit is contained in:
2026-05-14 18:31:58 +01:00
parent ab825d3274
commit d1f4547e44
19 changed files with 295 additions and 163 deletions
@@ -14,6 +14,7 @@ use prometeu_hal::telemetry::{AtomicTelemetry, CertificationConfig, Certifier};
use prometeu_vm::VirtualMachine;
use std::collections::HashMap;
use std::sync::Arc;
use std::sync::atomic::AtomicU32;
use std::time::Instant;
pub struct VirtualMachineRuntime {
@@ -27,7 +28,6 @@ pub struct VirtualMachineRuntime {
pub memcard: MemcardService,
pub open_files: HashMap<u32, String>,
pub next_handle: u32,
pub log_service: LogService,
pub current_app_id: u32,
pub current_cartridge_title: String,
pub current_cartridge_app_version: String,
@@ -50,4 +50,8 @@ impl VirtualMachineRuntime {
pub const SLICE_PER_TICK: u64 = 1_500_000;
pub const MAX_LOG_LEN: usize = 256;
pub const MAX_LOGS_PER_FRAME: u32 = 10;
pub fn new(cap_config: Option<CertificationConfig>) -> Self {
Self::new_with_log_counter(cap_config, Arc::new(AtomicU32::new(0)))
}
}