26 lines
440 B
C++
26 lines
440 B
C++
|
|
#ifndef LOADFILE_H
|
|
#define LOADFILE_H
|
|
|
|
#include <map>
|
|
#include <string>
|
|
#include "FileLoader/FileLoader.h"
|
|
|
|
typedef struct {
|
|
const char * filename;
|
|
unsigned char * data;
|
|
int length;
|
|
} fileref_t;
|
|
|
|
class LoadFile : public FileLoader
|
|
{
|
|
public:
|
|
LoadFile();
|
|
int getSize(const Path & path);
|
|
Buffer load(const Path & path);
|
|
protected:
|
|
std::map< std::string, fileref_t * > m_filemap;
|
|
};
|
|
|
|
#endif
|