-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add initial Sail implementation #790
base: develop
Are you sure you want to change the base?
Add initial Sail implementation #790
Conversation
d774bbf
to
9c13f54
Compare
796eda0
to
59735b4
Compare
59735b4
to
6b984bf
Compare
6b984bf
to
ee47074
Compare
{ DISABLE_FOR_SAIL_FORM_INVALID, | ||
{ [](disabledInfo& info) -> bool { | ||
return !(!isStringEmpty(CVarGetString("gNetwork.Sail.Host", "127.0.0.1")) && | ||
CVarGetInteger("gNetwork.Sail.Port", 43384) > 1024 && | ||
CVarGetInteger("gNetwork.Sail.Port", 43384) < 65535); | ||
}, | ||
"Invalid Host/Port" } }, | ||
{ DISABLE_FOR_SAIL_ENABLED, | ||
{ [](disabledInfo& info) -> bool { return Sail::Instance->isEnabled; }, "Sail is Enabled" } }, |
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.
This use of Sail::
needs to be wrapped in an ifdef to prevent compile errors with networking off. Not sure if it makes sense to just ifdef out the two disable options all together, or just force the return value to false.
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.
I think what I'm going to instead do is only #ifdef the SDL touch points within network.cpp, and leave the rest in place leaving it visually disabled without BUILD_NETWORKING
ee47074
to
e128749
Compare
Summary of differences from the implementation in SoH
Build Artifacts