fix format and clippy
This commit is contained in:
parent
5137592cdd
commit
7307870414
@ -1,7 +1,6 @@
|
|||||||
use crate::syscalls::{Syscall, SyscallRegistryEntry, caps};
|
use crate::syscalls::{Syscall, SyscallRegistryEntry, caps};
|
||||||
|
|
||||||
pub(crate) const ENTRIES: &[SyscallRegistryEntry] = &[
|
pub(crate) const ENTRIES: &[SyscallRegistryEntry] =
|
||||||
SyscallRegistryEntry::builder(Syscall::SystemHasCart, "system", "has_cart")
|
&[SyscallRegistryEntry::builder(Syscall::SystemHasCart, "system", "has_cart")
|
||||||
.rets(1)
|
.rets(1)
|
||||||
.caps(caps::SYSTEM),
|
.caps(caps::SYSTEM)];
|
||||||
];
|
|
||||||
|
|||||||
@ -168,13 +168,10 @@ impl NativeInterface for VmRuntimeHost<'_> {
|
|||||||
VmFault::Trap(TRAP_INVALID_SYSCALL, format!("Unknown syscall: 0x{:08X}", id))
|
VmFault::Trap(TRAP_INVALID_SYSCALL, format!("Unknown syscall: 0x{:08X}", id))
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
match syscall {
|
if syscall == Syscall::SystemHasCart {
|
||||||
Syscall::SystemHasCart => {
|
|
||||||
ret.push_bool(true);
|
ret.push_bool(true);
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
_ => {}
|
|
||||||
}
|
|
||||||
|
|
||||||
self.ensure_game_profile_syscall(syscall)?;
|
self.ensure_game_profile_syscall(syscall)?;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user