diff --git a/crates/prometeu-core/src/prometeu_os/syscalls.rs b/crates/prometeu-core/src/prometeu_os/syscalls.rs index f55ed799..f5be87c4 100644 --- a/crates/prometeu-core/src/prometeu_os/syscalls.rs +++ b/crates/prometeu-core/src/prometeu_os/syscalls.rs @@ -113,12 +113,12 @@ impl Syscall { pub fn from_name(name: &str) -> Option { match name { - "system.hasCart" => Some(Self::SystemHasCart), + "system.hasCart" | "system.has_cart" => Some(Self::SystemHasCart), "gfx.clear" => Some(Self::GfxClear), "gfx.fillRect" | "gfx.draw_rect" => Some(Self::GfxFillRect), "gfx.drawLine" | "gfx.draw_line" => Some(Self::GfxDrawLine), "gfx.drawCircle" | "gfx.draw_circle" => Some(Self::GfxDrawCircle), - "fx.drawDisc" | "gfx.draw_disc" => Some(Self::GfxDrawDisc), + "gfx.drawDisc" | "gfx.draw_disc" => Some(Self::GfxDrawDisc), "gfx.drawSquare" | "gfx.draw_square" => Some(Self::GfxDrawSquare), "input.getPad" => Some(Self::InputGetPad), "input.getPadPressed" | "input.get_pad_pressed" => Some(Self::InputGetPadPressed), diff --git a/test-cartridges/color-square/program.pbc b/test-cartridges/color-square/program.pbc index 4cdff597..8ade8115 100644 Binary files a/test-cartridges/color-square/program.pbc and b/test-cartridges/color-square/program.pbc differ