mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-20 21:09: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:
@@ -4,8 +4,9 @@
|
||||
// playing that app.
|
||||
//
|
||||
// The Steamworks library is not part of NX2navi and is never in its repository. steam.c declares the functions it
|
||||
// calls itself and loads steam_api64.dll from beside the game at run time; without the file, or without a running
|
||||
// Steam client that is signed in, steam_start fails and says why.
|
||||
// calls itself and loads steam_api64.dll from beside the game at run time (the launcher copies one there from a
|
||||
// Steam game the player has, launcher/steamlib.py); without the file, or without a running Steam client that is
|
||||
// signed in, steam_start fails and says why.
|
||||
//
|
||||
// Every function here is called from one thread (the co-op thread, coop.c): the library is used single-threaded.
|
||||
#pragma once
|
||||
|
||||
Reference in New Issue
Block a user