add fixes for drawDisc
This commit is contained in:
parent
11d9d31c2f
commit
a7750c1af6
@ -113,12 +113,12 @@ impl Syscall {
|
|||||||
|
|
||||||
pub fn from_name(name: &str) -> Option<Self> {
|
pub fn from_name(name: &str) -> Option<Self> {
|
||||||
match name {
|
match name {
|
||||||
"system.hasCart" => Some(Self::SystemHasCart),
|
"system.hasCart" | "system.has_cart" => Some(Self::SystemHasCart),
|
||||||
"gfx.clear" => Some(Self::GfxClear),
|
"gfx.clear" => Some(Self::GfxClear),
|
||||||
"gfx.fillRect" | "gfx.draw_rect" => Some(Self::GfxFillRect),
|
"gfx.fillRect" | "gfx.draw_rect" => Some(Self::GfxFillRect),
|
||||||
"gfx.drawLine" | "gfx.draw_line" => Some(Self::GfxDrawLine),
|
"gfx.drawLine" | "gfx.draw_line" => Some(Self::GfxDrawLine),
|
||||||
"gfx.drawCircle" | "gfx.draw_circle" => Some(Self::GfxDrawCircle),
|
"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),
|
"gfx.drawSquare" | "gfx.draw_square" => Some(Self::GfxDrawSquare),
|
||||||
"input.getPad" => Some(Self::InputGetPad),
|
"input.getPad" => Some(Self::InputGetPad),
|
||||||
"input.getPadPressed" | "input.get_pad_pressed" => Some(Self::InputGetPadPressed),
|
"input.getPadPressed" | "input.get_pad_pressed" => Some(Self::InputGetPadPressed),
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user