mirror of
https://github.com/zeldaret/ph
synced 2026-05-26 07:38:52 -04:00
92% match Inventory::Save
This commit is contained in:
@@ -42,7 +42,7 @@ MW_LD := $(TOOLS_DIR)/mwccarm/$(MW_VER)/mwldarm.exe
|
||||
MW_LICENSE := $(TOOLS_DIR)/mwccarm/license.dat
|
||||
|
||||
ASM_FLAGS := -proc arm5te -d $(REGION) -i asm -msgstyle gcc
|
||||
CC_FLAGS := -O2 -enum int -i include -nolink -d $(REGION)
|
||||
CC_FLAGS := -O2 -enum int -i include -nolink -d $(REGION) -char signed
|
||||
LD_FLAGS := -proc arm946e -nostdlib -interworking -nodead -m Entry -map closure,unused -o main.bin -msgstyle gcc
|
||||
|
||||
ifeq ($(NONMATCHING),1)
|
||||
|
||||
+4
-3
@@ -39,11 +39,12 @@ NONMATCH void Inventory::Save(SaveInventory *save) {
|
||||
for (s32 i = 0; i < Gem_COUNT; ++i) {
|
||||
save->numGems[i] = this->mNumGems[i];
|
||||
}
|
||||
for (s32 i = 0; i < ShipPart_COUNT; ++i) {
|
||||
for (s32 i = 0, j = 0; i < ShipPart_COUNT; ++i, j = 0) {
|
||||
save->equippedShipParts[i] = this->mEquippedShipParts[i];
|
||||
for (s32 j = 0; j < ShipType_COUNT; ++j) {
|
||||
do {
|
||||
save->shipParts[i].parts[j] = this->mShipParts[i].parts[j];
|
||||
}
|
||||
++j;
|
||||
} while (j < ShipType_COUNT);
|
||||
}
|
||||
save->shipPartPricesShown = this->mShipPartPricesShown;
|
||||
for (s32 i = 0; i < Treasure_COUNT; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user