summaryrefslogtreecommitdiff
path: root/emulate
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2021-05-28 21:45:07 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2021-05-28 21:45:07 +0200
commitb81ca2c41ff4d48ca03d9c0e9bb53dd39bdd0a48 (patch)
tree6c701da77966e567db7c9b2651eb0797b1868d26 /emulate
parent67bfeba1035dedf98d67cb00ea89e550de673aa4 (diff)
downloadopenwar-b81ca2c41ff4d48ca03d9c0e9bb53dd39bdd0a48.tar.gz
openwar-b81ca2c41ff4d48ca03d9c0e9bb53dd39bdd0a48.tar.bz2
openwar-b81ca2c41ff4d48ca03d9c0e9bb53dd39bdd0a48.zip
Fixes relocation and slowly starts implmenting base DOS and DPMI interrupts.
Diffstat (limited to 'emulate')
-rw-r--r--emulate/emulator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/emulate/emulator.cpp b/emulate/emulator.cpp
index e767446..1f0f349 100644
--- a/emulate/emulator.cpp
+++ b/emulate/emulator.cpp
@@ -627,6 +627,7 @@ void emulate(std::string file_path) {
file_stream.unsetf(std::ios::skipws);
auto file = le::parse_file(file_stream);
auto binary = load_binary(file);
+ relocate(file, binary);
_CodeInfo ci;
_DecodeType dt = Decode32Bits;