metaforce/hecl/dataspec/TXTR.hpp

50 lines
1.0 KiB
C++
Raw Normal View History

2015-05-21 02:33:05 +00:00
#ifndef TXTR_HPP
#define TXTR_HPP
#include "HECLDatabase.hpp"
2015-06-09 22:57:21 +00:00
#include "HECLRuntime.hpp"
#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:
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:57:21 +00:00
class CTXTRRuntime : public HECLRuntime::RuntimeObjectBase
2015-05-21 02:33:05 +00:00
{
2015-06-09 22:57:21 +00:00
using HECLRuntime::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