Auto-detect more version names

This commit is contained in:
GriffinR
2024-07-15 21:10:54 -04:00
parent db598a43db
commit 29ed696d9e
4 changed files with 41 additions and 23 deletions

View File

@@ -158,6 +158,7 @@ private:
extern PorymapConfig porymapConfig;
enum BaseGameVersion {
none,
pokeruby,
pokefirered,
pokeemerald,
@@ -303,7 +304,7 @@ public:
static const QMap<ProjectIdentifier, QPair<QString, QString>> defaultIdentifiers;
static const QMap<ProjectFilePath, QPair<QString, QString>> defaultPaths;
static const QStringList versionStrings;
static BaseGameVersion stringToBaseGameVersion(QString string, bool * ok = nullptr);
static BaseGameVersion stringToBaseGameVersion(const QString &string);
void reset(BaseGameVersion baseGameVersion);
void setFilePath(ProjectFilePath pathId, const QString &path);