launcher.sh 1.0 KB

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env bash
  2. # Steam launch wrapper for Embarrassed Shina-chan on Linux/Proton.
  3. # Set this as the game's Steam Launch Options:
  4. # /full/path/to/launcher.sh %command%
  5. #
  6. # install.sh rewrites @HOOK_SO@ below to the built bakin_minimal.so path.
  7. # Runtime hook: VAO rebind, audio wait cap and the IBL BRDF LUT drop
  8. # (see patches/04-runtime-hook). For diagnostics, set BAKIN_HOOK_LOG=1 before
  9. # launching to have it write /tmp/bakin-hook.<pid>.log; off by default.
  10. HOOK_SO="@HOOK_SO@"
  11. [ -f "$HOOK_SO" ] && export LD_PRELOAD="${HOOK_SO}:${LD_PRELOAD}"
  12. # The bundled WebView2Loader deadlocks under Wine (no Edge WebView2 runtime);
  13. # disabling the DLL avoids a hang in CreateCoreWebView2Environment.
  14. export WINEDLLOVERRIDES="WebView2Loader="
  15. # mesa_glthread=false: avoids a NULL-vtable crash in Mesa's GL worker threads.
  16. export mesa_glthread=false
  17. # Disables Wine's fullscreen-hack gamma vertex shader, which fails to compile
  18. # here and crashes early.
  19. export WINE_DISABLE_FULLSCREEN_HACK=1
  20. export WINEDEBUG="-all"
  21. export PROTON_LOG=0
  22. exec "$@"