| 1 |
/* |
| 2 |
* Copyright (C) 2005-2021 Team Kodi (https://kodi.tv) |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 5 |
* See LICENSE.md for more information. |
| 6 |
*/ |
| 7 |
|
| 8 |
#pragma once |
| 9 |
|
| 10 |
#include <string> |
| 11 |
|
| 12 |
namespace OS |
| 13 |
{ |
| 14 |
class CFile |
| 15 |
{ |
| 16 |
public: |
| 17 |
static bool Exists(const std::string& strFileName, long* errCode = NULL); |
| 18 |
}; |
| 19 |
|
| 20 |
#ifdef TARGET_WINDOWS_DESKTOP |
| 21 |
/** |
| 22 |
* Return the location of the Program Data folder |
| 23 |
* @param[in,out] programData Reference to a string that will receive the program data path |
| 24 |
* @return true on success, false on failure |
| 25 |
*/ |
| 26 |
bool GetProgramData(std::string& programData); |
| 27 |
#endif |
| 28 |
}; |