Commit Graph

245 Commits

Author SHA1 Message Date
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 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 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 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
Léo Lam 213d9fb00d
ksys/res: Add missing cLoadDataAlignment constant to GameData 2020-11-04 00:41:27 +01:00
Léo Lam f602b5c6be
ksys/res: Declare registerEntryFactory
Implementation coming soon.
2020-11-04 00:41:02 +01:00
Léo Lam 7d8183f0b2
ksys: Add KingEditor (stub) 2020-11-04 00:40:08 +01:00
Léo Lam 0cb4d828fc
ksys/gdt: Add SaveMgr (stub) to prepare for GameDataMgr 2020-11-04 00:39:09 +01:00
Léo Lam c9998d3abf
ksys/gdt: Make ~Manager the key function to help with dtor matching
Make syncData a pure virtual function that is overridden in Manager
to turn the destructor into the key function.

Otherwise, the GOT would be used to load the vtable pointer until
syncData is implemented, which is quite inconvenient.
2020-11-03 18:57:52 +01:00
Léo Lam 835e11cb16
ksys/gdt: Add missing <algorithm> include 2020-11-03 02:35:38 +01:00
Léo Lam 911625ac23
ksys/res: Add GameSaveData 2020-11-03 02:27:38 +01:00
Léo Lam 382cb57fc1
ksys/gdt: Declare all remaining TriggerParam functions 2020-11-01 11:45:51 +01:00
Léo Lam 6c686fb962
ksys/gdt: Implement more TriggerParam copy functions 2020-11-01 02:34:14 +01:00
Léo Lam 1ccd65836d
ksys/gdt: Start adding TriggerParam's copy record functions 2020-10-31 14:58:32 +01:00
Léo Lam 2cd8eb111f
ksys/gdt: Implement flag+index getters 2020-10-29 21:56:29 +01:00
Léo Lam abf3276642
ksys/gdt: Implement more parts of TriggerParam (notably setters) 2020-10-28 22:19:34 +01:00
Léo Lam fd9b8ad11d
ksys/gdt: Add TriggerParamConfig 2020-10-27 00:52:51 +01:00
Léo Lam 82a6c0152e
ksys/gdt: Add wrappers for property getters 2020-10-26 02:08:45 +01:00
Léo Lam c612f77fcd
ksys/gdt: Implement TriggerParam::recordFlagChange 2020-10-25 14:32:56 +01:00
Léo Lam 660336044f
ksys/gdt: Implement more TriggerParam functions 2020-10-24 23:30:53 +02:00
Léo Lam 6cae9c75b5
Use sead::SafeString overload of HashCRC32::calcStringHash 2020-10-24 21:00:59 +02:00
Léo Lam 45b4c7e29f
ksys/util: Fix minor regalloc issue in TaskQueueBase 2020-10-24 17:49:27 +02:00