mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
* Initial Dpad * remove old hud stuff * and comment * s.. * add dpad equip macro back in * fix inputs * fix equipping (hopefully all) * finish some todos * add 2s2h asset header * check dpad macro * remove 2s2h_assets * re-add empty texture * use correct struct for default dpad equips * dpad save stuff * fix item offering, use correct equip offset values * finally figure out unk_154 and fix mask equipping * avoid ugly code * add necessary condition * correct save names for dpad items/slots * remove todos and sort out suggestions and rename cvar * func standardise renaming * Add dpad to hud presets * dpad save migration
14 lines
429 B
C++
14 lines
429 B
C++
#include "2s2h/SaveManager/SaveManager.h"
|
|
#include "z64.h"
|
|
|
|
void SaveManager_Migration_2(nlohmann::json& j) {
|
|
nlohmann::json dpadEquips;
|
|
for (int i = 0; i < EQUIP_SLOT_D_MAX; i++) {
|
|
for (int j = 0; j < EQUIP_SLOT_D_MAX; j++) {
|
|
dpadEquips["dpadItems"][i][j] = ITEM_NONE;
|
|
dpadEquips["dpadSlots"][i][j] = SLOT_NONE;
|
|
}
|
|
}
|
|
|
|
j["save"]["shipSaveInfo"]["dpadEquips"] = dpadEquips;
|
|
} |