mirror of
https://github.com/Liondarkz/issn_pc.git
synced 2026-11-07 04:36:01 -10:00
- Caminhos e conteúdo: GOW3_ -> ISSN_, Gow3 -> Issn, gow3 -> issn, tags "gow3:" -> "port:". Créditos e links ao gow3_pc (Felipe Prado) mantidos; a documentação herdada do port do God of War III foi para docs/base/. - run.py aceita as variáveis GOW3_ antigas (viram ISSN_ quando a nova não está definida). - build.sh: se o patch antigo do fsr-vulkan já estiver aplicado no submódulo, volta ao commit fixado e aplica o novo. - Menu do jogo: os cheats do God of War III só aparecem quando algum é suportado. - Launcher 0.2.0: tema novo, seção inFAMOUS (Efeitos, prioridade do compute, distância de detalhe), "Salvar relatório de bug", sem os cheats do GoW3, atualização pelos releases deste repositório (silenciosa enquanto ele for privado), traduções em português. - README-Windows: 0.2.0 e novidades. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XzE465ySHDfaMBVSJyYtNw
39 lines
1.9 KiB
Bash
39 lines
1.9 KiB
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd -- "$(dirname -- "$0")"
|
|
if [[ ${1:-} == --software ]]; then
|
|
shift
|
|
if [[ -z ${VK_DRIVER_FILES:-} ]]; then
|
|
for candidate in /run/opengl-driver/share/vulkan/icd.d/lvp_icd*.json /usr/share/vulkan/icd.d/lvp_icd*.json; do
|
|
if [[ -f $candidate ]]; then export VK_DRIVER_FILES=$candidate; break; fi
|
|
done
|
|
fi
|
|
if [[ -z ${VK_DRIVER_FILES:-} ]]; then echo 'Lavapipe not found; set VK_DRIVER_FILES.' >&2; exit 1; fi
|
|
export VK_LOADER_LAYERS_DISABLE='~implicit~'
|
|
fi
|
|
# ISSN_PREBUILT=1 (packaged builds, the AppImage): bin/issn-probe and its GPU library are installed
|
|
# next to this script; nothing is built and no nix-shell is needed.
|
|
# ISSN_DATA_DIR: writable directory for the generated files (out/), saves (user/) and issn.ini;
|
|
# by default this directory. The preparation itself is in run.py.
|
|
data=${ISSN_DATA_DIR:-.}
|
|
if [[ -z ${ISSN_PREBUILT:-} && -z ${ISSN_IN_NIX_SHELL:-} ]] && ! { command -v pkg-config >/dev/null && pkg-config --exists vulkan sdl3; } && command -v nix-shell >/dev/null; then
|
|
args=''; if (( $# )); then args=$(printf '%q ' "$@"); fi
|
|
exec env ISSN_IN_NIX_SHELL=1 nix-shell shell.nix --run "bash run.sh $args"
|
|
fi
|
|
if [[ -z ${PYTHON:-} ]]; then
|
|
PYTHON=$(command -v python3 || true)
|
|
if [[ -z $PYTHON ]]; then
|
|
for candidate in /nix/store/*-python3-*/bin/python3; do
|
|
if [[ -x $candidate ]]; then PYTHON=$candidate; break; fi
|
|
done
|
|
fi
|
|
fi
|
|
if [[ -z ${PYTHON:-} ]]; then echo 'Install Python 3 or set PYTHON.' >&2; exit 1; fi
|
|
# FSR 4: faster post passes next to the downloaded ones (incremental; tools/fsr4_optimize.sh).
|
|
if [[ -z ${ISSN_PREBUILT:-} && -d fsr4_shaders ]] && command -v spirv-cross >/dev/null; then
|
|
bash tools/fsr4_optimize.sh || echo 'FSR 4: optimized post passes not built' >&2
|
|
fi
|
|
if [[ -z ${ISSN_PREBUILT:-} ]]; then bash build.sh; fi
|
|
export ISSN_DATA_DIR=$data
|
|
exec "$PYTHON" run.py "$@"
|