mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
7f04ed990b
Introduction of pre compiled headers,...
32 lines
719 B
C++
32 lines
719 B
C++
#pragma once
|
|
|
|
|
|
|
|
/*
|
|
* CFileUtility.cpp, part of VCMI engine
|
|
*
|
|
* Authors: listed in file AUTHORS in main folder
|
|
*
|
|
* License: GNU General Public License v2.0 or later
|
|
* Full text of license available in license.txt file, in main folder
|
|
*
|
|
*/
|
|
|
|
/// Struct which stores name, date and a value which says if the file is located in LOD
|
|
struct FileInfo
|
|
{
|
|
std::string name; // file name with full path and extension
|
|
std::time_t date;
|
|
bool inLod; //tells if this file is located in Lod
|
|
};
|
|
|
|
class DLL_LINKAGE CFileUtility
|
|
{
|
|
public:
|
|
CFileUtility(void);
|
|
~CFileUtility(void);
|
|
|
|
static void getFilesWithExt(std::vector<FileInfo> &out, const std::string &dirname, const std::string &ext);
|
|
};
|
|
|