|
27 | 27 | shopt -s extglob
|
28 | 28 |
|
29 | 29 | exe=umodel.exe
|
30 |
| -c_drive= |
| 30 | +win_drive= |
31 | 31 | if [ "$OSTYPE" == "linux-gnu" ] || [ "$OSTYPE" == "linux" ]; then
|
32 | 32 | exe="umodel"
|
33 |
| - # VirtualBox default C: drive mapping |
34 |
| - if [ -d "/media/sf_C_DRIVE" ]; then |
35 |
| - c_drive="/media/sf_C_DRIVE" # VirtualBox |
36 |
| - elif [ -d "/mnt/hgfs/C" ]; then |
37 |
| - c_drive="/mnt/hgfs/C" # VMware |
| 33 | + # Windows to VM or Linux path conversion |
| 34 | +# if [ -d "/media/sf_C_DRIVE" ]; then |
| 35 | +# c_drive="/media/sf_C_DRIVE" # VirtualBox - not supported now because it has drive letter in the middle |
| 36 | + if [ -d "/mnt/hgfs/C" ]; then |
| 37 | + win_drive="/mnt/hgfs/" # VMware |
38 | 38 | elif [ -d "/media/c" ]; then
|
39 |
| - c_drive="/media/c" |
| 39 | + win_drive="/media/" # linux |
40 | 40 | fi
|
41 | 41 | fi
|
42 | 42 |
|
@@ -66,8 +66,8 @@ function CheckDir()
|
66 | 66 | dir=$1
|
67 | 67 | DBG "... check $dir"
|
68 | 68 | # support Windows paths on Linux
|
69 |
| - if [ "$c_drive" ] && [ "${dir:1:1}" == ":" ]; then |
70 |
| - dir="${c_drive}${dir:2}" |
| 69 | + if [ "$win_drive" ] && [ "${dir:1:1}" == ":" ]; then |
| 70 | + dir="${win_drive}${dir:0:1}/${dir:2}" |
71 | 71 | fi
|
72 | 72 | if [ -z "$checkedDirs" ]; then
|
73 | 73 | checkedDirs=$dir
|
@@ -179,7 +179,7 @@ function fortnite()
|
179 | 179 | {
|
180 | 180 | read aes < "Docs/fortnite.txt"
|
181 | 181 | CheckDir "${launcher[@]/%/Fortnite/FortniteGame/Content/Paks}"
|
182 |
| - run -game=ue4.23 -aes=$aes $* |
| 182 | + run -game=ue4.24 -aes=$aes $* |
183 | 183 | }
|
184 | 184 | function ue3()
|
185 | 185 | {
|
|
0 commit comments