mirror of
https://github.com/pmret/papermario.git
synced 2024-11-09 20:42:41 +01:00
splat update
This commit is contained in:
parent
508df201dc
commit
3aa854c0c5
3
Makefile
3
Makefile
@ -70,6 +70,9 @@ submodules:
|
|||||||
split:
|
split:
|
||||||
rm -rf $(DATA_DIRS) && ./tools/n64splat/split.py baserom.z64 tools/splat.yaml .
|
rm -rf $(DATA_DIRS) && ./tools/n64splat/split.py baserom.z64 tools/splat.yaml .
|
||||||
|
|
||||||
|
splitld: tools/splat.yaml
|
||||||
|
./tools/n64splat/split.py baserom.z64 tools/splat.yaml . --modes ld
|
||||||
|
|
||||||
setup: clean submodules split
|
setup: clean submodules split
|
||||||
|
|
||||||
print-% : ; $(info $* is a $(flavor $*) variable set to [$($*)]) @true
|
print-% : ; $(info $* is a $(flavor $*) variable set to [$($*)]) @true
|
||||||
|
@ -9,14 +9,22 @@ s32 get_defeated(s32 mapID, s32 encounterID) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void set_defeated(s32 mapID, s32 encounterID) {
|
void set_defeated(s32 mapID, s32 encounterID) {
|
||||||
EncounterStatus* currentEncounter = &gCurrentEncounter;
|
EncounterStatus *currentEncounter = &gCurrentEncounter;
|
||||||
s32 encounterIdx;
|
s32 encounterIdx = encounterID / 32;
|
||||||
s32 encounterShift;
|
s32 encounterShift;
|
||||||
|
s32 flag;
|
||||||
|
|
||||||
encounterIdx = encounterID / 32;
|
flag = encounterID % 32;
|
||||||
encounterShift = encounterID % 32;
|
encounterShift = flag;
|
||||||
|
flag = currentEncounter->defeatFlags[mapID][encounterIdx];
|
||||||
|
currentEncounter->defeatFlags[mapID][encounterIdx] = flag | (1 << encounterShift);
|
||||||
|
|
||||||
currentEncounter->defeatFlags[mapID][encounterIdx] |= (1 << encounterShift);
|
// TODO: The below should work but has regalloc issues:
|
||||||
|
/*EncounterStatus *currentEncounter = &gCurrentEncounter;
|
||||||
|
s32 encounterIdx = encounterID / 32;
|
||||||
|
s32 encounterShift = encounterID % 32;
|
||||||
|
|
||||||
|
currentEncounter->defeatFlags[mapID][encounterIdx] |= (1 << encounterShift);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_1a1f0_len_5390", func_8003EE98);
|
INCLUDE_ASM(s32, "code_1a1f0_len_5390", func_8003EE98);
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 5d0ddef55b38563641d40dea7d0f662c1025e638
|
Subproject commit fce3c8907426d99597dd401f2843a9f54b199a31
|
Loading…
Reference in New Issue
Block a user