Link CHUDMemoParms.cpp, minor data fixes

Former-commit-id: 2f39c70005
This commit is contained in:
Phillip Stephens 2022-07-30 13:10:04 -07:00
parent 18d6a7ebbd
commit 8db2425e27
5 changed files with 39 additions and 23 deletions

View File

@ -438,10 +438,8 @@ lbl_803CCF28:
# ROM: 0x3C9F28 # ROM: 0x3C9F28
.asciz "Msg[%3d] %s" .asciz "Msg[%3d] %s"
.asciz "-------------------------" .asciz "-------------------------"
.byte 0x44, 0x72 .asciz "Draw[%3d] %s"
.asciz "aw[%3d] %s" .asciz "??(??)"
.byte 0x3F
.asciz "?(??)"
.balign 4 .balign 4
.4byte 0 .4byte 0

View File

@ -1954,27 +1954,19 @@ lbl_800371A0:
lbl_803CCD88: lbl_803CCD88:
# ROM: 0x3C9D88 # ROM: 0x3C9D88
.asciz "GunRes" .asciz "GunRes"
.byte 0x3F .asciz "??(??)"
.asciz "?(??)" .asciz "PlayerRes"
.byte 0x50, 0x6C
.asciz "ayerRes"
.asciz "Particle" .asciz "Particle"
.byte 0x50, 0x6C, 0x61 .asciz "Player"
.4byte 0x79657200
.asciz "CameraBob" .asciz "CameraBob"
.byte 0x42, 0x61 .asciz "Ball"
.4byte 0x6C6C0050 .asciz "PlayerGun"
.asciz "layerGun" .asciz "Targeting"
.byte 0x54, 0x61, 0x72 .asciz "Game"
.asciz "geting"
.byte 0x47
.4byte 0x616D6500
.asciz "GuiColors" .asciz "GuiColors"
.byte 0x41, 0x75 .asciz "AutoMapper"
.asciz "toMapper" .asciz "Gui"
.byte 0x47, 0x75, 0x69 .asciz "PlayerControls"
.4byte 0x00506C61
.asciz "yerControls"
.asciz "PlayerControls2" .asciz "PlayerControls2"
.asciz "SlideShow" .asciz "SlideShow"
.balign 4 .balign 4

View File

@ -0,0 +1,21 @@
#ifndef __CHUDMEMOPARMS_HPP__
#define __CHUDMEMOPARMS_HPP__
#include "types.h"
class CInputStream;
class CHUDMemoParms {
public:
CHUDMemoParms(CInputStream& in);
float GetDisplayTime() const { return mDispTime; }
bool IsClearMemoWindow() const { return mClearMemoWindow; }
bool IsFadeOutOnly() const { return mFadeOutOnly; }
bool IsHintMemo() const { return mHintMemo; }
private:
float mDispTime;
bool mClearMemoWindow;
bool mFadeOutOnly;
bool mHintMemo;
};
#endif // __CHUDMEMOPARMS_HPP__

View File

@ -111,7 +111,7 @@ METROIDPRIME :=\
$(BUILD_DIR)/asm/MetroidPrime/ScriptObjects/CScriptSpawnPoint.o\ $(BUILD_DIR)/asm/MetroidPrime/ScriptObjects/CScriptSpawnPoint.o\
$(BUILD_DIR)/asm/MetroidPrime/ScriptObjects/CScriptRandomRelay.o\ $(BUILD_DIR)/asm/MetroidPrime/ScriptObjects/CScriptRandomRelay.o\
$(BUILD_DIR)/asm/MetroidPrime/Enemies/CBeetle.o\ $(BUILD_DIR)/asm/MetroidPrime/Enemies/CBeetle.o\
$(BUILD_DIR)/asm/MetroidPrime/HUD/CHUDMemoParms.o\ $(BUILD_DIR)/src/MetroidPrime/HUD/CHUDMemoParms.o\
$(BUILD_DIR)/asm/MetroidPrime/ScriptObjects/CScriptHUDMemo.o\ $(BUILD_DIR)/asm/MetroidPrime/ScriptObjects/CScriptHUDMemo.o\
$(BUILD_DIR)/asm/MetroidPrime/CMappableObject.o\ $(BUILD_DIR)/asm/MetroidPrime/CMappableObject.o\
$(BUILD_DIR)/asm/MetroidPrime/Player/CPlayerCameraBob.o\ $(BUILD_DIR)/asm/MetroidPrime/Player/CPlayerCameraBob.o\

View File

@ -0,0 +1,5 @@
#include "MetroidPrime/HUD/CHUDMemoParms.hpp"
#include "Kyoto/Streams/CInputStream.hpp"
CHUDMemoParms::CHUDMemoParms(CInputStream& in)
: mDispTime(in.ReadFloat()), mClearMemoWindow(in.ReadBool()), mFadeOutOnly(false), mHintMemo(false) {}