1
0
Fork 0
mirror of https://github.com/Detanup01/gbe_fork.git synced 2025-04-23 14:42:06 +02:00
gbe_fork/tools/steamclient_loader/linux
otavepto 35c0c408b9 * allow changing the name of the base folder used to store save data via saves_folder_name, by default it would be Goldberg SteamEmu Saves
* changed the environment variable `SteamAppPath` to `GseAppPath`
* allow loading `config.ini` from global settings path + merge it with the local one, and allow the local one to override the global one
* fixed the path returned by `get_user_appdata_path()` to include the path separator
* updated readmes
2024-04-16 22:59:27 +02:00
..
ldr_appid.EXAMPLE.txt rename example files in Linux steamclient_loader script to avoid accidental invokation on first run 2023-12-28 01:30:46 +02:00
ldr_cmdline.EXAMPLE.txt rename example files in Linux steamclient_loader script to avoid accidental invokation on first run 2023-12-28 01:30:46 +02:00
ldr_cwd.EXAMPLE.txt rename example files in Linux steamclient_loader script to avoid accidental invokation on first run 2023-12-28 01:30:46 +02:00
ldr_exe.EXAMPLE.txt rename example files in Linux steamclient_loader script to avoid accidental invokation on first run 2023-12-28 01:30:46 +02:00
ldr_steam_rt.EXAMPLE.txt rename example files in Linux steamclient_loader script to avoid accidental invokation on first run 2023-12-28 01:30:46 +02:00
README.md minor spelling 2023-12-28 01:30:46 +02:00
steamclient_loader.sh * allow changing the name of the base folder used to store save data via saves_folder_name, by default it would be Goldberg SteamEmu Saves 2024-04-16 22:59:27 +02:00

How to use it:

Copy both files

  • steamclient.so
  • steamclient64.so

beside the script and specify the requird input, either from commdnline or via the configuration files: ldr_*.txt

It is recommended to create a separate setup for each game via the config files
to avoid specifying the commandline each time.

Command line arguments will override the values in the configuration files,
with an exception for the arguments passed to the executable, both specified
in the cofiguration file and via command line will be passed to the executable.


Command line arguments:

  • -exe: path to the executable
  • -appid: numeric app ID
  • -cwd: (optional) working directory to switch to when running the executable
  • -rt: (optional) path to Steam runtime script
    • ex1: ~/.steam/debian-installation/ubuntu12_64/steam-runtime-heavy.sh
    • ex2: ~/.steam/debian-installation/ubuntu12_64/steam-runtime-heavy/run.sh
    • ex3: ~/.steam/debian-installation/ubuntu12_32/steam-runtime/run.sh
    • ex4: ~/.steam/steam_runtime/run.sh
  • --: (optional) everything after these 2 dashes will be passed directly to the executable"

Note that any unknown args will be passed to the executable

Examples:

  • ./steamclient_loader.sh -exe ~/games/mygame/executable -appid 480
  • ./steamclient_loader.sh -exe ~/games/mygame/executable -appid 480 -- -opengl
  • ./steamclient_loader.sh -exe ~/games/mygame/executable -appid 480 -cwd ~/games/mygame/subdir
  • ./steamclient_loader.sh -exe ~/games/mygame/executable -appid 480 -rt ~/.steam/debian-installation/ubuntu12_64/steam-runtime-heavy/run.sh

Configuraion files:

Additionally, you can set these values in the equivalent configuration files,
everything on a single line for each file, except ldr_cmd.txt:

  • ldr_exe.txt: specify the executable path in this file
  • ldr_appid.txt: specify the app ID in this file
  • ldr_cwd.txt: (optional) specify the working directory of the executable path in this file
  • ldr_steam_rt.txt: (optional) specify the path of the Steam runtime script in this file
  • ldr_cmd.txt: (optional) specify aditional arguments that will be passed to the executable in this file,
    this file has the exception that the arguments must be specified on separate lines