mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 23:47:43 +00:00
initial MLVL and STRG trilogy integration
This commit is contained in:
@@ -10,10 +10,13 @@ namespace Retro
|
||||
/* This comes up a great deal */
|
||||
typedef Athena::io::DNA<Athena::BigEndian> BigDNA;
|
||||
|
||||
/* FourCC with DNA read/write */
|
||||
class FourCC final : public BigDNA, public HECL::FourCC
|
||||
{
|
||||
public:
|
||||
FourCC() : HECL::FourCC() {}
|
||||
FourCC(const HECL::FourCC& other)
|
||||
: HECL::FourCC() {num = other.toUint32();}
|
||||
FourCC(const char* name)
|
||||
: HECL::FourCC(name) {}
|
||||
|
||||
@@ -135,11 +138,63 @@ struct CaseInsensitiveCompare
|
||||
}
|
||||
};
|
||||
|
||||
/* Language-identifiers */
|
||||
extern const HECL::FourCC ENGL;
|
||||
extern const HECL::FourCC FREN;
|
||||
extern const HECL::FourCC GERM;
|
||||
extern const HECL::FourCC SPAN;
|
||||
extern const HECL::FourCC ITAL;
|
||||
extern const HECL::FourCC JAPN;
|
||||
|
||||
/* Resource types */
|
||||
extern const HECL::FourCC AFSM;
|
||||
extern const HECL::FourCC AGSC;
|
||||
extern const HECL::FourCC ANCS;
|
||||
extern const HECL::FourCC ANIM;
|
||||
extern const HECL::FourCC ATBL;
|
||||
extern const HECL::FourCC CINF;
|
||||
extern const HECL::FourCC CMDL;
|
||||
extern const HECL::FourCC CRSC;
|
||||
extern const HECL::FourCC CSKR;
|
||||
extern const HECL::FourCC CSMP;
|
||||
extern const HECL::FourCC CSNG;
|
||||
extern const HECL::FourCC CTWK;
|
||||
extern const HECL::FourCC DGRP;
|
||||
extern const HECL::FourCC DPSC;
|
||||
extern const HECL::FourCC DUMB;
|
||||
extern const HECL::FourCC ELSC;
|
||||
extern const HECL::FourCC EVNT;
|
||||
extern const HECL::FourCC FONT;
|
||||
extern const HECL::FourCC FRME;
|
||||
extern const HECL::FourCC HINT;
|
||||
extern const HECL::FourCC MAPA;
|
||||
extern const HECL::FourCC MAPU;
|
||||
extern const HECL::FourCC MAPW;
|
||||
extern const HECL::FourCC MLVL;
|
||||
extern const HECL::FourCC MREA;
|
||||
extern const HECL::FourCC PART;
|
||||
extern const HECL::FourCC PATH;
|
||||
extern const HECL::FourCC RFRM;
|
||||
extern const HECL::FourCC ROOM;
|
||||
extern const HECL::FourCC SAVW;
|
||||
extern const HECL::FourCC SCAN;
|
||||
extern const HECL::FourCC STRG;
|
||||
extern const HECL::FourCC SWHC;
|
||||
extern const HECL::FourCC TXTR;
|
||||
extern const HECL::FourCC WPSC;
|
||||
|
||||
}
|
||||
|
||||
/* Hash template-specializations for UniqueID types */
|
||||
namespace std
|
||||
{
|
||||
template<>
|
||||
struct hash<Retro::FourCC>
|
||||
{
|
||||
inline size_t operator()(const Retro::FourCC& fcc) const
|
||||
{return fcc.toUint32();}
|
||||
};
|
||||
|
||||
template<>
|
||||
struct hash<Retro::UniqueID32>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user