-
Notifications
You must be signed in to change notification settings - Fork 18
Rewrite to support client-side addons #32
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
Conversation
- Use m_MountedAddons as the server-side addon list - Remove unnecessary interface class
xen-000
left a comment
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.
Just went through the changes and I have some remarks. Will test them later.
public/imultiaddonmanager.h
Outdated
| // Check whether the server is connected to the game coordinator, and therefore is capable of downloading addons. | ||
| // Should be called before calling DownloadAddon. | ||
| virtual bool HasGCConnection() = 0; |
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.
You mean Steam UGC (user-generated content), not the game coordinator.
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 renamed this function to HasUGCConnection instead for the lack of better name.
| clientInfo.lastActiveTime = Plat_FloatTime(); | ||
|
|
||
| // Server copies the CUtlString from CNetworkGameServer to this client. | ||
| CUtlString *addons = (CUtlString *)((uintptr_t)server + 328); |
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.
Is this offset the same on linux?
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.
Yes, it's the same in both platforms.
Also use m_MountedAddons as the server-side addon list and remove unnecessary interface class.
Resolves #20 and #30.