Merge pull request #9763 from Techjar/netplay-common-refactor NetPlay: Refactor some functions into a common header