mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
OpenAL Internal name
-Now there is an internal name for openal and a default name for the device to be displayed
This commit is contained in:
parent
52dc5cf3da
commit
3eca15cb31
6 changed files with 33 additions and 14 deletions
|
|
@ -1265,15 +1265,7 @@ DefineEngineFunction( sfxGetAvailableDevices, const char*, (),,
|
|||
const SFXDeviceInfo* info = deviceInfo[d];
|
||||
const char *providerName = provider->getName().c_str();
|
||||
char *infoName = (char*)info->name.c_str();
|
||||
char* openFind = dStrchr(&infoName[0], '(');
|
||||
if (openFind)
|
||||
{
|
||||
infoName = openFind + 1;
|
||||
char* closeFind = dStrchr(infoName, ')');
|
||||
if (closeFind)
|
||||
(*closeFind) = '\0';
|
||||
}
|
||||
|
||||
|
||||
dSprintf(ptr, len, "%s\t%s\t%s\t%i\n", providerName, infoName, info->hasHardware ? "1" : "0", info->maxBuffers);
|
||||
|
||||
ptr += dStrlen(ptr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue