-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added various features #655
base: master
Are you sure you want to change the base?
Commits on Sep 19, 2023
-
cxbe: Add the ability to handle long section names
- Increased the buffer sizes from 9 to 256 which now makes the max section name length 255 chars - Added code in Exe.cpp to parse long section names (they begin with /) - Modified code in Xbe.cpp to write out sections names longer than 8 chars
Configuration menu - View commit details
-
Copy full SHA for bd30f4b - Browse repository at this point
Copy the full SHA bd30f4bView commit details -
cxbe: Add -TITLEID:{%c%c-%u|%x}
The Title ID is interpreted in Main.cpp and passed as x_dwTitleID when creating the XBE. Title IDs can be in human-readable form (like CX-9999) or a hex code (like 4358270F). Strings without - in them are tried as hex codes.
Configuration menu - View commit details
-
Copy full SHA for 2f0deb5 - Browse repository at this point
Copy the full SHA 2f0deb5View commit details -
cxbe: Add -REGION:{-|[n][j][w][m]}
Region flags can be - for no regions, or any combo of n for North America, j for Japan, w for world, and/or m for manufacturing
Configuration menu - View commit details
-
Copy full SHA for c0a40d6 - Browse repository at this point
Copy the full SHA c0a40d6View commit details -
The version is interpreted by strtoul() which can do decimal, hex, and octal
Configuration menu - View commit details
-
Copy full SHA for b62a0ae - Browse repository at this point
Copy the full SHA b62a0aeView commit details -
cxbe: Set the proper flags for *IMAGE sections
bInsertedFile, bHeadPageRO, and bTailPageRO should be set and bPreload should be cleared otherwise it causes memory/stack corruption when running the XBE (my theory is that it overwrites some program data with the image data unless you clear bPreload). A more permanent solution would probably be to add an option set the flags for specific sections.
Configuration menu - View commit details
-
Copy full SHA for fc892e7 - Browse repository at this point
Copy the full SHA fc892e7View commit details -
cxbe: Set proper flags on debug sections
Another little "hack" to clear the preload flag on sections named .debug or starting with .debug_ so they won't be loaded and waste memory
Configuration menu - View commit details
-
Copy full SHA for 25c32e4 - Browse repository at this point
Copy the full SHA 25c32e4View commit details -
- Added XBE_TITLEID, XBE_REGION, and XBE_VERSION to take advantage of the new Cxbe features
Configuration menu - View commit details
-
Copy full SHA for e13a346 - Browse repository at this point
Copy the full SHA e13a346View commit details