Skip to content

armgit / gecko

Public Imported from GitHub
0

A GameCube/Wii emulator and debugger written in Rust.

fix

Layle08dc34882ff0
diff --git a/crates/gecko/src/hollywood/ipc.rs b/crates/gecko/src/hollywood/ipc.rs
index 1dc3211..f118f17 100644
--- a/crates/gecko/src/hollywood/ipc.rs
+++ b/crates/gecko/src/hollywood/ipc.rs
@@ -15,27 +15,22 @@ pub struct DeviceContext<'a> {
pub trait IosDevice: Send {
fn open(&mut self, _ctx: &mut DeviceContext<'_>, _mode: u32) -> i32 {
- tracing::warn!("IOS_Open: unimplemented");
0
}
fn close(&mut self, _ctx: &mut DeviceContext<'_>) -> i32 {
- tracing::warn!("IOS_Close: unimplemented");
0
}
fn read(&mut self, _ctx: &mut DeviceContext<'_>, _buf: u32, _len: u32) -> i32 {
- tracing::warn!("IOS_Read: unimplemented");
IPC_EINVAL
}
fn write(&mut self, _ctx: &mut DeviceContext<'_>, _buf: u32, _len: u32) -> i32 {
- tracing::warn!("IOS_Write: unimplemented");
IPC_EINVAL
}
fn seek(&mut self, _ctx: &mut DeviceContext<'_>, _where_: i32, _whence: i32) -> i32 {
- tracing::warn!("IOS_Seek: unimplemented");
0
}
diff --git a/crates/gecko/src/hollywood/ipc/stm.rs b/crates/gecko/src/hollywood/ipc/stm.rs
index 7043216..5314a8a 100644
--- a/crates/gecko/src/hollywood/ipc/stm.rs
+++ b/crates/gecko/src/hollywood/ipc/stm.rs
@@ -1,31 +1,6 @@
pub struct Stm;
impl super::IosDevice for Stm {
- fn open(&mut self, _ctx: &mut super::DeviceContext<'_>, mode: u32) -> i32 {
- tracing::error!(mode, "IOS_Open: unimplemented");
- 0
- }
-
- fn close(&mut self, _ctx: &mut super::DeviceContext<'_>) -> i32 {
- tracing::error!("IOS_Close: unimplemented");
- 0
- }
-
- fn read(&mut self, _ctx: &mut super::DeviceContext<'_>, buf: u32, len: u32) -> i32 {
- tracing::error!(buf, len, "IOS_Read: unimplemented");
- super::IPC_EINVAL
- }
-
- fn write(&mut self, _ctx: &mut super::DeviceContext<'_>, buf: u32, len: u32) -> i32 {
- tracing::error!(buf, len, "IOS_Write: unimplemented");
- super::IPC_EINVAL
- }
-
- fn seek(&mut self, _ctx: &mut super::DeviceContext<'_>, where_: i32, whence: i32) -> i32 {
- tracing::error!(where_, whence, "IOS_Seek: unimplemented");
- 0
- }
-
fn ioctl(
&mut self,
_ctx: &mut super::DeviceContext<'_>,
@@ -38,9 +13,4 @@ impl super::IosDevice for Stm {
tracing::error!(cmd, in_buf, in_len, out_buf, out_len, "IOS_Ioctl: unimplemented");
super::IPC_EINVAL
}
-
- fn ioctlv(&mut self, _ctx: &mut super::DeviceContext<'_>, cmd: u32, argcin: u32, argcio: u32, vec: u32) -> i32 {
- tracing::error!(cmd, argcin, argcio, vec, "IOS_Ioctlv: unimplemented");
- super::IPC_EINVAL
- }
}