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

Endian fixes for the Red Alert lobby networking code. #904

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

isojalka
Copy link
Contributor

@isojalka isojalka commented Mar 5, 2023

Please note that this is purely for the lobby. The actual game networking needs its own set of endian fixes.

common/connect.h Outdated
@@ -122,6 +123,12 @@ typedef struct
unsigned int PacketID;
} CommHeaderType;

static inline void SwapCommHeaderType(CommHeaderType* cht)
Copy link
Contributor

Choose a reason for hiding this comment

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

inline functions don't need to be marked as static to avoid the one definition rule when defined in headers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed the static inline functions to just inline.

@isojalka isojalka force-pushed the ra_net_lobby_endian branch from 142b331 to 4c519b8 Compare March 6, 2023 09:17
@hifi hifi merged commit f52d4d2 into TheAssemblyArmada:vanilla Mar 16, 2024
@isojalka isojalka deleted the ra_net_lobby_endian branch March 19, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants