Skip to content
Snippets Groups Projects
Verified Commit 771d1cb4 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: issue with WASM compilation

parent da181345
No related branches found
No related tags found
1 merge request!25Game Genie support
Pipeline #2875 passed
......@@ -564,16 +564,6 @@ impl Cartridge {
self.ram_data = ram_data;
}
pub fn attach_genie(&mut self, game_genie: GameGenie) {
self.game_genie = Some(game_genie);
self.handler = &GAME_GENIE;
}
pub fn detach_genie(&mut self) {
self.game_genie = None;
self.handler = self.mbc;
}
pub fn description(&self, column_length: usize) -> String {
let name_l = format!("{:width$}", "Name", width = column_length);
let type_l = format!("{:width$}", "Type", width = column_length);
......@@ -596,6 +586,18 @@ impl Cartridge {
}
}
impl Cartridge {
pub fn attach_genie(&mut self, game_genie: GameGenie) {
self.game_genie = Some(game_genie);
self.handler = &GAME_GENIE;
}
pub fn detach_genie(&mut self) {
self.game_genie = None;
self.handler = self.mbc;
}
}
impl Default for Cartridge {
fn default() -> Self {
Self::new()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment