Skip to content

Add support for reading 200cc#168

Open
vabold wants to merge 1 commit intomainfrom
ghost
Open

Add support for reading 200cc#168
vabold wants to merge 1 commit intomainfrom
ghost

Conversation

@vabold
Copy link
Copy Markdown
Owner

@vabold vabold commented Nov 1, 2024

No description provided.

Comment thread source/game/system/GhostFile.cc Outdated
Comment thread source/game/system/GhostFile.hh
Comment thread source/game/system/GhostFile.cc Outdated

void CTGPMetadata::read(const CTGPGhostFooter *data) {
if (!data) {
isCTGP = false;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is initialized to false, can we assume that this line can be removed as redundant?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The read function should guarantee state, regardless of previous condition.

Comment thread source/game/system/GhostFile.cc
Comment thread source/game/system/GhostFile.hh Outdated
Comment thread source/game/system/GhostFile.hh
u8 trackSHA1[20];
u64 ghostDBPlayerID;
f32 trueFinishTime;
u8 _20[0x27 - 0x20];
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add @unused doxygen comment I guess?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide an example of what that looks like?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f32 m_angVel0YFactor; ///< Scalar for damping angular velocity.
bool m_forceUpright;  ///< Specifies if we should return the vehicle to upwards orientation.
bool m_noGravity;     ///< @unused

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Comment thread source/game/system/RaceConfig.cc
Comment thread source/game/system/RaceConfig.hh
@vabold vabold added the P4 Priority: Trivial label Nov 4, 2024
@vabold vabold force-pushed the ghost branch 2 times, most recently from 954dddc to f8d4e35 Compare December 15, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P4 Priority: Trivial

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants