[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / addons / FilesystemInstaller.h
blobd0bfdcdf8d69cee2aebe858cddcd91cc57012627
1 /*
2 * Copyright (C) 2016-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include <string>
13 /*!
14 * Responsible for safely unpacking/copying/removing addon files from/to the addon folder.
16 class CFilesystemInstaller
18 public:
20 CFilesystemInstaller();
22 /*!
23 * @param archive Absolute path to zip file to install.
24 * @param addonId
25 * @return true on success, otherwise false.
27 bool InstallToFilesystem(const std::string& archive, const std::string& addonId);
29 bool UnInstallFromFilesystem(const std::string& addonPath);
31 private:
32 static bool UnpackArchive(std::string path, const std::string& dest);
34 std::string m_addonFolder;
35 std::string m_tempFolder;