mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
strip out p3 prefix
This commit is contained in:
parent
6786954cf8
commit
70a32ce433
@ -66,7 +66,11 @@ PT(AudioManager) AudioManager::create_AudioManager() {
|
|||||||
} else {
|
} else {
|
||||||
// Get the special function from the dso, which should return
|
// Get the special function from the dso, which should return
|
||||||
// the AudioManager factory function.
|
// the AudioManager factory function.
|
||||||
string symbol_name = "get_audio_manager_func_" + audio_library_name.get_value();
|
string lib_name = audio_library_name;
|
||||||
|
if (lib_name.substr(0, 2) == "p3") {
|
||||||
|
lib_name = lib_name.substr(3);
|
||||||
|
}
|
||||||
|
string symbol_name = "get_audio_manager_func_" + lib_name;
|
||||||
void *dso_symbol = get_dso_symbol(handle, symbol_name);
|
void *dso_symbol = get_dso_symbol(handle, symbol_name);
|
||||||
if (audio_cat.is_debug()) {
|
if (audio_cat.is_debug()) {
|
||||||
audio_cat.debug()
|
audio_cat.debug()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user