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

NetPlay: Refactor some functions into a common header #9763

Merged
merged 1 commit into from
Jul 6, 2021

Conversation

Techjar
Copy link
Contributor

@Techjar Techjar commented May 29, 2021

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.


namespace NetPlay
{
static constexpr u32 LZO_IN_LEN = 1024 * 64;
Copy link
Member

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.

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;
Copy link
Member

Choose a reason for hiding this comment

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

nor here

@leoetlino leoetlino merged commit 20ac3ed into dolphin-emu:master Jul 6, 2021
@dolphin-emu-bot
Copy link
Contributor

FifoCI detected that this change impacts graphical rendering. Here are the behavior differences detected by the system:

  • fortune-street-white-box on sw-lin-mesa: diff

automated-fifoci-reporter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants