mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
* Finish level saving.
This commit is contained in:
@@ -8,9 +8,14 @@
|
||||
|
||||
#include "NinecraftApp.hpp"
|
||||
#include "StartMenuScreen.hpp"
|
||||
#include "MemoryLevelStorageSource.hpp"
|
||||
#include "Item.hpp"
|
||||
|
||||
#ifdef DEMO
|
||||
#include "MemoryLevelStorageSource.hpp"
|
||||
#else
|
||||
#include "ExternalFileLevelStorageSource.hpp"
|
||||
#endif
|
||||
|
||||
bool NinecraftApp::_hasInitedStatics;
|
||||
|
||||
bool NinecraftApp::handleBack(bool b)
|
||||
@@ -66,7 +71,13 @@ void NinecraftApp::init()
|
||||
initGLStates();
|
||||
Tesselator::instance.init();
|
||||
Minecraft::init();
|
||||
|
||||
#ifdef DEMO
|
||||
m_pLevelStorageSource = new MemoryLevelStorageSource;
|
||||
#else
|
||||
m_pLevelStorageSource = new ExternalFileLevelStorageSource(m_externalStorageDir);
|
||||
#endif
|
||||
|
||||
field_D9C = 0;
|
||||
|
||||
setScreen(new StartMenuScreen);
|
||||
|
||||
Reference in New Issue
Block a user