mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-21 18:59:12 +00:00
CExportGameDialog: Make FindBuildVersion() const
Doesn't modify class state.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user