Fix APNG backgrounds not appearing on list; fix BASSOPUS path for macOS (#185)
* Added apng support for animated background positioning. * Adjusted the apng background position search. * Fixed libbassopus.dylib path on MacOS preventing opus files from playing.
This commit is contained in:
parent
4c5fdab9e9
commit
b38e221fb1
@ -1107,7 +1107,7 @@ void Courtroom::set_background(QString p_background, bool display)
|
||||
// Populate the dropdown list with all pos that exist on this bg
|
||||
QStringList pos_list = {};
|
||||
for (QString key : default_pos.keys()) {
|
||||
if (file_exists(ao_app->get_static_image_suffix(
|
||||
if (file_exists(ao_app->get_image_suffix(
|
||||
ao_app->get_background_path(key)))) {
|
||||
pos_list.append(default_pos[key]);
|
||||
}
|
||||
@ -4599,11 +4599,8 @@ void Courtroom::load_bass_opus_plugin()
|
||||
#elif defined __APPLE__
|
||||
void Courtroom::load_bass_opus_plugin()
|
||||
{
|
||||
QString libpath =
|
||||
ao_app->get_base_path() + "../../Frameworks/libbassopus.dylib";
|
||||
QByteArray ba = libpath.toLocal8Bit();
|
||||
#ifdef BASSAUDIO
|
||||
BASS_PluginLoad(ba.data(), 0);
|
||||
BASS_PluginLoad("libbassopus.dylib", 0);
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user