2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 13:44:56 +00:00

Convert to pragma once

This commit is contained in:
Jack Andersen
2018-10-06 17:42:33 -10:00
parent 9461e98512
commit c91e5df986
818 changed files with 815 additions and 4978 deletions

View File

@@ -1,5 +1,4 @@
#ifndef _DNACOMMON_ANCS_HPP_
#define _DNACOMMON_ANCS_HPP_
#pragma once
#include <unordered_set>
#include "DNACommon.hpp"
@@ -44,4 +43,3 @@ bool ReadANCSToBlender(hecl::blender::Connection& conn,
}
#endif // _DNACOMMON_ANCS_HPP_

View File

@@ -1,5 +1,4 @@
#ifndef _DNACOMMON_ANIMBITSTREAM_HPP_
#define _DNACOMMON_ANIMBITSTREAM_HPP_
#pragma once
#include "DNACommon.hpp"
#include <cmath>
@@ -99,4 +98,3 @@ public:
}
#endif // _DNACOMMON_ANIMBITSTREAM_HPP_

View File

@@ -1,5 +1,4 @@
#ifndef _DNACOMMON_AROTBUILDER_HPP_
#define _DNACOMMON_AROTBUILDER_HPP_
#pragma once
#include "DNACommon.hpp"
#include "DeafBabe.hpp"
@@ -59,4 +58,3 @@ struct AROTBuilder
}
#endif // _DNACOMMON_AROTBUILDER_HPP_

View File

@@ -1,5 +1,4 @@
#ifndef _DNACOMMON_ATBL_HPP_
#define _DNACOMMON_ATBL_HPP_
#pragma once
#include "DNACommon.hpp"
#include "PAK.hpp"
@@ -16,4 +15,3 @@ public:
}
#endif // _DNACOMMON_ATBL_HPP_

View File

@@ -1,5 +1,4 @@
#ifndef _DNACOMMON_BABEDEAD_HPP_
#define _DNACOMMON_BABEDEAD_HPP_
#pragma once
#include "zeus/Math.hpp"
#include "hecl/hecl.hpp"
@@ -17,4 +16,3 @@ void WriteBabeDeadLightFromBlender(BabeDeadLight& lightOut, const hecl::blender:
}
#endif // _DNACOMMON_BABEDEAD_HPP_

View File

@@ -1,5 +1,4 @@
#ifndef _DNACOMMON_CMDL_HPP_
#define _DNACOMMON_CMDL_HPP_
#pragma once
#include "athena/FileWriter.hpp"
#include "hecl/Frontend.hpp"
@@ -179,4 +178,3 @@ bool WriteHMDLMREASecs(std::vector<std::vector<uint8_t>>& secsOut, const hecl::P
}
#endif // _DNACOMMON_CMDL_HPP_

View File

@@ -1,5 +1,4 @@
#ifndef __COMMON_CRSC_HPP__
#define __COMMON_CRSC_HPP__
#pragma once
#include "ParticleCommon.hpp"
#include "PAK.hpp"
@@ -29,4 +28,3 @@ bool ExtractCRSM(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath);
template <class IDType>
bool WriteCRSM(const CRSM<IDType>& crsm, const hecl::ProjectPath& outPath);
}
#endif // __COMMON_CRSC_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __COMMON_DGRP_HPP__
#define __COMMON_DGRP_HPP__
#pragma once
#include "DNACommon.hpp"
#include "PAK.hpp"
@@ -48,4 +47,3 @@ bool WriteDGRP(const DGRP<IDType>& dgrp, const hecl::ProjectPath& outPath);
}
#endif // __COMMON_DGRP_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNA_COMMON_HPP__
#define __DNA_COMMON_HPP__
#pragma once
#include <cstdio>
#include "logvisor/logvisor.hpp"
@@ -462,4 +461,3 @@ struct hash<DataSpec::UniqueID128>
};
}
#endif // __DNA_COMMON_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __COMMON_DPSC_HPP__
#define __COMMON_DPSC_HPP__
#pragma once
#include "ParticleCommon.hpp"
#include "PAK.hpp"
@@ -55,4 +54,3 @@ bool WriteDPSM(const DPSM<IDType>& dpsm, const hecl::ProjectPath& outPath);
}
#endif // __COMMON_DPSC_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef _DNACOMMON_DEAFBABE_HPP_
#define _DNACOMMON_DEAFBABE_HPP_
#pragma once
#include "DNACommon.hpp"
@@ -21,4 +20,3 @@ void DeafBabeBuildFromBlender(DEAFBABE& db, const hecl::blender::ColMesh& colMes
}
#endif // _DNACOMMON_DEAFBABE_HPP_

View File

@@ -1,5 +1,4 @@
#ifndef _DNACOMMON_EGMC_HPP_
#define _DNACOMMON_EGMC_HPP_
#pragma once
#include "DNACommon.hpp"
@@ -20,4 +19,3 @@ struct EGMC : public BigDNA
Vector<Object, AT_DNA_COUNT(count)> objects;
};
}
#endif // _DNACOMMON_EGMC_HPP_

View File

@@ -1,5 +1,4 @@
#ifndef __COMMON_ELSC_HPP__
#define __COMMON_ELSC_HPP__
#pragma once
#include "ParticleCommon.hpp"
#include "PAK.hpp"
@@ -43,4 +42,3 @@ template <class IDType>
bool WriteELSM(const ELSM<IDType>& elsm, const hecl::ProjectPath& outPath);
}
#endif // __COMMON_ELSC_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __COMMON_FONT_HPP__
#define __COMMON_FONT_HPP__
#pragma once
#include "PAK.hpp"
#include "athena/FileWriter.hpp"
@@ -125,4 +124,3 @@ bool WriteFONT(const FONT<IDType>& font, const hecl::ProjectPath& outPath);
}
#endif // __COMMON_FONT_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __COMMON_FSM2_HPP__
#define __COMMON_FSM2_HPP__
#pragma once
#include "PAK.hpp"
#include "DNACommon.hpp"
@@ -153,4 +152,3 @@ template <class IDType>
bool WriteFSM2(const FSM2<IDType>& fsm2, const hecl::ProjectPath& outPath);
}
#endif // __COMMON_FSM2_HPP__

View File

@@ -1,7 +1,5 @@
#ifndef _DNACOMMON_GX_HPP_
#define _DNACOMMON_GX_HPP_
#pragma once
#include "hecl/Backend/GX.hpp"
using GX = hecl::Backend::GX;
#endif // _DNACOMMON_GX_HPP_

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_MAPA_HPP__
#define __DNACOMMON_MAPA_HPP__
#pragma once
#include "DNACommon.hpp"
#include "GX.hpp"
@@ -191,4 +190,3 @@ bool Cook(const hecl::blender::MapArea& mapa, const hecl::ProjectPath& out);
}
#endif // __DNACOMMON_MAPA_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_MAPU_HPP__
#define __DNACOMMON_MAPU_HPP__
#pragma once
#include "DNACommon.hpp"
@@ -42,4 +41,3 @@ bool ReadMAPUToBlender(hecl::blender::Connection& conn,
}
#endif // __DNACOMMON_MAPU_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_MLVL_HPP__
#define __DNACOMMON_MLVL_HPP__
#pragma once
#include "DNACommon.hpp"
#include "zeus/CVector3f.hpp"
@@ -18,4 +17,3 @@ bool ReadMLVLToBlender(hecl::blender::Connection& conn,
}
#endif // __DNACOMMON_MLVL_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef DNACOMMON_OBBTREEBUILDER_HPP
#define DNACOMMON_OBBTREEBUILDER_HPP
#pragma once
#include "DNACommon.hpp"
@@ -15,4 +14,3 @@ struct OBBTreeBuilder
}
#endif // DNACOMMON_OBBTREEBUILDER_HPP

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_PAK_HPP__
#define __DNACOMMON_PAK_HPP__
#pragma once
#include "DNACommon.hpp"
#include "boo/ThreadLocalPtr.hpp"
@@ -239,4 +238,3 @@ public:
}
#endif // __DNACOMMON_PAK_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __COMMON_PART_HPP__
#define __COMMON_PART_HPP__
#pragma once
#include "ParticleCommon.hpp"
#include "PAK.hpp"
@@ -115,4 +114,3 @@ bool WriteGPSM(const GPSM<IDType>& gpsm, const hecl::ProjectPath& outPath);
}
#endif // __COMMON_PART_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __COMMON_PARTICLECOMMON_HPP__
#define __COMMON_PARTICLECOMMON_HPP__
#pragma once
#include "DNACommon.hpp"
@@ -902,4 +901,3 @@ struct ChildResourceFactory : BigDNA
}
#endif // __COMMON_PARTICLECOMMON_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __COMMON_RIGINVERTER_HPP__
#define __COMMON_RIGINVERTER_HPP__
#pragma once
#include "zeus/CVector3f.hpp"
#include "zeus/CMatrix3f.hpp"
@@ -43,4 +42,3 @@ public:
}
#endif // __COMMON_RIGINVERTER_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __COMMON_SAVWCOMMON_HPP__
#define __COMMON_SAVWCOMMON_HPP__
#pragma once
#include "DNACommon.hpp"
#include "PAK.hpp"
@@ -51,4 +50,3 @@ static bool ExtractSAVW(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath
}
#endif // __COMMON_SAVWCOMMON_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __COMMON_STRG_HPP__
#define __COMMON_STRG_HPP__
#pragma once
#include <string>
#include <fstream>
@@ -26,4 +25,3 @@ std::unique_ptr<ISTRG> LoadSTRG(athena::io::IStreamReader& reader);
}
#endif // __COMMON_STRG_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __COMMON_SWHC_HPP__
#define __COMMON_SWHC_HPP__
#pragma once
#include "ParticleCommon.hpp"
#include "PAK.hpp"
@@ -56,4 +55,3 @@ bool ExtractSWSH(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath);
template <class IDType>
bool WriteSWSH(const SWSH<IDType>& gpsm, const hecl::ProjectPath& outPath);
}
#endif // __COMMON_SWHC_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_TXTR_HPP__
#define __DNACOMMON_TXTR_HPP__
#pragma once
#include "DNACommon.hpp"
@@ -16,4 +15,3 @@ struct TXTR
}
#endif // __DNACOMMON_TXTR_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAK_HPP__
#define __DNACOMMON_ITWEAK_HPP__
#pragma once
#include "DataSpec/DNACommon/DNACommon.hpp"
@@ -16,4 +15,3 @@ struct ITweak : BigDNA
};
}
#endif // __DNACOMMON_ITWEAK_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAKAUTOMAPPER_HPP__
#define __DNACOMMON_ITWEAKAUTOMAPPER_HPP__
#pragma once
#include "ITweak.hpp"
@@ -66,4 +65,3 @@ struct ITweakAutoMapper : public ITweak
}
#endif // __DNACOMMON_ITWEAKAUTOMAPPER_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAKBALL_HPP__
#define __DNACOMMON_ITWEAKBALL_HPP__
#pragma once
#include "ITweak.hpp"
@@ -71,4 +70,3 @@ struct ITweakBall : ITweak
};
}
#endif // __DNACOMMON_ITWEAKBALL_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAKGAME_HPP__
#define __DNACOMMON_ITWEAKGAME_HPP__
#pragma once
#include "ITweak.hpp"
@@ -28,4 +27,3 @@ struct ITweakGame : ITweak
};
}
#endif

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAKGUI_HPP__
#define __DNACOMMON_ITWEAKGUI_HPP__
#pragma once
#include "ITweak.hpp"
#include "zeus/CVector2f.hpp"
@@ -152,4 +151,3 @@ struct ITweakGui : ITweak
}
#endif // __DNACOMMON_ITWEAKGUI_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAKGUICOLORS_HPP__
#define __DNACOMMON_ITWEAKGUICOLORS_HPP__
#pragma once
#include "ITweak.hpp"
@@ -106,4 +105,3 @@ struct ITweakGuiColors : ITweak
};
}
#endif // __DNACOMMON_ITWEAKGUICOLORS_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAKGUNRES_HPP__
#define __DNACOMMON_ITWEAKGUNRES_HPP__
#pragma once
#include "ITweak.hpp"
#include "Runtime/IFactory.hpp"
@@ -139,4 +138,3 @@ protected:
}
#endif

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAKPARTICLE_HPP__
#define __DNACOMMON_ITWEAKPARTICLE_HPP__
#pragma once
#include "ITweak.hpp"
@@ -12,4 +11,3 @@ struct ITweakParticle : ITweak
}
#endif

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAKPLAYER_HPP__
#define __DNACOMMON_ITWEAKPLAYER_HPP__
#pragma once
#include "ITweak.hpp"
#include "zeus/CAABox.hpp"
@@ -146,4 +145,3 @@ struct ITweakPlayer : ITweak
}
#endif // __DNACOMMON_ITWEAKPLAYER_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAKPLAYERCONTROL_HPP__
#define __DNACOMMON_ITWEAKPLAYERCONTROL_HPP__
#pragma once
#include "ITweak.hpp"
@@ -13,4 +12,3 @@ struct ITweakPlayerControl : ITweak
}
#endif // __DNACOMMON_ITWEAKPLAYERCONTROL_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAKPLAYERGUN_HPP__
#define __DNACOMMON_ITWEAKPLAYERGUN_HPP__
#pragma once
#include "ITweak.hpp"
#include "zeus/CAABox.hpp"
@@ -73,4 +72,3 @@ struct ITweakPlayerGun : ITweak
};
}
#endif // __DNACOMMON_ITWEAKPLAYERGUN_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAKPLAYERRES_HPP__
#define __DNACOMMON_ITWEAKPLAYERRES_HPP__
#pragma once
#include "ITweak.hpp"
#include "Runtime/IFactory.hpp"
@@ -165,4 +164,3 @@ protected:
}
#endif // __DNACOMMON_ITWEAKPLAYERRES_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAKSLIDESHOW_HPP__
#define __DNACOMMON_ITWEAKSLIDESHOW_HPP__
#pragma once
#include "ITweak.hpp"
@@ -17,4 +16,3 @@ struct ITweakSlideShow : ITweak
}
#endif // __DNACOMMON_ITWEAKSLIDESHOW_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_ITWEAKTARGETING_HPP__
#define __DNACOMMON_ITWEAKTARGETING_HPP__
#pragma once
#include "ITweak.hpp"
namespace DataSpec
@@ -97,4 +96,3 @@ struct ITweakTargeting : public ITweak
};
}
#endif // __DNACOMMON_ITWEAKTARGETING_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __DNACOMMON_TWEAKWRITER_HPP__
#define __DNACOMMON_TWEAKWRITER_HPP__
#pragma once
#include "../PAK.hpp"
@@ -36,4 +35,3 @@ bool ExtractTweak(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath)
}
#endif // __DNACOMMON_TWEAKWRITER_HPP__

View File

@@ -1,5 +1,4 @@
#ifndef __COMMON_WPSC_HPP__
#define __COMMON_WPSC_HPP__
#pragma once
#include "ParticleCommon.hpp"
#include "PAK.hpp"
@@ -63,4 +62,3 @@ bool WriteWPSM(const WPSM<IDType>& wpsm, const hecl::ProjectPath& outPath);
}
#endif // __COMMON_WPSC_HPP__