Dropped wxpython because of stability issues.
This commit is contained in:
6
menu.py
6
menu.py
@ -485,6 +485,12 @@ def exit_game(fade=0):
|
||||
except Exception as e:
|
||||
print(f"Warning: Could not handle music during exit: {e}")
|
||||
|
||||
# Clean up pygame mixer first
|
||||
try:
|
||||
pygame.mixer.quit()
|
||||
except Exception as e:
|
||||
print(f"Warning: Error during pygame.mixer.quit(): {e}")
|
||||
|
||||
# Clean up pygame
|
||||
try:
|
||||
pygame.quit()
|
||||
|
Reference in New Issue
Block a user