Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
PortWINE
Commits
6e38d19e
Commit
6e38d19e
authored
Dec 06, 2023
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix PATH_TO_GAME
parent
828807d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
functions_helper
data_from_portwine/scripts/functions_helper
+5
-8
runlib
data_from_portwine/scripts/runlib
+4
-1
No files found.
data_from_portwine/scripts/functions_helper
View file @
6e38d19e
...
...
@@ -361,7 +361,7 @@ init_wine_ver () {
export
WINESERVER
=
"
${
WINEDIR
}
/bin/wineserver"
export
WINEDLLPATH
=
"
${
WINEDIR
}
/lib64/wine:
${
WINEDIR
}
/lib/wine"
if
[[
!
-z
"
${
PATH_TO_GAME
}
"
]]
;
then
if
[[
-d
"
${
PATH_TO_GAME
}
"
]]
;
then
export
WINEDLLPATH+
=
":
${
PATH_TO_GAME
}
"
fi
...
...
@@ -462,10 +462,12 @@ pw_init_runtime () {
export
pw_runtime
=
"
${
PW_WINELIB
}
/pressure-vessel/bin/pressure-vessel-unruntime
\
--unshare-home
\
--home="
${
PW_SANDBOX_HOME_PATH
}
"
\
--remove-game-overlay
\
${
PW_ADD_TO_ARGS_IN_RUNTIME
}
--"
else
export
pw_runtime
=
"
${
PW_WINELIB
}
/pressure-vessel/bin/pressure-vessel-unruntime
\
--share-home
\
--remove-game-overlay
\
${
PW_ADD_TO_ARGS_IN_RUNTIME
}
--"
fi
...
...
@@ -865,12 +867,7 @@ pw_init_db () {
else
orig_IFS
=
"
$IFS
"
IFS
=
$'
\n
'
if
[[
"
$START_FROM_STEAM
"
!=
1
]]
;
then
PW_FIND_DB_FILE
=
`
grep
-ilw
"#
${
PORTWINE_DB
}
.exe"
"
${
PORT_SCRIPTS_PATH
}
/portwine_db"
/
*
|
sed
s/
".exe"
/
""
/gi
`
else
# BpeMeHHblu` KocTblJlb =)
PW_FIND_DB_FILE
=
`
grep
-ilw
"#
${
PORTWINE_DB
}
.exe"
"
${
PORT_SCRIPTS_PATH
}
/portwine_db"
/
*
|
sed
s/
".exe"
/
""
/gi |
head
-n
1
`
fi
PW_FIND_DB_FILE
=
`
grep
-ilw
"#
${
PORTWINE_DB
}
.exe"
"
${
PORT_SCRIPTS_PATH
}
/portwine_db"
/
*
|
sed
s/
".exe"
/
""
/gi
`
if
[[
`
echo
"
$PW_FIND_DB_FILE
"
|
wc
-l
`
-gt
1
]]
;
then
unset
ADD_CB_DBFILE
for
PW_CHECK_DB_FILE
in
$PW_FIND_DB_FILE
;
do
...
...
@@ -904,7 +901,7 @@ pw_init_db () {
init_wine_ver
&&
print_info
"Use
${
PORTWINE_DB_FILE
}
db file."
fi
if
[[
-
d
"
${
PATH_TO_GAME
}
"
]]
;
then
if
[[
-
z
"
${
PATH_TO_GAME
}
"
]]
||
[[
!
-d
"
${
PATH_TO_GAME
}
"
]]
;
then
export
PATH_TO_GAME
=
"
$(
cd
"
$(
dirname
"
${
portwine_exe
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
fi
...
...
data_from_portwine/scripts/runlib
View file @
6e38d19e
...
...
@@ -639,7 +639,10 @@ start_portwine () {
pw_run
()
{
unset
GDK_BACKEND
if
[[
!
-z
"
${
PATH_TO_GAME
}
"
]]
;
then
if
[[
!
-z
"
${
PATH_TO_GAME
}
"
]]
&&
[[
-d
"
${
PATH_TO_GAME
}
"
]]
;
then
cd
"
${
PATH_TO_GAME
}
"
elif
[[
-f
"
$portwine_exe
"
]]
;
then
export
PATH_TO_GAME
=
"
$(
cd
"
$(
dirname
"
${
portwine_exe
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
cd
"
${
PATH_TO_GAME
}
"
else
cd
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment