Refactor #21

Merged
FeTetra merged 4 commits from cleanup into main 2026-04-24 23:55:03 +00:00
FeTetra commented 2026-04-24 21:36:23 +00:00 (Migrated from github.com)

This PR cleans up the code and build system to make it more readable and easy to work with. Here are some changes it makes.

Code changes

  1. The application now only runs on the main thread, this completely avoids race conditions as well as theoretically speeding up the time required to patch.
  2. Fixed a bug which broke the code to build a relative jump instruction where pointers to hook labels were being used improperly.
  3. Patching is now handled in a more generic fashion where it only chooses what offsets and hooks to use based on the detected game.
  4. The code is separated into folders inside src.
  5. Cleanup of naming, syntax, unneeded definitions, etc.

Build system changes

  1. The build system now places objects using the same tree used for the source files.
  2. New source files no longer require an addition to the makefile, only new directories, this includes assembly code.
  3. src folder is added to the compiler as an include argument for easy header definitions.
  4. Added separate install and run targets for non-windows platforms which can use curl.
  5. Patchwork major and minor versions are now defined in config.mk and passed to the compiler.
This PR cleans up the code and build system to make it more readable and easy to work with. Here are some changes it makes. Code changes 1. The application now only runs on the main thread, this completely avoids race conditions as well as theoretically speeding up the time required to patch. 2. Fixed a bug which broke the code to build a relative jump instruction where pointers to hook labels were being used improperly. 3. Patching is now handled in a more generic fashion where it only chooses what offsets and hooks to use based on the detected game. 4. The code is separated into folders inside `src`. 5. Cleanup of naming, syntax, unneeded definitions, etc. Build system changes 1. The build system now places objects using the same tree used for the source files. 2. New source files no longer require an addition to the makefile, only new directories, this includes assembly code. 3. `src` folder is added to the compiler as an include argument for easy header definitions. 5. Added separate `install` and `run` targets for non-windows platforms which can use curl. 6. Patchwork major and minor versions are now defined in `config.mk` and passed to the compiler.
Zaprit commented 2026-04-24 23:53:48 +00:00 (Migrated from github.com)

FIX THE SYMBOL NAME IN lbpdefs/lbp1.yaml DUMBASS!!!!!! 🙂

FIX THE SYMBOL NAME IN lbpdefs/lbp1.yaml DUMBASS!!!!!! :slightly_smiling_face:
FeTetra commented 2026-04-24 23:55:30 +00:00 (Migrated from github.com)

i... im... so sorry- i failed...
this life simply isnt for me......

i... im... so sorry- i failed... this life simply isnt for me......
Sign in to join this conversation.
No description provided.