mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
handled None in screenshot.create()
This commit is contained in:
parent
270abc5167
commit
a16474f613
@ -36,6 +36,12 @@ def init():
|
||||
Finds the game window, and calculates the offset to remove the title bar
|
||||
"""
|
||||
WindowServer.sslib = screenshot.create()
|
||||
# Check if the screenshot library was successfully created
|
||||
if WindowServer.sslib is None:
|
||||
logging.error("Failed to create screenshot library instance")
|
||||
WindowServer.status = Status.CRASHED
|
||||
return
|
||||
|
||||
WindowServer.status = Status.RUNNING
|
||||
WindowServer.crop = os_services.get_game_window_rect()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user