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

Added a blockEditor="1" property to a mod xml.

This commit is contained in:
fgenesis 2012-02-12 01:15:46 +01:00
commit ea780f2ac9
5 changed files with 29 additions and 14 deletions

View file

@ -4047,6 +4047,15 @@ bool DSQ::isDeveloperKeys()
return developerKeys;
}
bool DSQ::canOpenEditor() const
{
#ifdef AQUARIA_BUILD_SCENEEDITOR
return dsq->isDeveloperKeys() || (dsq->mod.isActive() && !dsq->mod.isEditorBlocked());
#else
return false;
#endif
}
bool DSQ::isQuitFlag()
{
return watchQuitFlag;