diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-09-14 23:49:32 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-09-14 23:49:32 +0200 |
commit | 8d3f13c4478f7e99a32a0804d57ac2ece05d7e92 (patch) | |
tree | 2a18611e63cfbf501801563982562c136b0bca56 /logic/minecraft/World.h | |
parent | dd8eacee1b28ca40f8dc770587d111656d92d5fb (diff) | |
download | PrismLauncher-8d3f13c4478f7e99a32a0804d57ac2ece05d7e92.tar.gz PrismLauncher-8d3f13c4478f7e99a32a0804d57ac2ece05d7e92.tar.bz2 PrismLauncher-8d3f13c4478f7e99a32a0804d57ac2ece05d7e92.zip |
GH-1227 add world copy and rename
Diffstat (limited to 'logic/minecraft/World.h')
-rw-r--r-- | logic/minecraft/World.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/logic/minecraft/World.h b/logic/minecraft/World.h index bed8f967..3cde5ea4 100644 --- a/logic/minecraft/World.h +++ b/logic/minecraft/World.h @@ -17,7 +17,9 @@ #include <QFileInfo> #include <QDateTime> -class World +#include "multimc_logic_export.h" + +class MULTIMC_LOGIC_EXPORT World { public: World(const QFileInfo &file); @@ -56,7 +58,8 @@ public: // change the world's filesystem path (used by world lists for *MAGIC* purposes) void repath(const QFileInfo &file); - bool install(QString to); + bool rename(const QString &to); + bool install(const QString &to, const QString &name= QString()); // WEAK compare operator - used for replacing worlds bool operator==(const World &other) const; @@ -65,7 +68,7 @@ public: private: void readFromZip(const QFileInfo &file); void readFromFS(const QFileInfo &file); - void parseLevelDat(QByteArray data); + void loadFromLevelDat(QByteArray data); protected: |