use abspath for bassopus
This commit is contained in:
parent
de2477d815
commit
61a2c86ca1
8
AO2XP.py
8
AO2XP.py
@ -1,15 +1,15 @@
|
|||||||
import sys, thread, time, os, platform
|
import sys, thread, time, os, platform
|
||||||
from os.path import exists
|
from os.path import exists, abspath
|
||||||
|
|
||||||
from PyQt4 import QtGui, QtCore
|
from PyQt4 import QtGui, QtCore
|
||||||
app = QtGui.QApplication(sys.argv)
|
app = QtGui.QApplication(sys.argv)
|
||||||
|
|
||||||
osname = platform.system()
|
osname = platform.system()
|
||||||
bassdll = "bass.dll"
|
bassdll = "bass.dll"
|
||||||
bassopusplugin = "bassopus"
|
bassopusplugin = "bassopus.dll"
|
||||||
if osname != "Windows":
|
if osname != "Windows":
|
||||||
bassdll = "libbass.so"
|
bassdll = "libbass.so"
|
||||||
bassopusplugin = "./libbassopus.so"
|
bassopusplugin = "libbassopus.so"
|
||||||
|
|
||||||
path = sys.argv[0]
|
path = sys.argv[0]
|
||||||
if osname == "Darwin" and ".app" in path: # bundle
|
if osname == "Darwin" and ".app" in path: # bundle
|
||||||
@ -76,7 +76,7 @@ from pybass import *
|
|||||||
import gameview, mainmenu, options, ini
|
import gameview, mainmenu, options, ini
|
||||||
|
|
||||||
BASS_Init(ini.read_ini_int("AO2XP.ini", "Audio", "device", -1), 44100, 0, 0, 0)
|
BASS_Init(ini.read_ini_int("AO2XP.ini", "Audio", "device", -1), 44100, 0, 0, 0)
|
||||||
BASS_PluginLoad(bassopusplugin, 0)
|
BASS_PluginLoad(abspath(bassopusplugin), 0)
|
||||||
shit = gamewindow()
|
shit = gamewindow()
|
||||||
shit.show()
|
shit.show()
|
||||||
sys.exit(app.exec_())
|
sys.exit(app.exec_())
|
||||||
|
Loading…
Reference in New Issue
Block a user