mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 04:20:30 +00:00
add case sensitive strings
Added case sensitive strings function to add them to the string table.
This commit is contained in:
parent
14037a742a
commit
2d7472d160
1 changed files with 11 additions and 0 deletions
|
|
@ -1112,6 +1112,17 @@ DefineConsoleFunction( isValidIP, bool, ( const char* str),,
|
|||
return isValidIP(str);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
||||
// Torque won't normally add another string if it already exists with another casing,
|
||||
// so this forces the addition. It should be called once near the start, such as in main.cs.
|
||||
ConsoleFunction(addCaseSensitiveStrings,void,2,0,"[string1, string2, ...]"
|
||||
"Adds case sensitive strings to the StringTable.")
|
||||
{
|
||||
for(int i = 1; i < argc; i++)
|
||||
StringTable->insert(argv[i], true);
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
// Field Manipulators.
|
||||
//=============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue