CGameExporter: Mark ShouldExportDiscNode() as a const member function

This doesn't modify internal state.
This commit is contained in:
Lioncash 2020-06-18 18:40:57 -04:00
parent 2d1e6b9672
commit 811447a387
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ void CGameExporter::LoadResource(const CAssetID& rkID, std::vector<uint8>& rBuff
LoadResource(*pInst, rBuffer); LoadResource(*pInst, rBuffer);
} }
bool CGameExporter::ShouldExportDiscNode(const nod::Node *pkNode, bool IsInRoot) bool CGameExporter::ShouldExportDiscNode(const nod::Node *pkNode, bool IsInRoot) const
{ {
if (IsInRoot && mDiscType != EDiscType::Normal) if (IsInRoot && mDiscType != EDiscType::Normal)
{ {

View File

@ -77,7 +77,7 @@ public:
CGameExporter(EDiscType DiscType, EGame Game, bool FrontEnd, ERegion Region, const TString& rkGameName, const TString& rkGameID, float BuildVersion); CGameExporter(EDiscType DiscType, EGame Game, bool FrontEnd, ERegion Region, const TString& rkGameName, const TString& rkGameID, float BuildVersion);
bool Export(nod::DiscBase *pDisc, const TString& rkOutputDir, CAssetNameMap *pNameMap, CGameInfo *pGameInfo, IProgressNotifier *pProgress); bool Export(nod::DiscBase *pDisc, const TString& rkOutputDir, CAssetNameMap *pNameMap, CGameInfo *pGameInfo, IProgressNotifier *pProgress);
void LoadResource(const CAssetID& rkID, std::vector<uint8>& rBuffer); void LoadResource(const CAssetID& rkID, std::vector<uint8>& rBuffer);
bool ShouldExportDiscNode(const nod::Node *pkNode, bool IsInRoot); bool ShouldExportDiscNode(const nod::Node *pkNode, bool IsInRoot) const;
TString ProjectPath() const { return mProjectPath; } TString ProjectPath() const { return mProjectPath; }