mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
feat: teheheheee
This commit is contained in:
parent
47c88c3dfc
commit
9130316c24
14 changed files with 261 additions and 261 deletions
32
packages/katwine/script.sh
Executable file
32
packages/katwine/script.sh
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eoux pipefail
|
||||
WINEARCH="win64"
|
||||
GAME="$1"
|
||||
|
||||
runner() {
|
||||
env TZ="$TZ_JP" LC_ALL="$LC_JP" WINEARCH="$WINEARCH" WINEPREFIX="$WINEPREFIX" wine "$@"
|
||||
}
|
||||
|
||||
vn() {
|
||||
WINEPREFIX="/home/kat/Games/VNs"
|
||||
cd "$WINEPREFIX"
|
||||
LC_JP="ja_JP.UTF-8"
|
||||
TZ_JP="Asia/Tokyo"
|
||||
runner "./drive_c/cmd.exe" /k "C:/script.bat" "$@"
|
||||
}
|
||||
|
||||
main() {
|
||||
if [[ "$GAME" == "kanon" ]]; then
|
||||
VN_DIR="C:/KEY/KANON_SE_ALL"
|
||||
VN_EXE="./REALLIVE.exe"
|
||||
VN_ARCH="x86"
|
||||
vn "$VN_DIR" "$VN_EXE" "$VN_ARCH"
|
||||
elif [[ "$GAME" == "hanahira" ]]; then
|
||||
VN_DIR="C:/hanahira"
|
||||
VN_EXE="./HANA9.exe"
|
||||
VN_ARCH="x86"
|
||||
vn "$VN_DIR" "$VN_EXE" "$VN_ARCH"
|
||||
fi
|
||||
}
|
||||
|
||||
main
|
||||
Loading…
Add table
Add a link
Reference in a new issue