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;
}
float CExportGameDialog::FindBuildVersion()
float CExportGameDialog::FindBuildVersion() const
{
ASSERT(mpDisc != nullptr);
// 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
std::unique_ptr<uint8_t[]> pDolData = mpDisc->getDataPartition()->getDOLBuf();

View File

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