Skip to content

Commit e933838

Browse files
committed
.
1 parent 016af42 commit e933838

File tree

21 files changed

+68
-37
lines changed

21 files changed

+68
-37
lines changed

docs/cht/emugames.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ LunaTranslator支持通過模擬器HOOK NS/PSP/PSV/PS2上的大量遊戲。
886886

887887
| | ID | Game |
888888
| ---- | ---------- | ------------------- |
889+
| | SLPS-25433 | 帝国千戦記 [初回限定版] |
889890
| | SLPM-67009 | サクラ大戦Ⅴ ~さらば愛しき人よ~ |
890891
| | SLPM-65717 | 月は東に日は西に -Operation Sanctuary- |
891892
| | SLPM-65641 | うたう♪タンブリング・ダイス ~私たち3人、あ・げ・る~ |

docs/en/emugames.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ For games that are not supported, please send an [issue](https://lunatranslator.
886886

887887
| | ID | Game |
888888
| ---- | ---------- | ------------------- |
889+
| | SLPS-25433 | 帝国千戦記 [初回限定版] |
889890
| | SLPM-67009 | サクラ大戦Ⅴ ~さらば愛しき人よ~ |
890891
| | SLPM-65717 | 月は東に日は西に -Operation Sanctuary- |
891892
| | SLPM-65641 | うたう♪タンブリング・ダイス ~私たち3人、あ・げ・る~ |

docs/ja/emugames.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ LunaTranslatorは、シミュレーターHOOKを通じてNS/PSP/PSV/PS2上の多
886886

887887
| | ID | Game |
888888
| ---- | ---------- | ------------------- |
889+
| | SLPS-25433 | 帝国千戦記 [初回限定版] |
889890
| | SLPM-67009 | サクラ大戦Ⅴ ~さらば愛しき人よ~ |
890891
| | SLPM-65717 | 月は東に日は西に -Operation Sanctuary- |
891892
| | SLPM-65641 | うたう♪タンブリング・ダイス ~私たち3人、あ・げ・る~ |

docs/ko/emugames.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,7 @@ LunaTranslator는 에뮬레이터 HOOK NS/PSP/PSV/PS2에서 다양한 게임을
887887

888888
| | ID | Game |
889889
| ---- | ---------- | ------------------- |
890+
| | SLPS-25433 | 帝国千戦記 [初回限定版] |
890891
| | SLPM-67009 | サクラ大戦Ⅴ ~さらば愛しき人よ~ |
891892
| | SLPM-65717 | 月は東に日は西に -Operation Sanctuary- |
892893
| | SLPM-65641 | うたう♪タンブリング・ダイス ~私たち3人、あ・げ・る~ |

docs/ru/emugames.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,7 @@ LunaTranslator поддерживает множество игр на эмул
887887

888888
| | ID | Game |
889889
| ---- | ---------- | ------------------- |
890+
| | SLPS-25433 | 帝国千戦記 [初回限定版] |
890891
| | SLPM-67009 | サクラ大戦Ⅴ ~さらば愛しき人よ~ |
891892
| | SLPM-65717 | 月は東に日は西に -Operation Sanctuary- |
892893
| | SLPM-65641 | うたう♪タンブリング・ダイス ~私たち3人、あ・げ・る~ |

docs/vi/emugames.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ LunaTranslator hỗ trợ nhiều trò chơi trên NS/PSP/PSV/PS2 thông qua tr
886886

887887
| | ID | Game |
888888
| ---- | ---------- | ------------------- |
889+
| | SLPS-25433 | 帝国千戦記 [初回限定版] |
889890
| | SLPM-67009 | サクラ大戦Ⅴ ~さらば愛しき人よ~ |
890891
| | SLPM-65717 | 月は東に日は西に -Operation Sanctuary- |
891892
| | SLPM-65641 | うたう♪タンブリング・ダイス ~私たち3人、あ・げ・る~ |

docs/zh/emugames.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ LunaTranslator支持通过模拟器HOOK NS/PSP/PSV/PS2上的大量游戏。
886886

887887
| | ID | Game |
888888
| ---- | ---------- | ------------------- |
889+
| | SLPS-25433 | 帝国千戦記 [初回限定版] |
889890
| | SLPM-67009 | サクラ大戦Ⅴ ~さらば愛しき人よ~ |
890891
| | SLPM-65717 | 月は東に日は西に -Operation Sanctuary- |
891892
| | SLPM-65641 | うたう♪タンブリング・ダイス ~私たち3人、あ・げ・る~ |

src/LunaTranslator/myutils/keycode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
vkcode_map = {
44
"LBUTTON": 1,
55
"RBUTTON": 2,
6+
"MBUTTON": 4,
67
"F1": 112,
78
"F2": 113,
89
"F3": 114,

src/LunaTranslator/myutils/updater.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from gobject import runtime_for_xp, runtime_bit_64, runtime_for_win10, runtimedir
44
from myutils.wrapper import threader, tryprint, trypass
55
from myutils.hwnd import getcurrexe
6-
import requests
6+
import requests, base64
77
import shutil, gobject
88
from myutils.proxy import getproxy
99
import zipfile, os
@@ -96,19 +96,18 @@ def doupdate():
9696
if _f.lower() == "lunatranslator.exe":
9797
found = _dir
9898

99-
texts = [
99+
texts: "list[str]" = [
100100
_TR("错误"),
101101
_TR("成功"),
102102
_TR("更新失败"),
103103
_TR("更新成功"),
104104
_TR("部分文件或目录被以下进程占用,是否终止以下进程?"),
105105
]
106-
with open(exe + ".txt", "w", encoding="utf-16-le") as ff:
107-
for text in texts:
108-
ff.write(text + "\n")
106+
text = "\n".join(texts).encode("utf8")
107+
b64 = base64.b64encode(text).decode()
109108
subprocess.Popen(
110109
r"{} update {} {} {} {}".format(
111-
exe1, int(gobject.base.istriggertoupdate), found, os.getpid(), exe + ".txt"
110+
exe1, int(gobject.base.istriggertoupdate), found, os.getpid(), b64
112111
)
113112
)
114113

src/cpp/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ add_definitions(-DUNICODE -D_UNICODE)
2525
if(MSVC)
2626
add_compile_options(/MP)
2727
endif()
28+
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
2829

2930
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
3031
set(platform "x64")

0 commit comments

Comments
 (0)