Selaa lähdekoodia

strip out p3 prefix

David Rose 17 vuotta sitten
vanhempi
sitoutus
70a32ce433
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      panda/src/audio/audioManager.cxx

+ 5 - 1
panda/src/audio/audioManager.cxx

@@ -66,7 +66,11 @@ PT(AudioManager) AudioManager::create_AudioManager() {
       } else {
         // Get the special function from the dso, which should return
         // 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);
         if (audio_cat.is_debug()) {
           audio_cat.debug()