From 811447a387c474315ba3869c698b6827f2bfddcb Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 18 Jun 2020 18:40:57 -0400 Subject: [PATCH] CGameExporter: Mark ShouldExportDiscNode() as a const member function This doesn't modify internal state. --- src/Core/GameProject/CGameExporter.cpp | 2 +- src/Core/GameProject/CGameExporter.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/GameProject/CGameExporter.cpp b/src/Core/GameProject/CGameExporter.cpp index 5470960a..ffa49ed7 100644 --- a/src/Core/GameProject/CGameExporter.cpp +++ b/src/Core/GameProject/CGameExporter.cpp @@ -106,7 +106,7 @@ void CGameExporter::LoadResource(const CAssetID& rkID, std::vector& rBuff 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) { diff --git a/src/Core/GameProject/CGameExporter.h b/src/Core/GameProject/CGameExporter.h index 6606ad01..dfd11c6a 100644 --- a/src/Core/GameProject/CGameExporter.h +++ b/src/Core/GameProject/CGameExporter.h @@ -77,7 +77,7 @@ public: 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); void LoadResource(const CAssetID& rkID, std::vector& rBuffer); - bool ShouldExportDiscNode(const nod::Node *pkNode, bool IsInRoot); + bool ShouldExportDiscNode(const nod::Node *pkNode, bool IsInRoot) const; TString ProjectPath() const { return mProjectPath; }