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
NetPlay: Refactor some functions into a common header #9763
Conversation
e4f4149
to
de6cea2
Compare
de6cea2
to
fd2c85c
Compare
Source/Core/Core/NetPlayCommon.cpp
Outdated
|
|
||
| namespace NetPlay | ||
| { | ||
| static constexpr u32 LZO_IN_LEN = 1024 * 64; |
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.
constexpr variables at namespace scope already have internal linkage by default, so static is not required here.
Source/Core/Core/NetPlayCommon.cpp
Outdated
| namespace NetPlay | ||
| { | ||
| static constexpr u32 LZO_IN_LEN = 1024 * 64; | ||
| static constexpr u32 LZO_OUT_LEN = LZO_IN_LEN + (LZO_IN_LEN / 16) + 64 + 3; |
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.
nor here
fd2c85c
to
afd6888
Compare
afd6888
to
3d5cf52
Compare
|
FifoCI detected that this change impacts graphical rendering. Here are the behavior differences detected by the system:
automated-fifoci-reporter |
This moves some functions to a common place so that both sides can use them, which may be needed for future features. Also reduces the amount of code in the client and server a little bit. I also removed an unused struct, and renamed/restructured some things.