//--------------------------------------------------------------------------- // //--------------------------------------------------------------------------- __fastcall ASEditSvr::ASEditSvr(ASDBConnection *aDBConnection,String asERI) :ASService(aDBConnection,asERI) { fDataSets = new PCSet<ASEditDataSet>(); fDataSvr = new ASDataSvr(aDBConnection,asERI); fCheckStatus = true; LoadDef(); }
bool C4Extra::Init() { // no group: OK if (ExtraGroups.empty()) return true; // load from all definitions that are activated // add first definition first, so the priority will be lowest // (according to definition load/overload order) char szSegment[_MAX_PATH+1]; for (int cseg=0; SCopySegment(Game.DefinitionFilenames,cseg,szSegment,';',_MAX_PATH); cseg++) { for(auto & ExtraGroup : ExtraGroups) { if(LoadDef(*ExtraGroup, GetFilename(szSegment))) { break; } } } // done, success return true; }