summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlunarsoap5 <justindakotacarter@gmail.com>2021-08-05 20:27:36 -0500
committerlunarsoap5 <justindakotacarter@gmail.com>2021-08-05 20:27:36 -0500
commitd57e0aa04c11523b2838b091856b547904aaf545 (patch)
treec0929d4578ba24e6853f7cf02ad468b8dcb1bfcb
parent9a1843ab8a2ddb12b219dfef8333f3d836c9df13 (diff)
Updated definitions based on advice from Zeph.getLayerNo_common_common
-rw-r--r--include/tp/d_com_inf_game.h4
-rw-r--r--include/tp/d_save.h8
2 files changed, 7 insertions, 5 deletions
diff --git a/include/tp/d_com_inf_game.h b/include/tp/d_com_inf_game.h
index ec374a1..b8bd382 100644
--- a/include/tp/d_com_inf_game.h
+++ b/include/tp/d_com_inf_game.h
@@ -131,7 +131,7 @@ namespace libtp::tp::d_com_inf_game
*
* @param pLayer The pointer to the current layer.
*/
- void dComIfG_get_timelayer( uint32_t* pLayer );
+ void dComIfG_get_timelayer( int32_t* pLayer );
/**
* @brief Returns the layer for the current stage after checking the appropriate flags.
@@ -140,7 +140,7 @@ namespace libtp::tp::d_com_inf_game
* @param roomId The current room.
* @param layerOverride The initial layer to be returned.
*/
- uint32_t getLayerNo_common_common(const char *stageName, uint8_t roomId, uint32_t layerOverride);
+ int32_t getLayerNo_common_common(const char* stageName, int32_t roomId, int32_t layerOverride);
}
} // namespace libtp::tp::d_com_inf_game
#endif \ No newline at end of file
diff --git a/include/tp/d_save.h b/include/tp/d_save.h
index b098062..e14536c 100644
--- a/include/tp/d_save.h
+++ b/include/tp/d_save.h
@@ -73,18 +73,20 @@ namespace libtp::tp::d_save
/**
* @brief Checks whether the player has cleared the specified twilight.
*
+ * @param playerStatusPtr The pointer to the PlayerStatus struct.
* @param twilightNode The twilight instance to be checked.
*/
- bool isDarkClearLV( uint8_t twilightNode );
+ bool isDarkClearLV( void* playerStatusPtr, int32_t twilightNode );
/**
* @brief Checks whether or not Link has been transformed into wolf by a twilight CS
*
+ * @param playerStatusPtr The pointer to the PlayerStatus struct.
* @param twilightEvent The twilight cutscene event to be checked.
*/
- bool isTransformLV( uint8_t twilightEvent );
+ bool isTransformLV( void* playerStatusPtr, int32_t twilightEvent );
- extern uint16_t saveBitLabels[0x338]; //saveBitLabels__16dSv_event_flag_c
+ extern uint16_t saveBitLabels[0x336]; //saveBitLabels__16dSv_event_flag_c
}
} // namespace libtp::tp::d_save
#endif \ No newline at end of file