MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getCurrentGroups

Method getCurrentGroups

Engine/source/util/settings.cpp:344–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344const UTF8 *Settings::getCurrentGroups()
345{
346 // we want to return a string with our group setup
347 String returnString;
348 for(S32 i=0; i<mGroupStack.size(); i++)
349 {
350 S32 pos = returnString.size() - 1;
351 if(pos < 0)
352 pos = 0;
353
354 if(i == 0)
355 {
356 returnString.insert(pos, mGroupStack[i]);
357 } else
358 {
359 returnString.insert(pos, "/");
360 returnString.insert(pos+1, mGroupStack[i]);
361 }
362 }
363
364 return StringTable->insert(returnString.c_str());
365}
366/*
367S32 Settings::buildSearchList( const char* pattern, bool deepSearch, bool includeDefaults )
368{

Callers 1

DefineEngineMethodFunction · 0.80

Calls 3

sizeMethod · 0.45
insertMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected