moved app_mode to its own file

This commit is contained in:
2026-05-22 09:07:10 +01:00
parent 70c6bd17c8
commit 88ac752d9e
20 changed files with 24 additions and 886 deletions
+1 -6
View File
@@ -1,3 +1,4 @@
use crate::app_mode::AppMode;
use crate::asset::{AssetEntry, PreloadEntry};
use crate::syscalls::CapFlags;
use serde::{Deserialize, Serialize};
@@ -10,12 +11,6 @@ pub const ASSETS_PA_MAGIC: [u8; 4] = *b"ASPA";
pub const ASSETS_PA_SCHEMA_VERSION: u32 = 1;
pub const ASSETS_PA_PRELUDE_SIZE: usize = 32;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize, Serialize)]
pub enum AppMode {
Game,
Shell,
}
#[derive(Debug, Clone)]
pub struct Cartridge {
pub app_id: u32,