mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
GFX card profile config file logging moved to debug only
WIP mode of guiSliderCtrl to be a filled rectangle instead of a textured UI Fixed bug with guiTextEditCtrl losing focus updating history passing malformed strings Updated WIP options menu Editor/Project settings WIP Updated editor theme to be consistent, and feed off the editor settings Updated popup menus to reference renamed profiles Added more in-progress modules for examples/stress testing
This commit is contained in:
parent
dd3422b5a2
commit
07b28cb29a
44 changed files with 972 additions and 415 deletions
|
|
@ -41,17 +41,22 @@ void GFXCardProfiler::loadProfileScript(const char* aScriptName)
|
|||
void *data = NULL;
|
||||
U32 dataSize = 0;
|
||||
|
||||
|
||||
Torque::FS::ReadFile( scriptName.c_str(), data, dataSize, true );
|
||||
|
||||
if(data == NULL)
|
||||
{
|
||||
#if TORQUE_DEBUG
|
||||
Con::warnf(" - No card profile %s exists", scriptName.c_str());
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
const char *script = static_cast<const char *>(data);
|
||||
|
||||
#if TORQUE_DEBUG
|
||||
Con::printf(" - Loaded card profile %s", scriptName.c_str());
|
||||
#endif
|
||||
|
||||
Con::evaluate(script, false, NULL);
|
||||
delete[] script;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue