-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* ============================================================================= | ||
* MultiAddonManager | ||
* Copyright (C) 2024 xen | ||
* ============================================================================= | ||
* | ||
* This program is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License, version 3.0, as published by the | ||
* Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | ||
* details. | ||
* | ||
* You should have received a copy of the GNU General Public License along with | ||
* this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#define MULTIADDONMANAGER_INTERFACE "MultiAddonManager001" | ||
|
||
class IMultiAddonManager | ||
{ | ||
public: | ||
// These add/remove to the internal list without reloading anything | ||
// pszWorkshopID is the workshop ID in string form (e.g. "3157463861") | ||
virtual bool AddAddon(const char *pszWorkshopID) = 0; | ||
virtual bool RemoveAddon(const char *pszWorkshopID) = 0; | ||
|
||
// Returns true if the given addon is mounted in the filesystem | ||
virtual bool IsAddonMounted(const char *pszWorkshopID) = 0; | ||
|
||
// Refresh addons, applying any changes from add/remove | ||
// This will trigger a map reload once all addons are updated and mounted | ||
virtual void RefreshAddons() = 0; | ||
|
||
// Clear the internal list and unmount all addons excluding the current workshop map | ||
virtual void ClearAddons() = 0; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters