Commit Graph

428 Commits

Author SHA1 Message Date
Léo Lam a3abb115b9
ksys/res: Fix missing destructor for Resource 2020-11-10 21:25:45 +01:00
Léo Lam 0a16b78855
data: Add functions that were missed because of IDA's function tail system 2020-11-10 18:48:52 +01:00
Léo Lam 24ef7add9b
data: Add several gdt functions that were missed 2020-11-10 18:36:52 +01:00
Léo Lam 8fd9863e1a
ksys/gdt: Fix "no check, force" setters for vector flags
And add the other setters to the CSV.
2020-11-10 17:51:41 +01:00
Léo Lam 9b516acad0
cmake: Pass -B argument for linking, not for compiling 2020-11-10 16:44:36 +01:00
Léo Lam fdfc9fd4d0
lib: Update sead to fix TypedLongBitFlag matching issues 2020-11-10 15:49:56 +01:00
Léo Lam 42c9511b11
tools: Update asm-differ 2020-11-10 15:49:55 +01:00
Léo Lam b3b1eef99d
lib: Update sead to fix LongBitFlags 2020-11-10 02:29:34 +01:00
Léo Lam 29bfe9fdba
lib: Update sead again 2020-11-10 02:09:27 +01:00
Léo Lam 7dea1dd379
lib: Update sead 2020-11-10 02:02:35 +01:00
Léo Lam 9b8ef52e05
Add most GameData CommonFlags functions to CSV 2020-11-10 00:39:54 +01:00
Léo Lam ce5ff17666
tools: Add script to automatically identify matches
Given a list L of functions to identify and a small list of
candidates C, this tool will attempt to automatically identify matches
by checking each function in L against each function in C.

Very slow, but this should work well enough for small lists.
2020-11-09 23:46:57 +01:00
Léo Lam 844db4220c
tools: Do not use a global capstone disassembler instance
Instead, use one instance per function checker.
2020-11-09 21:23:23 +01:00
Léo Lam 5d09d99b1b
tools: Deduplicate code 2020-11-09 19:16:37 +01:00
Léo Lam d5bdc23ef5
ksys/gdt: Fix array getters/setters being generated incorrectly
They were treated as non-array flags.
2020-11-09 17:30:51 +01:00
Léo Lam aee089b720
ksys/gdt: Fix Manager setter wrappers for string types 2020-11-09 16:45:29 +01:00
Léo Lam 607389e86e
ksys/gdt: Fix several issues in the gdtCommonFlags generation script 2020-11-09 16:35:35 +01:00
Léo Lam 441b98a31e
ksys/gdt: Add getFlagGenericBool/S32 2020-11-09 16:22:59 +01:00
Léo Lam f2927c1de8
ksys/gdt: Do not inline gdtCommonFlagsUtils functions 2020-11-09 16:02:22 +01:00
Léo Lam 79ad7f328d
ksys/gdt: Add commonFlagsUtils
This is separate from gdtCommonFlags.h to avoid having a header with
over 10 thousand lines...
2020-11-09 15:43:26 +01:00
Léo Lam f242ce69ee
ksys/gdt: Add more flag utilities 2020-11-09 15:40:30 +01:00
Léo Lam b28ba7b3ad
ksys/act: Add Actor::getMaxLife and fix encapsulation 2020-11-08 23:04:14 +01:00
Léo Lam cb5976d8ae
Add ActorCapture factory to CSV 2020-11-08 22:56:55 +01:00
Léo Lam 3b36b3af2b
ksys/res: Fix EntryFactory<T>::newResource_ return type
Having a covariant return type that isn't sead::DirectResource* will
cause an extra nullptr check to be emitted
2020-11-08 22:55:24 +01:00
Léo Lam 9749f30484
ksys/res: Fix ActorCapture vtable 2020-11-08 22:45:24 +01:00
Léo Lam ecec485d55
ksys: Add remaining ActorCapture functions to CSV 2020-11-08 22:45:24 +01:00
Léo Lam d87343fd8d
tools: Add a script to print vtables 2020-11-08 22:45:23 +01:00
Léo Lam 7d2ef1d6b2
ksys/act: Start adding ActorCaptureMgr 2020-11-08 22:26:54 +01:00
Léo Lam ff3421d4eb
ksys: Add Timer (header only for now) 2020-11-08 22:04:33 +01:00
Léo Lam f7e6cce7a9
ksys/act: Implement final non-dev-only ActorParam function 2020-11-08 18:28:43 +01:00
Léo Lam f128251414
ksys/act: Add ActorTemplate 2020-11-08 18:16:55 +01:00
Léo Lam a9ec880f2e
ksys/act: Fix ActorParamMgr struct and add ASSetting stub 2020-11-08 16:17:44 +01:00
Léo Lam aa92bf882c
ksys/act: Implement more ActorParam functions 2020-11-08 15:13:59 +01:00
Léo Lam 23ec19806c
ksys/util: Add Event::isSignalSet
Missed it because of IDA's function tail mechanism...
2020-11-08 13:42:14 +01:00
Léo Lam bdfebd669b
ksys/act: Fix ActorParam encapsulation 2020-11-08 13:27:47 +01:00
Léo Lam bdb97007b1
ksys/act: Remove obsolete comment 2020-11-08 12:25:55 +01:00
Léo Lam ad01b2b1fb
ksys/act: Fix matching issue in ActorParam 2020-11-08 12:22:08 +01:00
Léo Lam 9eb8806b6f
ksys/act: Implement a couple more ActorParam functions 2020-11-08 01:44:58 +01:00
Léo Lam f9456b5b1c
ksys: Fix ActorParam struct 2020-11-08 00:56:14 +01:00
Léo Lam 3bd9d7a599
aoc2: Implement more functions 2020-11-07 23:28:51 +01:00
Léo Lam 3f11fdb6d2
ksys/gdt: Add flag setters (by handle and by name) 2020-11-07 23:28:09 +01:00
Léo Lam bfa4a2553e
ksys/gdt: Add getBool helper 2020-11-07 22:00:27 +01:00
Léo Lam dd8ef71390
ksys/gdt: Add flag value getters to Manager 2020-11-07 16:54:19 +01:00
Léo Lam f60734bded
aoc2: Fix the struct and implement more functions 2020-11-07 02:10:12 +01:00
Léo Lam f918d1f805
tools/check: Handle address differences for str/stp as well 2020-11-07 01:32:31 +01:00
Léo Lam d87fefe1fb
ksys/gdt: Add common flags 2020-11-06 22:21:02 +01:00
Léo Lam f2a8d32f29
ksys/gdt: Implement more Manager functions 2020-11-06 01:24:28 +01:00
Léo Lam f9373cd154
ksys/gdt: Fix typo in TriggerParam comment 2020-11-04 17:25:22 +01:00
Léo Lam 0b6cdede6d
Add functions to CSV and fix matching issue in InitTimeInfoEx 2020-11-04 12:08:53 +01:00
Léo Lam e70c1c37cd
ksys/gdt: Start adding GameDataMgr 2020-11-04 02:12:27 +01:00