Skip to content

Commit 9245cd5

Browse files
committed
Fix an issue where the game wouldn't launch.
I should probably launch the game before I commit.
1 parent d02c009 commit 9245cd5

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

modloader/modgame.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@
1818
"ABCDEFGHIJKLMabcdefghijklmNOPQRSTUVWXYZnopqrstuvwxyz")
1919

2020

21+
def sprnt(str_):
22+
"""Print an encoded string to stdout
23+
24+
Encode the string in UTF-8 before printing it out to stdout
25+
This helps avoid Unicode errors
26+
27+
Args:
28+
string (str): The string to be printed
29+
"""
30+
print str_.encode('utf-8')
31+
2132
class AWSWEndingHooks(object):
2233
"""The ending hooks for the game"""
2334

mods/anna_post_true/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import renpy.ast as ast
88

99
from modloader import modinfo, modast
10-
from modloader.modlib import sprnt
11-
from modloader.modlib import base as ml
10+
from modloader.modgame import sprnt
11+
from modloader.modgame import base as ml
1212
from modloader.modclass import Mod, loadable_mod
1313

1414
@loadable_mod

mods/byekevin/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import renpy.ast as ast
44

55
from modloader import modinfo, modast
6-
from modloader.modlib import sprnt
7-
from modloader.modlib import base as ml
6+
from modloader.modgame import sprnt
7+
from modloader.modgame import base as ml
88
from modloader.modclass import Mod, loadable_mod
99

1010
@loadable_mod

mods/core/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import renpy.ast as ast
55

66
from modloader import modinfo, modast
7-
from modloader.modlib import sprnt
8-
from modloader.modlib import base as ml
7+
from modloader.modgame import sprnt
8+
from modloader.modgame import base as ml
99
from modloader.modclass import Mod, loadable_mod
1010

1111
@loadable_mod

0 commit comments

Comments
 (0)