OpenRakis / Cryogenic

An open-source reimplementation of Cryo's DUNE game (WIP)
Apache License 2.0
26 stars 1 forks source link

MT-32 : Generate the code using the generator #11

Open maximilien-noal opened 2 years ago

maximilien-noal commented 2 years ago

Normally there should not be too much variation in the driver, so a quick game where you change the volume can be enough To generate it because of the ghidra bug on the segments it is necessary that the segment of the driver is a multiple of 4096 like in what I posted in the main chat, the exe I have it at segment 0x1000, and the code is good the driver was at segment 0x563E -> ghidra might be a bit crazy

We can change the base segment of the game, it changes the drivers?

I would have to set it to segment 0x6000, so add 0x9C2 to the load address of the exe (command line parameter) Yes Everything is provided 🙂 --ProgramEntryPointSegment=4096 => base segment 0x1000 --ProgramEntryPointSegment=6594 => audio driver will be at 0x6000 the rest will be a mess but you don't care you get the code generated only for these functions