mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Eliminate DefineConsoleFunction
This commit is contained in:
parent
bc1b506205
commit
e718841467
55 changed files with 314 additions and 332 deletions
|
|
@ -38,7 +38,7 @@ StringTableEntry Platform::getTemporaryDirectory()
|
|||
return path;
|
||||
}
|
||||
|
||||
DefineConsoleFunction( getTemporaryDirectory, const char *, (), ,
|
||||
DefineEngineFunction( getTemporaryDirectory, const char *, (), ,
|
||||
"@brief Returns the OS temporary directory, \"C:/Users/Mich/AppData/Local/Temp\" for example\n\n"
|
||||
"@note This can be useful to adhering to OS standards and practices, "
|
||||
"but not really used in Torque 3D right now.\n"
|
||||
|
|
@ -66,7 +66,7 @@ StringTableEntry Platform::getTemporaryFileName()
|
|||
return StringTable->insert(buf);
|
||||
}
|
||||
|
||||
DefineConsoleFunction( getTemporaryFileName, const char *, (), ,
|
||||
DefineEngineFunction( getTemporaryFileName, const char *, (), ,
|
||||
"@brief Creates a name and extension for a potential temporary file\n\n"
|
||||
"This does not create the actual file. It simply creates a random name "
|
||||
"for a file that does not exist.\n\n"
|
||||
|
|
@ -611,12 +611,12 @@ StringTableEntry Platform::getPrefsPath(const char *file /* = NULL */)
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
DefineConsoleFunction( getUserDataDirectory, const char *, (), , "getUserDataDirectory()")
|
||||
DefineEngineFunction( getUserDataDirectory, const char *, (), , "getUserDataDirectory()")
|
||||
{
|
||||
return Platform::getUserDataDirectory();
|
||||
}
|
||||
|
||||
DefineConsoleFunction( getUserHomeDirectory, const char *, (), , "getUserHomeDirectory()")
|
||||
DefineEngineFunction( getUserHomeDirectory, const char *, (), , "getUserHomeDirectory()")
|
||||
{
|
||||
return Platform::getUserHomeDirectory();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue