diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-09-13 04:21:26 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-09-13 04:21:26 +0200 |
commit | 8ef07ec6346a4f9c078184c9497e7c12f5b8c33d (patch) | |
tree | ddb81e3591825bd1cd5e080e1fcc4aede553d911 /logic/minecraft/World.h | |
parent | 2315f463a8e7713fc62027bb9540a22b240a0f78 (diff) | |
download | MultiMC-8ef07ec6346a4f9c078184c9497e7c12f5b8c33d.tar MultiMC-8ef07ec6346a4f9c078184c9497e7c12f5b8c33d.tar.gz MultiMC-8ef07ec6346a4f9c078184c9497e7c12f5b8c33d.tar.lz MultiMC-8ef07ec6346a4f9c078184c9497e7c12f5b8c33d.tar.xz MultiMC-8ef07ec6346a4f9c078184c9497e7c12f5b8c33d.zip |
GH-1227 allow structured world zip import and drag and drop out of MultiMC
Diffstat (limited to 'logic/minecraft/World.h')
-rw-r--r-- | logic/minecraft/World.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/logic/minecraft/World.h b/logic/minecraft/World.h index 27184e05..bed8f967 100644 --- a/logic/minecraft/World.h +++ b/logic/minecraft/World.h @@ -41,6 +41,14 @@ public: { return is_valid; } + bool isOnFS() const + { + return m_containerFile.isDir(); + } + QFileInfo container() const + { + return m_containerFile; + } // delete all the files of this world bool destroy(); // replace this world with a copy of the other @@ -62,6 +70,7 @@ private: protected: QFileInfo m_containerFile; + QString m_containerOffsetPath; QString m_folderName; QString m_actualName; QDateTime levelDatTime; |