mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-14 12:57:06 -05:00
Relocate porymapVersion
This commit is contained in:
@@ -4,12 +4,9 @@
|
||||
|
||||
#include <QJsonObject>
|
||||
#include <QString>
|
||||
#include <QVersionNumber>
|
||||
|
||||
#include "fieldmanager.h"
|
||||
|
||||
extern const QVersionNumber porymapVersion;
|
||||
|
||||
class KeyValueConfigBase
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
#define CONVERTER_H
|
||||
|
||||
#include <QJsonValue>
|
||||
#include <QVersionNumber>
|
||||
|
||||
#include "magic_enum.hpp"
|
||||
#include "orderedset.h"
|
||||
#include "scriptsettings.h"
|
||||
|
||||
9
include/core/version.h
Normal file
9
include/core/version.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
#ifndef VERSION_H
|
||||
#define VERSION_H
|
||||
|
||||
#include <QVersionNumber>
|
||||
|
||||
extern const QVersionNumber porymapVersion;
|
||||
|
||||
#endif // VERSION_H
|
||||
@@ -72,6 +72,7 @@ SOURCES += src/config/keyvalueconfigbase.cpp \
|
||||
src/core/tileset.cpp \
|
||||
src/core/utility.cpp \
|
||||
src/core/validator.cpp \
|
||||
src/core/version.cpp \
|
||||
src/core/regionmap.cpp \
|
||||
src/core/wildmoninfo.cpp \
|
||||
src/core/editcommands.cpp \
|
||||
@@ -195,6 +196,7 @@ HEADERS += include/config/keyvalueconfigbase.h \
|
||||
include/core/tileset.h \
|
||||
include/core/utility.h \
|
||||
include/core/validator.h \
|
||||
include/core/version.h \
|
||||
include/core/regionmap.h \
|
||||
include/core/wildmoninfo.h \
|
||||
include/core/editcommands.h \
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
|
||||
#include <QDir>
|
||||
|
||||
const QVersionNumber porymapVersion = QVersionNumber::fromString(PORYMAP_VERSION);
|
||||
|
||||
void KeyValueConfigBase::setRoot(const QString& root) {
|
||||
m_root = root;
|
||||
QDir dir(m_root);
|
||||
|
||||
3
src/core/version.cpp
Normal file
3
src/core/version.cpp
Normal file
@@ -0,0 +1,3 @@
|
||||
#include "version.h"
|
||||
|
||||
const QVersionNumber porymapVersion = QVersionNumber::fromString(PORYMAP_VERSION);
|
||||
@@ -29,6 +29,7 @@
|
||||
#include "newmapgroupdialog.h"
|
||||
#include "newlocationdialog.h"
|
||||
#include "loadingscreen.h"
|
||||
#include "version.h"
|
||||
|
||||
#include <QClipboard>
|
||||
#include <QDirIterator>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "log.h"
|
||||
#include "config.h"
|
||||
#include "mainwindow.h"
|
||||
#include "version.h"
|
||||
|
||||
Scripting *instance = nullptr;
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "ui_updatepromoter.h"
|
||||
#include "log.h"
|
||||
#include "config.h"
|
||||
#include "version.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
|
||||
Reference in New Issue
Block a user