Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for reading 200cc #168

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add support for reading 200cc #168

wants to merge 1 commit into from

Conversation

vabold
Copy link
Owner

@vabold vabold commented Nov 1, 2024

No description provided.


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

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
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.

u8 trackSHA1[20];
u64 ghostDBPlayerID;
f32 trueFinishTime;
u8 _20[0x27 - 0x20];
Copy link
Contributor

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
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
Contributor

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
Contributor

Choose a reason for hiding this comment

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

image

@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