From fa275a8136479376e640458cd6121b44af428fdc Mon Sep 17 00:00:00 2001 From: Headshotnoby Date: Mon, 14 Jun 2021 21:26:02 -0400 Subject: [PATCH] fix bassopus on *nix --- AO2XP.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AO2XP.py b/AO2XP.py index 172cd11..5179b19 100644 --- a/AO2XP.py +++ b/AO2XP.py @@ -6,8 +6,10 @@ app = QtGui.QApplication(sys.argv) osname = platform.system() bassdll = "bass.dll" +bassopusplugin = "bassopus" if osname != "Windows": bassdll = "libbass.so" + bassopusplugin = "./libbassopus.so" path = sys.argv[0] if osname == "Darwin" and ".app" in path: # bundle @@ -74,7 +76,7 @@ from pybass import * import gameview, mainmenu, options, ini BASS_Init(ini.read_ini_int("AO2XP.ini", "Audio", "device", -1), 44100, 0, 0, 0) -BASS_PluginLoad("bassopus", 0) +BASS_PluginLoad(bassopusplugin, 0) shit = gamewindow() shit.show() sys.exit(app.exec_())