Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Added various features #655

wants to merge 7 commits into from

Commits on Sep 19, 2023

  1. 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
    PQCraft committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    bd30f4b View commit details
    Browse the repository at this point in the history
  2. 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.
    PQCraft committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    2f0deb5 View commit details
    Browse the repository at this point in the history
  3. 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
    PQCraft committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    c0a40d6 View commit details
    Browse the repository at this point in the history
  4. cxbe: Add -VERSION

    The version is interpreted by strtoul() which can do decimal, hex, and octal
    PQCraft committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    b62a0ae View commit details
    Browse the repository at this point in the history
  5. 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.
    PQCraft committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    fc892e7 View commit details
    Browse the repository at this point in the history
  6. 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
    PQCraft committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    25c32e4 View commit details
    Browse the repository at this point in the history
  7. Add features to Makefile

    - Added XBE_TITLEID, XBE_REGION, and XBE_VERSION to take advantage of the new Cxbe features
    PQCraft committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    e13a346 View commit details
    Browse the repository at this point in the history