This commit is contained in:
Nilton Constantino
2026-01-15 14:39:54 +00:00
parent 000ebdebd3
commit 760189929a
6 changed files with 1039 additions and 261 deletions
+13
View File
@@ -0,0 +1,13 @@
use crate::vm::Value;
#[derive(Clone, Debug)]
pub struct Cartridge {
pub rom: Vec<u8>,
pub constant_pool: Vec<Value>,
}
impl Cartridge {
pub fn new(rom: Vec<u8>, constant_pool: Vec<Value>) -> Self {
Self { rom, constant_pool }
}
}
+2
View File
@@ -5,6 +5,7 @@ mod tile_layer;
mod tile_bank;
mod sprite;
mod sample;
mod cartridge;
pub use button::Button;
pub use color::Color;
@@ -13,3 +14,4 @@ pub use tile_bank::{TileBank, TileSize};
pub use tile_layer::{HudTileLayer, ScrollableTileLayer, TileMap};
pub use sprite::Sprite;
pub use sample::Sample;
pub use cartridge::Cartridge;