Skip to content

Commit

Permalink
<fix> fix replace font error in newer version of renpy and fix codec …
Browse files Browse the repository at this point in the history
…problem in python2

update version to v2.3.7
  • Loading branch information
anonymousException committed Jun 6, 2024
1 parent 8eb2ecf commit 2638f16
Show file tree
Hide file tree
Showing 65 changed files with 33 additions and 6,312 deletions.
4 changes: 2 additions & 2 deletions src/font_style_template.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
init python early hide:
old_load_face = renpy.text.font.load_face

def my_load_face(fn):
def my_load_face(fn, *args):
if renpy.game.preferences.language == "{tl_name}":
fn = "{font_path}"
return old_load_face(fn)
return old_load_face(fn, *args)

renpy.text.font.load_face = my_load_face

Expand Down
5 changes: 1 addition & 4 deletions src/game_unpacker_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ def run(self):
subprocess.Popen("taskkill /F /T /PID " + self.p, shell=True,
creationflags=0x08000000, text=True, encoding='utf-8')
zip_dir(self.dir + '/renpy/common', self.dir + '/common_backup.zip')
if is_python2(self.path):
copy_files_under_directory_to_directory(os.getcwd() + '/resource/unrpyc_python2', self.dir)
else:
copy_files_under_directory_to_directory(os.getcwd() + '/resource/unrpyc_python3', self.dir)
copy_files_under_directory_to_directory(os.getcwd() + '/resource/unrpyc_python', self.dir)
command = get_unrpyc_command(self.path)
if self.is_over_write:
command = command + ' --clobber'
Expand Down
Binary file modified src/qm/arabic.qm
Binary file not shown.
Binary file modified src/qm/bengali.qm
Binary file not shown.
Binary file modified src/qm/chinese.qm
Binary file not shown.
Binary file modified src/qm/french.qm
Binary file not shown.
Binary file modified src/qm/german.qm
Binary file not shown.
Binary file modified src/qm/greek.qm
Binary file not shown.
Binary file modified src/qm/hindi.qm
Binary file not shown.
Binary file modified src/qm/japanese.qm
Binary file not shown.
Binary file modified src/qm/korean.qm
Binary file not shown.
Binary file modified src/qm/portuguese.qm
Binary file not shown.
Binary file modified src/qm/russian.qm
Binary file not shown.
Binary file modified src/qm/spanish.qm
Binary file not shown.
Binary file modified src/qm/turkish.qm
Binary file not shown.
Binary file modified src/qm/urdu.qm
Binary file not shown.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 2638f16

Please sign in to comment.