* Finish level saving.

This commit is contained in:
iProgramInCpp
2023-08-02 13:15:25 +03:00
parent 16e2b79165
commit 450cb190b6
22 changed files with 1005 additions and 29 deletions

View File

@@ -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);