mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 21:49:57 -04:00
Have the launcher put Steam's library file beside the game, so no player fetches it for co-op.
Co-op loads steam_api64.dll from beside ocarina.exe, and the repository may not hold that file. Before Play and before a start from the Steam shortcut, when the file is not there, launcher/steamlib.py now copies one: one a release ships in its bin folder if it has one, else the newest one in the games of the player's own Steam libraries that Valve signed (WinVerifyTrust and the signer's name) and that has every call runtime/steam.c uses. Nothing is downloaded, the search takes a second or two once, and with no Steam or no suitable file the game starts as before and the Co-op tab says what is missing. The tab's two texts about the file say so in the four languages. Checked: four new tests on made-up library folders (too old, unsigned, too deep, a second library, a shipped file first, none said once) and the launcher's 190 tests pass; on this PC the search found 40 files in 1.2 s, 25 suitable, and copied a Valve-signed one; that file's library version, an older one than the game was run with, signs in as app 480 and makes a lobby in a program without the game. Not run: Play in the launcher itself with this change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -648,9 +648,12 @@ static const char *const text_en[UI_TEXT_COUNT] = {
|
||||
[UI_MENU_COOP_ON] = "Co-op (experimental)",
|
||||
[UI_MENU_COOP_ON_DESC] = "Play with friends over Steam, each in their own game and save. Nobody sets up a router: rooms "
|
||||
"and invites go through Steam, which shows you as playing Spacewar, its test app. Needs Steam "
|
||||
"running and its library file steam_api64.dll beside the game. Off: the game uses no network.",
|
||||
[UI_MENU_COOP_NO_LIBRARY] = "Steam's library file, steam_api64.dll, is not beside the game. Copy one from any Steam game's "
|
||||
"folder into the folder of ocarina.exe, then choose Look for Steam again.",
|
||||
"running; the launcher takes Steam's library file from a Steam game you have installed. Off: the "
|
||||
"game uses no network.",
|
||||
[UI_MENU_COOP_NO_LIBRARY] = "Steam's library file, steam_api64.dll, is not beside the game. The launcher puts it there when "
|
||||
"it starts the game, from a Steam game you have installed: start the game from the launcher, with "
|
||||
"Steam and at least one game from 2021 or later installed. You can also copy the file yourself "
|
||||
"from a Steam game's folder into the folder of ocarina.exe.",
|
||||
[UI_MENU_COOP_OLD_LIBRARY] = "The steam_api64.dll beside the game is too old for co-op. Replace it with one from a newer Steam "
|
||||
"game.",
|
||||
[UI_MENU_COOP_NO_CLIENT] = "Steam did not answer. Start Steam and sign in, then choose Look for Steam again.",
|
||||
@@ -1292,10 +1295,12 @@ static const char *const text_ru[UI_TEXT_COUNT] = {
|
||||
[UI_MENU_COOP_ON] = "Кооператив (эксперимент)",
|
||||
[UI_MENU_COOP_ON_DESC] = "Играйте с друзьями через Steam, каждый в своей игре и со своим сохранением. Настраивать роутер "
|
||||
"не нужно: комнаты и приглашения идут через Steam, который показывает, что вы играете в Spacewar, "
|
||||
"его тестовое приложение. Нужны запущенный Steam и файл его библиотеки steam_api64.dll рядом с "
|
||||
"игрой. Выкл.: игра не использует сеть.",
|
||||
[UI_MENU_COOP_NO_LIBRARY] = "Файла библиотеки Steam, steam_api64.dll, нет рядом с игрой. Скопируйте его из папки любой игры "
|
||||
"Steam в папку с ocarina.exe и выберите «Искать Steam снова».",
|
||||
"его тестовое приложение. Нужен запущенный Steam; файл его библиотеки лаунчер берёт из "
|
||||
"установленной у вас игры Steam. Выкл.: игра не использует сеть.",
|
||||
[UI_MENU_COOP_NO_LIBRARY] = "Файла библиотеки Steam, steam_api64.dll, нет рядом с игрой. Лаунчер кладёт его туда при запуске "
|
||||
"игры, из установленной у вас игры Steam: запустите игру из лаунчера при установленном Steam и "
|
||||
"хотя бы одной игре 2021 года или новее. Можно и самому скопировать файл из папки любой игры "
|
||||
"Steam в папку с ocarina.exe.",
|
||||
[UI_MENU_COOP_OLD_LIBRARY] = "Файл steam_api64.dll рядом с игрой слишком старый для кооператива. Замените его файлом из более "
|
||||
"новой игры Steam.",
|
||||
[UI_MENU_COOP_NO_CLIENT] = "Steam не ответил. Запустите Steam, войдите в аккаунт и выберите «Искать Steam снова».",
|
||||
@@ -1922,10 +1927,12 @@ static const char *const text_pt_br[UI_TEXT_COUNT] = {
|
||||
[UI_MENU_COOP_ON] = "Co-op (experimental)",
|
||||
[UI_MENU_COOP_ON_DESC] = "Jogue com amigos pela Steam, cada um no seu jogo e no seu save. Ninguém configura roteador: "
|
||||
"salas e convites passam pela Steam, que mostra você jogando Spacewar, o app de teste dela. "
|
||||
"Precisa da Steam aberta e do arquivo steam_api64.dll ao lado do jogo. Desligado: o jogo não usa "
|
||||
"a rede.",
|
||||
[UI_MENU_COOP_NO_LIBRARY] = "O arquivo da biblioteca da Steam, steam_api64.dll, não está ao lado do jogo. Copie um da pasta "
|
||||
"de qualquer jogo da Steam para a pasta do ocarina.exe e escolha Procurar a Steam de novo.",
|
||||
"Precisa da Steam aberta; o launcher pega o arquivo da biblioteca da Steam de um jogo da Steam "
|
||||
"que você tem instalado. Desligado: o jogo não usa a rede.",
|
||||
[UI_MENU_COOP_NO_LIBRARY] = "O arquivo da biblioteca da Steam, steam_api64.dll, não está ao lado do jogo. O launcher o coloca "
|
||||
"lá ao iniciar o jogo, a partir de um jogo da Steam que você tem instalado: inicie o jogo pelo "
|
||||
"launcher, com a Steam e pelo menos um jogo de 2021 ou mais novo instalados. Você também pode "
|
||||
"copiar o arquivo da pasta de um jogo da Steam para a pasta do ocarina.exe.",
|
||||
[UI_MENU_COOP_OLD_LIBRARY] = "O steam_api64.dll ao lado do jogo é antigo demais para o co-op. Troque por um de um jogo mais "
|
||||
"novo da Steam.",
|
||||
[UI_MENU_COOP_NO_CLIENT] = "A Steam não respondeu. Abra a Steam, entre na sua conta e escolha Procurar a Steam de novo.",
|
||||
@@ -2641,8 +2648,9 @@ static const char *const text_zh_hans[UI_TEXT_COUNT] = {
|
||||
[UI_MENU_TAB_COOP] = "合作",
|
||||
[UI_MENU_COOP_ON] = "合作(实验性)",
|
||||
[UI_MENU_COOP_ON_DESC] = "通过 Steam 与朋友一起玩,各自运行自己的游戏和存档。无需设置路由器:房间和邀请都经由 Steam,Steam 会显示你正在玩它的测试应用 Spacewar。需要 Steam "
|
||||
"正在运行,并且游戏旁边有它的库文件 steam_api64.dll。关闭:游戏不使用网络。",
|
||||
[UI_MENU_COOP_NO_LIBRARY] = "游戏旁边没有 Steam 的库文件 steam_api64.dll。从任意 Steam 游戏的文件夹里复制一个到 ocarina.exe 所在的文件夹,然后选择“重新查找 Steam”。",
|
||||
"正在运行;启动器会从你已安装的 Steam 游戏里取得 Steam 的库文件。关闭:游戏不使用网络。",
|
||||
[UI_MENU_COOP_NO_LIBRARY] = "游戏旁边没有 Steam 的库文件 steam_api64.dll。启动器在启动游戏时会从你已安装的 Steam 游戏里把它放到那里:请在安装了 Steam 和至少一款 2021 "
|
||||
"年或更新的游戏的情况下,从启动器启动游戏。你也可以自己从某个 Steam 游戏的文件夹里把这个文件复制到 ocarina.exe 所在的文件夹。",
|
||||
[UI_MENU_COOP_OLD_LIBRARY] = "游戏旁边的 steam_api64.dll 对合作模式来说太旧。请换成较新的 Steam 游戏里的那个文件。",
|
||||
[UI_MENU_COOP_NO_CLIENT] = "Steam 没有响应。请启动 Steam 并登录,然后选择“重新查找 Steam”。",
|
||||
[UI_MENU_COOP_RETRY] = "重新查找 Steam",
|
||||
|
||||
Reference in New Issue
Block a user