Changeset View
Changeset View
Standalone View
Standalone View
source/soundmanager/scripting/SoundGroup.cpp
Show First 20 Lines • Show All 323 Lines • ▼ Show 20 Lines | #define EL(x) int el_##x = XeroFile.GetElementID(#x) | ||||
EL(threshold); | EL(threshold); | ||||
EL(decay); | EL(decay); | ||||
#undef EL | #undef EL | ||||
XMBElement root = XeroFile.GetRoot(); | XMBElement root = XeroFile.GetRoot(); | ||||
if (root.GetNodeName() != el_soundgroup) | if (root.GetNodeName() != el_soundgroup) | ||||
{ | { | ||||
LOGERROR("Invalid SoundGroup format (unrecognised root element '%s')", XeroFile.GetElementString(root.GetNodeName()).c_str()); | LOGERROR("Invalid SoundGroup format (unrecognised root element '%s')", XeroFile.GetElementString(root.GetNodeName())); | ||||
return false; | return false; | ||||
} | } | ||||
XERO_ITER_EL(root, child) | XERO_ITER_EL(root, child) | ||||
{ | { | ||||
int child_name = child.GetNodeName(); | int child_name = child.GetNodeName(); | ||||
if (child_name == el_gain) | if (child_name == el_gain) | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator