CExportGameDialog: Make FindBuildVersion() const

Doesn't modify class state.
This commit is contained in:
Lioncache
2025-12-20 17:38:08 -05:00
parent bc9e12b42e
commit a292c0ce92
2 changed files with 4 additions and 3 deletions

View File

@@ -282,12 +282,13 @@ bool CExportGameDialog::RequestWiiPortGame()
return false; return false;
} }
float CExportGameDialog::FindBuildVersion() float CExportGameDialog::FindBuildVersion() const
{ {
ASSERT(mpDisc != nullptr); ASSERT(mpDisc != nullptr);
// MP1 demo build doesn't have a build version // MP1 demo build doesn't have a build version
if (mGame == EGame::PrimeDemo) return 0.f; if (mGame == EGame::PrimeDemo)
return 0.f;
// Get DOL buffer // Get DOL buffer
std::unique_ptr<uint8_t[]> pDolData = mpDisc->getDataPartition()->getDOLBuf(); std::unique_ptr<uint8_t[]> pDolData = mpDisc->getDataPartition()->getDOLBuf();

View File

@@ -47,7 +47,7 @@ public:
void InitUI(QString ExportDir); void InitUI(QString ExportDir);
bool ValidateGame(); bool ValidateGame();
bool RequestWiiPortGame(); bool RequestWiiPortGame();
float FindBuildVersion(); float FindBuildVersion() const;
// Disc Tree // Disc Tree
void RecursiveAddToTree(const nod::Node *pkNode, class QTreeWidgetItem *pParent); void RecursiveAddToTree(const nod::Node *pkNode, class QTreeWidgetItem *pParent);