1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-07 19:13:20 +00:00

added --readmsh option, to force reading of an msh when running in readonly mode

This commit is contained in:
Bryan Roe
2022-01-06 11:35:50 -08:00
parent b62bf77370
commit 0282cee46d

View File

@@ -4578,7 +4578,7 @@ int MeshAgent_AgentMode(MeshAgentHostContainer *agentHost, int paramLen, char **
paramLen -= ixr;
if (agentHost->masterDb == NULL) { agentHost->masterDb = ILibSimpleDataStore_CreateCachedOnly(); }
if (ILibSimpleDataStore_IsCacheOnly(agentHost->masterDb) == 0)
if (ILibSimpleDataStore_IsCacheOnly(agentHost->masterDb) == 0 || ILibSimpleDataStore_Get(agentHost->masterDb, "readmsh", NULL, 0)!=0)
{
// Check to see if we need to import a settings file
if (importSettings(agentHost, MeshAgent_MakeAbsolutePath(agentHost->exePath, ".mshx")) == 0)