Improved windows support for unicode file paths

This commit is contained in:
Eric Froemling 2020-06-11 01:05:07 -07:00
parent 4601ce9473
commit 3aceb6ef66
4 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,6 @@
### 1.5.3 (20065)
- Improved handling of non-ascii characters in file paths on windows.
### 1.5.2 (20063)
- Fixes an issue with controls not working correctly in net-play between 1.4.x and 1.5.x.
- Tidied up onslaught code a bit.

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=328357141536767746382612764132666300753
# SOURCES_HASH=285571727710785006475742404303651213501
# I'm sorry Pylint. I know this file saddens you. Be strong.
# pylint: disable=useless-suppression

View File

@ -807,7 +807,10 @@ class GatherWindow(ba.Window):
color=(1, 0, 0))
ba.playsound(ba.getsound('error'))
return
port = int(cast(str, ba.textwidget(query=port_textwidget)))
try:
port = int(cast(str, ba.textwidget(query=port_textwidget)))
except ValueError:
port = -1
if port > 65535 or port < 0:
ba.screenmessage(
ba.Lstr(resource='internal.invalidPortErrorText'),

View File

@ -1,5 +1,5 @@
<!-- THIS FILE IS AUTO GENERATED; DO NOT EDIT BY HAND -->
<h4><em>last updated on 2020-06-09 for Ballistica version 1.5.2 build 20064</em></h4>
<h4><em>last updated on 2020-06-11 for Ballistica version 1.5.3 build 20065</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>