aboutsummaryrefslogtreecommitdiff
path: root/lib/vnf
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vnf')
-rw-r--r--lib/vnf/src/lib.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/vnf/src/lib.rs b/lib/vnf/src/lib.rs
index f2524cd..b1b596b 100644
--- a/lib/vnf/src/lib.rs
+++ b/lib/vnf/src/lib.rs
@@ -143,6 +143,17 @@ pub struct MemoryPolicy {
pub minimum_stack_value: u8,
}
+impl Default for MemoryPolicy {
+ fn default() -> Self {
+ Self {
+ initial_value: MemoryInitialValue::Fixed(0),
+ allowed_reads: vec![(0..0x800)],
+ allowed_writes: vec![(0..0x800)],
+ minimum_stack_value: 0,
+ }
+ }
+}
+
/// The state of the Joypad handshake process.
#[derive(Copy, Clone, Debug, Default)]
pub enum JoypadState {