summaryrefslogtreecommitdiff
path: root/src/devices.rs
diff options
context:
space:
mode:
authorBen Bridle <bridle.benjamin@gmail.com>2024-06-30 16:54:43 +1200
committerBen Bridle <bridle.benjamin@gmail.com>2024-06-30 16:54:43 +1200
commit1380a14177fc07f9d09df937b20487137aab4d4f (patch)
tree914f1f2aeb7d1cb7456f0562abf2455e769fc5e9 /src/devices.rs
parentc99d7600c5add0829333c2d844ca03a5112a27d1 (diff)
downloadbedrock-pc-1380a14177fc07f9d09df937b20487137aab4d4f.zip
Set file operation success flag when ascending and descending
This is to allow the program to detect whether the previous ascend or descend operation succeeded.
Diffstat (limited to 'src/devices.rs')
-rw-r--r--src/devices.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices.rs b/src/devices.rs
index e0c4280..864e1ba 100644
--- a/src/devices.rs
+++ b/src/devices.rs
@@ -204,7 +204,7 @@ impl DeviceBus for StandardDevices {
// 0x8F => todo!(),
// File
0x90 => read_b!(self.file.entry.is_some()),
- 0x91 => read_b!(self.file.move_success),
+ 0x91 => read_b!(self.file.op_success),
0x92 => self.file.name_buffer.read_byte(),
0x93 => read_b!(self.file.entry_type()),
0x94 => self.file.read_byte(),