mirror of
https://github.com/rwengine/openrw.git
synced 2024-10-05 00:27:30 +02:00
90acef28f7
- use mapping file - forward define FileContentsInfo, CutsceneTracks, GameTexts - no more "#pragma once" - add mapping file
22 lines
347 B
C++
22 lines
347 B
C++
#ifndef _LIBRW_FILEHANDLE_HPP_
|
|
#define _LIBRW_FILEHANDLE_HPP_
|
|
|
|
#include <memory>
|
|
|
|
/**
|
|
* @brief Contains a pointer to a file's contents.
|
|
*/
|
|
struct FileContentsInfo {
|
|
char* data;
|
|
size_t length;
|
|
|
|
FileContentsInfo(char* mem, size_t len) : data(mem), length(len) {
|
|
}
|
|
|
|
~FileContentsInfo() {
|
|
delete[] data;
|
|
}
|
|
};
|
|
|
|
#endif
|