1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-10 00:11:29 +00:00

Get rid of AQUARIA_FULL define and move the setting to usersettings.xml. Some changes regarding AQUARIA_DEMO.

This means there are no longer two builds necessary (one normal,
one dev), and all mod deveopment can be done using one build,
by setting

Demo builds now allow browsing the online mod list, but neither
downloading nor starting mods or applying patches.
This commit is contained in:
fgenesis 2013-07-20 02:27:53 +02:00
commit 45ba35ca4b
13 changed files with 72 additions and 88 deletions

View file

@ -54,6 +54,12 @@ void UserSettings::save()
xml_locale.SetAttribute("name", system.locale);
}
xml_system.InsertEndChild(xml_locale);
TiXmlElement xml_devmode("DeveloperMode");
{
xml_devmode.SetAttribute("on", system.devModeOn);
}
xml_system.InsertEndChild(xml_devmode);
}
doc.InsertEndChild(xml_system);
@ -370,6 +376,12 @@ void UserSettings::load(bool doApply, const std::string &overrideFile)
{
system.locale = xml_locale->Attribute("name");
}
TiXmlElement *xml_devmode = xml_system->FirstChildElement("DeveloperMode");
if (xml_devmode)
{
xml_devmode->Attribute("on", &system.devModeOn);
}
}
TiXmlElement *xml_audio = doc.FirstChildElement("Audio");