mirror of
https://github.com/tcsenpai/UWINE.git
synced 2025-06-06 19:45:20 +00:00
fix drive_c symlink during prefix creation
This commit is contained in:
parent
a4a845321a
commit
cfb7121a38
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -x
|
# use for debug only.
|
||||||
|
# set -x
|
||||||
|
|
||||||
if [[ -z $1 ]] || [[ -z $WINEPREFIX ]] || [[ -z $GAMEID ]] || [[ -z $PROTONPATH ]]; then
|
if [[ -z $1 ]] || [[ -z $WINEPREFIX ]] || [[ -z $GAMEID ]] || [[ -z $PROTONPATH ]]; then
|
||||||
echo 'Usage: WINEPREFIX=<wine-prefix-path> GAMEID=<ulwgl-id> PROTONPATH=<proton-version-path> ./gamelauncher.sh <executable-path> <arguments>'
|
echo 'Usage: WINEPREFIX=<wine-prefix-path> GAMEID=<ulwgl-id> PROTONPATH=<proton-version-path> ./gamelauncher.sh <executable-path> <arguments>'
|
||||||
@ -11,6 +12,7 @@ fi
|
|||||||
if [[ $WINEPREFIX ]]; then
|
if [[ $WINEPREFIX ]]; then
|
||||||
if [[ ! -d "$WINEPREFIX" ]]; then
|
if [[ ! -d "$WINEPREFIX" ]]; then
|
||||||
mkdir -p "$WINEPREFIX"
|
mkdir -p "$WINEPREFIX"
|
||||||
|
export PROTON_DLL_COPY="*"
|
||||||
fi
|
fi
|
||||||
if [[ ! -d "$WINEPREFIX"/pfx ]]; then
|
if [[ ! -d "$WINEPREFIX"/pfx ]]; then
|
||||||
ln -s "$WINEPREFIX" "$WINEPREFIX"/pfx
|
ln -s "$WINEPREFIX" "$WINEPREFIX"/pfx
|
||||||
@ -18,6 +20,10 @@ if [[ $WINEPREFIX ]]; then
|
|||||||
if [[ ! -f "$WINEPREFIX"/tracked_files ]]; then
|
if [[ ! -f "$WINEPREFIX"/tracked_files ]]; then
|
||||||
touch "$WINEPREFIX"/tracked_files
|
touch "$WINEPREFIX"/tracked_files
|
||||||
fi
|
fi
|
||||||
|
if [[ ! -f "$WINEPREFIX/dosdevices/" ]]; then
|
||||||
|
mkdir -p "$WINEPREFIX"/dosdevices
|
||||||
|
ln -s "../drive_c" "$WINEPREFIX/dosdevices/c:"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
export PROTONPATH="$PROTONPATH"
|
export PROTONPATH="$PROTONPATH"
|
||||||
export ULWGL_ID="$GAMEID"
|
export ULWGL_ID="$GAMEID"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user