Skip to content

Conversation

@zer0k-z
Copy link
Contributor

@zer0k-z zer0k-z commented Apr 23, 2025

Also use m_MountedAddons as the server-side addon list and remove unnecessary interface class.

Resolves #20 and #30.

zer0k-z added 3 commits April 23, 2025 23:12
- Use m_MountedAddons as the server-side addon list
- Remove unnecessary interface class
Copy link
Collaborator

@xen-000 xen-000 left a 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.

Comment on lines 48 to 50
// 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;
Copy link
Collaborator

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.

Copy link
Contributor Author

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);
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

@zer0k-z zer0k-z requested a review from xen-000 April 30, 2025 12:07
@xen-000 xen-000 merged commit bf29ed3 into Source2ZE:main May 1, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Per-client addon control

2 participants