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;
|
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();
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user