We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5627fa6 commit feb147cCopy full SHA for feb147c
crates/libmwemu/src/tests/mod.rs
@@ -48,3 +48,4 @@ mod test_unified_step_and_run_methods;
48
mod call32;
49
mod call64;
50
mod linux_call64;
51
+mod sc64win_strgen;
crates/libmwemu/src/tests/sc64win_strgen.rs
@@ -0,0 +1,16 @@
1
+use crate::tests::helpers;
2
+use crate::*;
3
+
4
+#[test]
5
+// build string: cargo run --release -- -6 -f test/sc64lin_strgen.bin -vv -c 232 -s 0x329ec8
6
+pub fn sc64win_strgen() {
7
+ helpers::setup();
8
9
+ let mut emu = emu64();
10
+ emu.set_verbose(3);
11
+ emu.cfg.maps_folder = "../../maps/maps64/".to_string();
12
+ emu.load_code("../../test/sc64win_strgen.bin");
13
+ emu.run_to(231);
14
+ let s = emu.maps.read_string(0x329ec8);
15
+ assert_eq!(s, "http://something.com/");
16
+}
0 commit comments