-
Notifications
You must be signed in to change notification settings - Fork 12
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
base: main
Are you sure you want to change the base?
Conversation
source/game/system/GhostFile.cc
Outdated
|
||
void CTGPMetadata::read(const CTGPGhostFooter *data) { | ||
if (!data) { | ||
isCTGP = false; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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]; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
954dddc
to
f8d4e35
Compare
No description provided.