mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2026-08-15 13:04:30 +00:00
syncing 1.7.60 ballistica binary
This commit is contained in:
parent
2870c850c4
commit
e02f1dbe52
241 changed files with 10185 additions and 1827 deletions
9
dist/ba_data/python/baclassic/macmusicapp.py
vendored
9
dist/ba_data/python/baclassic/macmusicapp.py
vendored
|
|
@ -1,6 +1,7 @@
|
|||
# Released under the MIT License. See LICENSE for details.
|
||||
#
|
||||
"""Music playback functionality using the Mac Music (formerly iTunes) app."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
|
@ -95,7 +96,7 @@ class _MacMusicAppThread(threading.Thread):
|
|||
def do_print() -> None:
|
||||
babase.apptimer(
|
||||
0.5,
|
||||
babase.Call(
|
||||
babase.CallStrict(
|
||||
babase.screenmessage,
|
||||
babase.Lstr(resource='usingItunesText'),
|
||||
(0, 1, 0),
|
||||
|
|
@ -198,7 +199,9 @@ class _MacMusicAppThread(threading.Thread):
|
|||
except Exception as exc:
|
||||
print('Error getting iTunes playlists:', exc)
|
||||
playlists = []
|
||||
babase.pushcall(babase.Call(target, playlists), from_other_thread=True)
|
||||
babase.pushcall(
|
||||
babase.CallStrict(target, playlists), from_other_thread=True
|
||||
)
|
||||
|
||||
def _handle_play_command(self, target: str | None) -> None:
|
||||
if target is None:
|
||||
|
|
@ -246,7 +249,7 @@ class _MacMusicAppThread(threading.Thread):
|
|||
pass
|
||||
else:
|
||||
babase.pushcall(
|
||||
babase.Call(
|
||||
babase.CallStrict(
|
||||
babase.screenmessage,
|
||||
babase.app.lang.get_resource('playlistNotFoundText')
|
||||
+ ': \''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue