Commit graph

17 commits

Author SHA1 Message Date
RadWolfie
1a1019b85c replace hardcode 384 to blocks_reserved_t plus add comments 2020-04-14 20:24:19 -05:00
RadWolfie
fb7398d7c9 Get maximum reserve memory ranges from host.
Plus more fixup to manage reliable memory design on loader launch and emulator.
2020-04-14 20:24:18 -05:00
RadWolfie
0f38209e4b use std map pairs instead of string for cli usage
Plus enable individual memory shared settings and lock data file path hash whenever in used.
2020-04-14 20:24:18 -05:00
ergo720
f1255cb89b Allow the memory manager to work again with the non-loader approach 2020-04-14 20:24:18 -05:00
ergo720
52f0d6f03b Updated memory functions to work with the loader 2020-04-14 20:24:18 -05:00
PatrickvL
affc999d70 Loader : Use CxbxMessageBox (a wrapper for Windows' MessageBox API) wherever possible, to avoid repeating the TEXT("Cxbx-Reloaded") caption everywhere, and a different argument-order allowing default argument values and thus more compact code. 2020-04-14 20:24:17 -05:00
patrickvl
f283dff3b6 Loader : Deduplicate code via new CreateSettings() 2020-04-14 20:24:17 -05:00
PatrickvL
254e666bfe Loader : Shared implementation for termining guiProcessID (and "2nd GUI" mode?!) 2020-04-14 20:24:17 -05:00
patrickvl
890a5ffd2f Loader : Merge LaunchEmulation() into CxbxKrnlMain() 2020-04-14 20:24:17 -05:00
patrickvl
37f5a751a1 Loader : Moved HandleFirstLaunch() and LaunchEmulation() towards shared source file (CxbxKrnl.cpp), and call it from our DLL's Emulate() function. 2020-04-14 20:24:17 -05:00
PatrickvL
daffa99825 Refactorings preparing actual emulation start for DLL (just need to move two functions to a shared file) 2020-04-14 20:24:17 -05:00
PatrickvL
cd62ac9cc1 Shared implementation of VerifyBaseAddr() 2020-04-14 20:24:17 -05:00
PatrickvL
3be54d4569 Rely on CxbxKrnl.h for CXBX_BASE_ADDR (avoiding a duplicate declaration) 2020-04-14 20:24:17 -05:00
PatrickvL
bf115fe7ab Complete Emulation DLL project by adding all Cxbx source files (except GUI-related stuff). Entire solution builds again with this.
Next steps :
- Actually getting the emulation DLL to work
- Complete CxbxGUI project by adding all Cxbx GUI-related source files
2020-04-14 20:24:17 -05:00
patrickvl
747ec875aa Use EXIT_SUCCESS for forced termination, EXIT_FAILURE for all other exit-reasons. 2020-04-14 20:24:17 -05:00
patrickvl
41c2de8e5d Pass along the selected system configuration flag to the emulation DLL and use it to verify the address ranges.
Note, that even though verification passes, a few blocks in optional ranges do fail. It's probably wise to build up a list of those, so that the memory managers can keep this into account.
2020-04-14 20:24:17 -05:00
PatrickvL
b2b0813db4 Loader : Added emulation DLL, working towards this stub compiling, moved loader project to subfolder 2020-04-14 20:24:17 -05:00