PlayFab / gsdk

Game Server SDK for PlayFab Multiplayer Servers
https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/
Apache License 2.0
146 stars 115 forks source link

Added -nogsdk flag to allow local ue server testing without MPS agent #129

Closed haydenstech closed 2 years ago

haydenstech commented 2 years ago

Closes #127

What this PR does / why we need it: Adds an optional command line argument for UE servers "-nogsdk" which disables GSDK calls in the UE plugin so that local servers can be easily run for local testing purposes.

Previously if a UE server was run without an MPS agent present then the server would error out. (as expected)

Special notes for your reviewer:

If applicable:

nassosterz-ms commented 2 years ago

Please leave one white space after every if statement.

nassosterz-ms commented 2 years ago

@haydenstech please also consider the comment I left above.

haydenstech commented 2 years ago

Ah missed that one, I'll get it sorted 👍

dgkanatsios commented 2 years ago

thanks for the contribution @haydenstech, much appreciated!

haydenstech commented 2 years ago

No worries, should all be up to spec now! 💯