default AO2XP.ini values

This commit is contained in:
Headshotnoby 2021-06-23 21:12:28 -04:00
parent d58268a244
commit 8d09979a5a

View File

@ -1139,7 +1139,7 @@ class gui(QtGui.QWidget):
guiobj.setPixmap(QtGui.QPixmap(AOpath + "evidence/%s" % image))
else:
guiobj.setPixmap(QtGui.QPixmap(AO2XPpath + 'themes/default/evidence_selected.png'))
if ini.read_ini_bool("AO2XP.ini", "General", "download evidence"):
if ini.read_ini_bool("AO2XP.ini", "General", "download evidence", True):
url = "base/evidence/"+image.lower()
url = url.replace("evidence/../", "")
path = AOpath+"evidence/"+image
@ -2323,7 +2323,7 @@ class gui(QtGui.QWidget):
self.objectsnd = audio.loadhandle(False, AOpath + 'characters/' + charname + '/' + objecting + '.opus', 0, 0, 0)
else:
self.objectsnd = None
if ini.read_ini_bool("AO2XP.ini", "General", "download sounds"):
if ini.read_ini_bool("AO2XP.ini", "General", "download sounds", True):
thread.start_new_thread(download_thread, ("base/characters/"+charname.lower()+"/"+objecting.lower()+".wav", AOpath+"characters/"+charname.lower()+"/"+objecting.lower()+".wav"))
thread.start_new_thread(download_thread, ("base/characters/"+charname.lower()+"/"+objecting.lower()+".opus", AOpath+"characters/"+charname.lower()+"/"+objecting.lower()+".wav"))
@ -2371,7 +2371,7 @@ class gui(QtGui.QWidget):
audio.sethandleattr(self.music, BASS_ATTRIB_VOL, self.musicslider.value() / 100.0)
audio.playhandle(self.music, True)
elif ini.read_ini_bool("AO2XP.ini", "General", "download music"):
elif ini.read_ini_bool("AO2XP.ini", "General", "download music", True):
if mus.lower().startswith("http"):
self.music = audio.loadURLhandle(mus, 0, BASS_STREAM_BLOCK)
else: