Skip to content

Commit

Permalink
- Build cheat engine from source.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Apr 30, 2023
1 parent 0d55943 commit a16e32b
Show file tree
Hide file tree
Showing 10 changed files with 2,678 additions and 469 deletions.
10 changes: 9 additions & 1 deletion cube/patches/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ DEST = ../swiss/source/patches
DISASM = disassembly

.NOTPARALLEL:
all: clean cpatches stub sdpatch ideexipatch dvdpatch usbgeckopatch wkfpatch fsppatch gcloaderpatch
all: clean codehandler cpatches stub sdpatch ideexipatch dvdpatch usbgeckopatch wkfpatch fsppatch gcloaderpatch

stub: reboot.bin stub.bin
sdpatch: sd.bin sd.card.bin sd.dtk.bin
Expand All @@ -28,6 +28,14 @@ clean:
@rm -f $(DEST)/*.bin.s $(DEST)/*_bin.h
@rm -fr $(DISASM)

codehandler:
@echo Building Codehandler ...
@$(CC) -nostartfiles -nodefaultlibs -nostdlib -o kenobigc.bin -T cheats/codehandler.ld cheats/codehandleronly.s
@$(CC) -nostartfiles -nodefaultlibs -nostdlib -o kenobigc.dbg.bin -T cheats/codehandler.ld cheats/codehandler.s
@$(BIN2S) -H $(DEST)/kenobigc_bin.h kenobigc.bin > $(DEST)/kenobigc.bin.s
@$(BIN2S) -H $(DEST)/kenobigc_dbg_bin.h kenobigc.dbg.bin > $(DEST)/kenobigc.dbg.bin.s
@rm -f *.bin

cpatches:
@echo Building C Patches ...
@$(CC) -O3 $(OPTS) -c base/memmove.S -DBACKWARDS_MEMCPY -o backwards_memcpy.o
Expand Down
8 changes: 8 additions & 0 deletions cube/patches/cheats/codehandler.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
OUTPUT_FORMAT(binary)
OUTPUT_ARCH(powerpc:common)
ENTRY(_start)

SECTIONS
{
. = 0x817FE000;
}
Loading

0 comments on commit a16e32b

Please sign in to comment.