mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:18:12 +02:00
remove the option to persist entities as anything other than json.gz files
This commit is contained in:
parent
169bb9f3d9
commit
4a456488a1
2 changed files with 3 additions and 30 deletions
|
@ -971,12 +971,7 @@ void OctreeServer::readConfiguration() {
|
||||||
strcpy(_persistFilename, qPrintable(persistFilename));
|
strcpy(_persistFilename, qPrintable(persistFilename));
|
||||||
qDebug("persistFilename=%s", _persistFilename);
|
qDebug("persistFilename=%s", _persistFilename);
|
||||||
|
|
||||||
QString persistAsFileType;
|
_persistAsFileType = "json.gz";
|
||||||
if (!readOptionString(QString("persistAsFileType"), settingsSectionObject, persistAsFileType)) {
|
|
||||||
persistAsFileType = "svo";
|
|
||||||
}
|
|
||||||
_persistAsFileType = persistAsFileType;
|
|
||||||
qDebug() << "persistAsFileType=" << _persistAsFileType;
|
|
||||||
|
|
||||||
_persistInterval = OctreePersistThread::DEFAULT_PERSIST_INTERVAL;
|
_persistInterval = OctreePersistThread::DEFAULT_PERSIST_INTERVAL;
|
||||||
readOptionInt(QString("persistInterval"), settingsSectionObject, _persistInterval);
|
readOptionInt(QString("persistInterval"), settingsSectionObject, _persistInterval);
|
||||||
|
|
|
@ -371,30 +371,8 @@
|
||||||
"name": "persistFilename",
|
"name": "persistFilename",
|
||||||
"label": "Entities Filename",
|
"label": "Entities Filename",
|
||||||
"help": "the path to the file entities are stored in. Make sure the path exists.",
|
"help": "the path to the file entities are stored in. Make sure the path exists.",
|
||||||
"placeholder": "resources/models.svo",
|
"placeholder": "resources/models.json.gz",
|
||||||
"default": "resources/models.svo",
|
"default": "resources/models.json.gz",
|
||||||
"advanced": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "persistAsFileType",
|
|
||||||
"label": "File format for entity server's persistent data",
|
|
||||||
"help": "This defines how the entity server will save entities to disk.",
|
|
||||||
"default": "svo",
|
|
||||||
"type": "select",
|
|
||||||
"options": [
|
|
||||||
{
|
|
||||||
"value": "svo",
|
|
||||||
"label": "Entity server persists data as SVO"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "json",
|
|
||||||
"label": "Entity server persists data as JSON"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": "json.gz",
|
|
||||||
"label": "Entity server persists data as gzipped JSON"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"advanced": true
|
"advanced": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue