blob: f63c3a152f7b2cadcc859e9f0297dd155cb61e81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#!/bin/bash
# WINE Launcher script for CGE7
export WINEPREFIX=~/.cge7
export CGE7DIR=/usr/share/cge7 # installation dir for AUR package
export SAVEFILE=$WINEPREFIX/savefile
export LC_ALL=ja_JP.UTF-8
# configure registry
configure() {
winetricks -q fakejapanese
touch $SAVEFILE # ensures that we don't repeat configuration process
}
if [ "$1" = "--mkpfx" ]; then # Force reconfigure prefix
configure
exit 0
elif [ "$1" = "--erase" ]; then # delete all data in prefix
rm -rf $WINEPREFIX
exit 0
elif [ "$1" = "--help" ]; then # show command info
cat << EOF
CGE7 Linux Loader by Atapi/Sterophonick
Original Program: (c) 2025? youkan
Usage:
cge7 [--mkpfx] [--erase] [--help]
--mkpfx: Re-configure WINE prefix
--erase: Erase all data in WINE prefix
--help: Show this screen
EOF
exit 0
elif [ ! -f "$SAVEFILE" ]; then # first boot
configure
else
echo ""
fi
cd $CGE7DIR
wine CGE7.exe # no args
|