mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-15 13:33:36 +02:00
Little changes around handling ERM. New class in lib: CFileUtility, so the code for scanning files with given extension is not duplicated.
21 lines
497 B
C++
21 lines
497 B
C++
#pragma once
|
|
#include "../global.h"
|
|
|
|
/// 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_EXPORT CFileUtility
|
|
{
|
|
public:
|
|
CFileUtility(void);
|
|
~CFileUtility(void);
|
|
|
|
static void getFilesWithExt(std::vector<FileInfo> &out, const std::string &dirname, const std::string &ext);
|
|
};
|
|
|