216 std::optional<WineDependency>
getDependencyInfo(
const std::string& verbId)
const;
249 const std::string& verbId)
const;
257 std::vector<std::string>
259 const std::vector<std::string>& requiredVerbs)
const;
272 bool installDependency(
const std::filesystem::path& prefixPath,
const std::string& verbId,
279 const std::string& verbId,
290 const std::vector<std::string>& verbIds,
312 std::vector<DLLOverride>
getDLLOverrides(
const std::filesystem::path& prefixPath)
const;
321 bool setDLLOverride(
const std::filesystem::path& prefixPath,
const std::string& dllName,
322 const std::string& mode);
330 bool removeDLLOverride(
const std::filesystem::path& prefixPath,
const std::string& dllName);
363 bool installDotNet(
const std::filesystem::path& prefixPath,
const std::string& version =
"48",
374 void setWinePath(
const std::filesystem::path& winePath);
415 std::unique_ptr<Impl> impl_;
418 bool runWinetricks(
const std::filesystem::path& prefixPath,
421 bool runProtontricks(uint32_t appId,
const std::vector<std::string>& args,
424 void initializeDependencyDatabase();
425 std::vector<std::string> parseInstalledFromLog(
const std::filesystem::path& prefixPath)
const;
Complete representation of a game in the library.
bool installDotNet(const std::filesystem::path &prefixPath, const std::string &version="48", const ProgressCallback &progressCallback=nullptr)
Install .NET Framework.
bool updateWinetricks()
Update winetricks to latest version.
static std::string getProtontricksVersion()
Get protontricks version.
std::vector< WineDependency > searchDependencies(const std::string &query) const
Search for dependencies.
static bool isProtontricksAvailable()
Check if protontricks is available.
bool setDLLOverride(const std::filesystem::path &prefixPath, const std::string &dllName, const std::string &mode)
Set a DLL override.
int installDependencies(const std::filesystem::path &prefixPath, const std::vector< std::string > &verbIds, const ProgressCallback &progressCallback=nullptr)
Install multiple dependencies.
std::function< void(const DependencyInstallProgress &)> ProgressCallback
bool isDependencyInstalled(const std::filesystem::path &prefixPath, const std::string &verbId) const
Check if a specific dependency is installed.
PrefixDependencyStatus scanPrefix(const std::filesystem::path &prefixPath) const
Scan a prefix for installed dependencies.
bool installGamingPreset(const std::filesystem::path &prefixPath, const ProgressCallback &progressCallback=nullptr)
Install common gaming dependencies.
static bool isWinetricksAvailable()
Check if winetricks is available.
void cancelOperation()
Cancel ongoing operation.
std::vector< DLLOverride > getDLLOverrides(const std::filesystem::path &prefixPath) const
Get DLL overrides for a prefix.
bool removeDLLOverride(const std::filesystem::path &prefixPath, const std::string &dllName)
Remove a DLL override.
std::vector< WineDependency > getDependenciesByCategory(DependencyCategory category) const
Get dependencies by category.
std::vector< WineDependency > getAllDependencies() const
Get all available dependencies.
bool installDependency(const std::filesystem::path &prefixPath, const std::string &verbId, const ProgressCallback &progressCallback=nullptr)
Install a single dependency.
static std::string getWinetricksVersion()
Get winetricks version.
void setGuiMode(bool enabled)
Enable/disable GUI mode for winetricks.
void setWinePath(const std::filesystem::path &winePath)
Set custom Wine binary path.
bool installDirectXPreset(const std::filesystem::path &prefixPath, const ProgressCallback &progressCallback=nullptr)
Install DirectX dependencies.
std::vector< std::string > getMissingDependencies(const std::filesystem::path &prefixPath, const std::vector< std::string > &requiredVerbs) const
Get missing dependencies for a game.
void clearCache()
Clear winetricks cache.
std::future< bool > installDependencyAsync(const std::filesystem::path &prefixPath, const std::string &verbId, const ProgressCallback &progressCallback=nullptr)
Install a dependency asynchronously.
bool installForSteamGame(uint32_t steamAppId, const std::vector< std::string > &verbIds, const ProgressCallback &progressCallback=nullptr)
Install dependencies for a Steam/Proton game.
void setWinetricksPath(const std::filesystem::path &path)
Set winetricks path.
std::vector< std::string > getRecommendedDependencies() const
Get recommended dependencies for common game requirements.
std::filesystem::path getCacheDirectory() const
Get winetricks cache directory.
std::optional< WineDependency > getDependencyInfo(const std::string &verbId) const
Get dependency info by ID.
DLL override configuration.
std::string mode
"native", "builtin", "native,builtin", etc.
Progress information during dependency installation.
std::string getStateStr() const
std::string currentStep
Current step description.
std::string currentVerb
Current verb being installed.
Status of dependencies in a Wine prefix.
std::filesystem::path prefixPath
std::chrono::system_clock::time_point lastScanned
std::vector< std::string > missingRecommended
std::string architecture
"win32" or "win64"
std::vector< std::string > installedVerbs
Information about a Wine dependency/component.
std::string publisher
Microsoft, etc.
std::string installedVersion
std::string id
Winetricks verb (e.g., "vcrun2019").
std::string description
Description of what it installs.
std::string name
Human-readable name.
std::vector< std::string > conflicts
Verbs this conflicts with.
int64_t downloadSize
Approximate download size.
bool isInstalled
Whether installed in current prefix.
std::vector< std::string > aliases
Alternative names.
bool requires64bit
Requires 64-bit prefix.
std::vector< std::string > dependencies
Other verbs this depends on.
std::string downloadUrl
Direct download URL if known.
DependencyCategory category
std::string dependencyCategoryName(DependencyCategory category)
Get human-readable category name.
DependencyCategory
Categories of Wine dependencies.
@ Library
DLLs and libraries.
@ Setting
Wine settings/tweaks.
@ DirectX
DirectX components.
@ Redistributable
VC++ redistributables, .NET, etc.