22 Commits

Author SHA1 Message Date
ShadowNinja
f39223726d Fix missing SQLite3 statement pointer initialization
This fixes a segfault when the database is shut down
before it finishes connecting and setting up.
2015-04-07 00:31:41 -04:00
Craig Robbins
0731f9ed2a Move globals from main.cpp to more sane locations
Move debug streams to log.cpp|h

Move GUI-related globals to clientlauncher

Move g_settings and g_settings_path to settings.cpp|h

Move g_menuclouds to clouds.cpp|h

Move g_profiler to profiler.cpp|h
2015-04-01 23:04:25 +10:00
Craig Robbins
27791ee1aa For usages of assert() that are meant to persist in Release builds (when NDEBUG is defined), replace those usages with persistent alternatives 2015-03-07 22:41:47 +10:00
ShadowNinja
2cb27a5fb6 Clean up database API and save the local map on an interval 2015-03-06 00:20:45 -05:00
Loic Blot
5abc50f077 Replace std::list by std::vector into ServerMap::listAllLoadableBlocks ServerMap::listAllLoadedBlocks and their database backends.
This adds a speedup on database migration and /clearobjects command
2015-02-17 14:35:44 +01:00
Kahrl
587e426efc Fix uninitialized variable m_database_delete in Database_SQLite3
This fixes issue #2219
2015-01-28 05:01:07 +01:00
kwolekr
66b0d25786 Add ability to delete MapBlocks from map
Also add a Lua API and chatcommand for this
2015-01-15 16:48:56 -05:00
ShadowNinja
dbf9e444b1 Split settings into seperate source and header files
This also cleans up settings a bit
2014-09-21 14:39:35 -04:00
sapier
bdf071c46b Add sqlite3 backend hack for android 2014-08-16 12:28:07 +02:00
sfan5
ba889166fd Move MapBlock (de)serializing code out of Database class 2014-07-12 17:38:17 +02:00
kwolekr
77656b0723 Don't unload blocks if save failed
Improve error handling in saveBlock()
2014-07-07 01:20:25 -04:00
sapier
0cc88400f4 Switch android to leveldb as sqlite3 is broken and fails to save any mapblock there 2014-07-06 21:27:54 +02:00
ShadowNinja
6753feceb5 Remove confusing code block from SQLite3 database 2014-06-23 15:36:45 -04:00
sapier
f0edcf6f3a Fix sqlite3 map shutdown fails due to missing to finalize list statement
Add error output on fail to shutdown sqlite3 map db
Implement shutdown of sqlite3 rollback db
2014-06-22 13:38:51 +02:00
kwolekr
a499f5f623 Don't continue trying to deserialize blank block data 2013-11-24 02:10:15 -05:00
kwolekr
eca52a4016 Do the same for LevelDB interface 2013-11-17 11:26:34 -05:00
kwolekr
0f390b46a9 Handle blank blocks in database
Fix screwed-up indentation
2013-11-17 10:57:45 -05:00
proller
d01bb79c86 Add configurable PRAGMA synchronous = 2013-09-17 02:11:30 +04:00
Kahrl
7f7f54b581 Add license headers and remove useless includes 2013-09-10 16:09:30 +02:00
Sfan5
e3010b9862 Use STL containers instead of irr::core::list 2013-09-09 22:50:51 +02:00
Sfan5
4901d1e853 Make it compile 2013-09-09 22:50:50 +02:00
Ilya Zhuravlev
30af8e75d7 Add dummy and LevelDB database backends 2013-09-09 22:50:50 +02:00