summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/World.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-09-14 23:49:32 +0200
committerPetr Mrázek <peterix@gmail.com>2015-09-14 23:49:32 +0200
commit8d3f13c4478f7e99a32a0804d57ac2ece05d7e92 (patch)
tree2a18611e63cfbf501801563982562c136b0bca56 /logic/minecraft/World.h
parentdd8eacee1b28ca40f8dc770587d111656d92d5fb (diff)
downloadMultiMC-8d3f13c4478f7e99a32a0804d57ac2ece05d7e92.tar
MultiMC-8d3f13c4478f7e99a32a0804d57ac2ece05d7e92.tar.gz
MultiMC-8d3f13c4478f7e99a32a0804d57ac2ece05d7e92.tar.lz
MultiMC-8d3f13c4478f7e99a32a0804d57ac2ece05d7e92.tar.xz
MultiMC-8d3f13c4478f7e99a32a0804d57ac2ece05d7e92.zip
GH-1227 add world copy and rename
Diffstat (limited to 'logic/minecraft/World.h')
-rw-r--r--logic/minecraft/World.h9
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: