2015-05-21 02:33:05 +00:00
|
|
|
#ifndef TXTR_HPP
|
|
|
|
#define TXTR_HPP
|
|
|
|
|
|
|
|
#include "HECLDatabase.hpp"
|
2015-05-23 21:59:40 +00:00
|
|
|
#include "helpers.hpp"
|
2015-05-21 02:33:05 +00:00
|
|
|
|
2015-06-09 22:19:59 +00:00
|
|
|
class CTXTRProject : public HECLDatabase::ProjectObjectBase
|
2015-05-21 02:33:05 +00:00
|
|
|
{
|
2015-06-09 22:19:59 +00:00
|
|
|
using HECLDatabase::ProjectObjectBase::ProjectObjectBase;
|
|
|
|
|
|
|
|
bool _cookObject(FDataAppender dataAppender,
|
2015-05-21 02:33:05 +00:00
|
|
|
DataEndianness endianness, DataPlatform platform)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2015-06-09 22:19:59 +00:00
|
|
|
void _gatherDeps(FDepAdder depAdder)
|
2015-05-21 02:33:05 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public:
|
2015-05-23 21:59:40 +00:00
|
|
|
static bool ClaimPath(const std::string& path, const std::string&)
|
|
|
|
{
|
|
|
|
if (!HECLHelpers::IsRegularFile(path))
|
|
|
|
return false;
|
|
|
|
if (!HECLHelpers::ContainsMagic(path, "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A", 8))
|
|
|
|
return false;
|
|
|
|
return true;
|
|
|
|
}
|
2015-05-21 02:33:05 +00:00
|
|
|
};
|
|
|
|
|
2015-06-09 22:19:59 +00:00
|
|
|
class CTXTRRuntime : public HECLDatabase::RuntimeObjectBase
|
2015-05-21 02:33:05 +00:00
|
|
|
{
|
2015-06-09 22:19:59 +00:00
|
|
|
using HECLDatabase::RuntimeObjectBase::RuntimeObjectBase;
|
2015-05-21 02:33:05 +00:00
|
|
|
|
|
|
|
bool _objectFinishedLoading(const void* data, size_t len)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void _objectWillUnload()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TXTR_HPP
|