Enabled Python UTF-8 mode to fix windows locale issues

This commit is contained in:
Eric Froemling 2020-04-26 14:17:28 -07:00
parent bcae521e4f
commit c808f24cd3
4 changed files with 29 additions and 8 deletions

View File

@ -34,7 +34,7 @@ NOTE: This file was autogenerated by gendummymodule; do not edit by hand.
"""
# (hash we can use to see if this file is out of date)
# SOURCES_HASH=140243910598492207243870278972956193008
# SOURCES_HASH=166094941497544152153395869789035079688
# I'm sorry Pylint. I know this file saddens you. Be strong.
# pylint: disable=useless-suppression

View File

@ -36,6 +36,10 @@ class MusicType(Enum):
"""Types of music available to play in-game.
Category: Enums
These do not correspond to specific pieces of music, but rather to
'situations'. The actual music played for each type can be overridden
by the game or by the user.
"""
MENU = 'Menu'
VICTORY = 'Victory'
@ -453,6 +457,7 @@ class MusicPlayer:
signify that the default soundtrack should be used.."""
# Subclasses should override the following:
def on_set_volume(self, volume: float) -> None:
"""Called when the volume should be changed."""

View File

@ -1,5 +1,5 @@
<!-- THIS FILE IS AUTO GENERATED; DO NOT EDIT BY HAND -->
<h4><em>last updated on 2020-04-25 for Ballistica version 1.5.0 build 20001</em></h4>
<h4><em>last updated on 2020-04-26 for Ballistica version 1.5.0 build 20001</em></h4>
<p>This page documents the Python classes and functions in the 'ba' module,
which are the ones most relevant to modding in Ballistica. If you come across something you feel should be included here or could be better explained, please <a href="mailto:support@froemling.net">let me know</a>. Happy modding!</p>
<hr>
@ -3339,7 +3339,11 @@ signify that the default soundtrack should be used..</p>
<p>inherits from: enum.Enum</p>
<p>Types of music available to play in-game.</p>
<p>Category: <a href="#class_category_Enums">Enums</a>
<p>Category: <a href="#class_category_Enums">Enums</a></p>
<p> These do not correspond to specific pieces of music, but rather to
'situations'. The actual music played for each type can be overridden
by the game or by the user.
</p>
<h3>Values:</h3>

View File

@ -181,11 +181,23 @@ def androidaddr() -> None:
sys.exit(255)
arch = sys.argv[3]
archs = {
'x86': {'prefix': 'x86-', 'libmain': 'libmain_x86.so'},
'arm': {'prefix': 'arm-', 'libmain': 'libmain_arm.so'},
'arm64': {'prefix': 'aarch64-', 'libmain': 'libmain_arm64.so'},
'x86-64': {'prefix': 'x86_64-', 'libmain': 'libmain_x86-64.so'}
} # yapf: disable
'x86': {
'prefix': 'x86-',
'libmain': 'libmain_x86.so'
},
'arm': {
'prefix': 'arm-',
'libmain': 'libmain_arm.so'
},
'arm64': {
'prefix': 'aarch64-',
'libmain': 'libmain_arm64.so'
},
'x86-64': {
'prefix': 'x86_64-',
'libmain': 'libmain_x86-64.so'
}
}
if arch not in archs:
print('ERROR: invalid arch "' + arch + '"; (choices are ' +
', '.join(archs.keys()) + ')')