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
eae2aa4f
Commit
eae2aa4f
authored
May 07, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed check dir and symlink for prefixes
parent
f42bd5d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
functions_helper
data_from_portwine/scripts/functions_helper
+7
-3
start.sh
data_from_portwine/scripts/start.sh
+2
-1
No files found.
data_from_portwine/scripts/functions_helper
View file @
eae2aa4f
...
...
@@ -1154,11 +1154,11 @@ pw_init_db () {
if
[[
-f
"
${
portwine_exe
}
"
]]
;
then
PORTWINE_DB
=
"
$(
basename
"
${
portwine_exe
}
"
.exe
)
"
export
PORTWINE_DB
if
[[
-f
"
${
portwine_exe
}
"
.ppdb
]]
&&
[[
"
${
PORTWINE_DB
}
"
!=
"RiotClientServices"
]]
;
then
if
[[
-f
"
${
portwine_exe
}
"
.ppdb
]]
;
then
PORTWINE_DB_FILE
=
"
${
portwine_exe
}
"
.ppdb
# shellcheck source=/dev/null
source
"
${
PORTWINE_DB_FILE
}
"
if
[[
-z
"
$(
ls
-p
"
${
PORT_WINE_PATH
}
/prefixes/"
|
grep
-e
"^
${
PW_PREFIX_NAME
}
/
"
)
"
]]
;
then
if
[[
-z
"
$(
ls
"
${
PORT_WINE_PATH
}
/prefixes/"
|
grep
-e
"^
${
PW_PREFIX_NAME
}
$
"
)
"
]]
;
then
PW_PREFIX_NAME
=
$(
echo
"
${
portwine_exe
}
"
|
awk
-F
"/prefixes/"
'{print $2}'
|
awk
-F
"/"
'{print $1}'
)
edit_db_from_gui PW_PREFIX_NAME
fi
...
...
@@ -2274,8 +2274,10 @@ start_portwine () {
sed
-i
"s/
${
SDL_VAR
}
/
${
SDL_VAR
%?
}
0/"
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/system.reg"
fi
else
print_info
"Added DisableHidraw = 0 to reg file"
${
pw_runtime
}
env
PATH
=
"
${
PATH
}
"
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
:
${
WINE_LIBRARY_PATH
}
"
GST_PLUGIN_SYSTEM_PATH_1_0
=
""
\
"
${
WINELOADER
}
"
reg add
"HKEY_LOCAL_MACHINE
\S
ystem
\C
urrentControlSet
\S
ervices
\w
inebus"
/v
"DisableHidraw"
/t REG_DWORD /d 0 /f
print_info
"Added Enable SDL = 0 to reg file"
${
pw_runtime
}
env
PATH
=
"
${
PATH
}
"
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
:
${
WINE_LIBRARY_PATH
}
"
GST_PLUGIN_SYSTEM_PATH_1_0
=
""
\
"
${
WINELOADER
}
"
reg add
"HKEY_LOCAL_MACHINE
\S
ystem
\C
urrentControlSet
\S
ervices
\w
inebus"
/v
"Enable SDL"
/t REG_DWORD /d 0 /f
fi
...
...
@@ -2293,8 +2295,10 @@ start_portwine () {
sed
-i
"s/
${
SDL_VAR
}
/
${
SDL_VAR
%?
}
1/"
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/system.reg"
fi
else
print_info
"Added DisableHidraw = 1 to reg file"
${
pw_runtime
}
env
PATH
=
"
${
PATH
}
"
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
:
${
WINE_LIBRARY_PATH
}
"
GST_PLUGIN_SYSTEM_PATH_1_0
=
""
\
"
${
WINELOADER
}
"
reg add
"HKEY_LOCAL_MACHINE
\S
ystem
\C
urrentControlSet
\S
ervices
\w
inebus"
/v
"DisableHidraw"
/t REG_DWORD /d 1 /f
print_info
"Added Enable SDL = 1 to reg file"
${
pw_runtime
}
env
PATH
=
"
${
PATH
}
"
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
:
${
WINE_LIBRARY_PATH
}
"
GST_PLUGIN_SYSTEM_PATH_1_0
=
""
\
"
${
WINELOADER
}
"
reg add
"HKEY_LOCAL_MACHINE
\S
ystem
\C
urrentControlSet
\S
ervices
\w
inebus"
/v
"Enable SDL"
/t REG_DWORD /d 1 /f
fi
...
...
@@ -3669,7 +3673,7 @@ pw_prefix_manager () {
IFS
=
$'
\n
'
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/dll_list_tmp"
while
read
PW_BOOL_IN_DLL_LIST
;
do
if
[[
-z
$(
echo
"
${
PW_BOOL_IN_DLL_LIST
}
"
|
grep
-E
'd3d|directx9|dont_use|dxvk|vkd3d|galliumnine|faudio1'
)
]]
;
then
if
[[
-z
$(
echo
"
${
PW_BOOL_IN_DLL_LIST
}
"
|
grep
-E
'd3d|directx9|dont_use|dxvk|vkd3d|galliumnine|faudio1
|Foundation
'
)
]]
;
then
if
grep
"^
$(
echo
"
${
PW_BOOL_IN_DLL_LIST
}
"
|
awk
'{print $1}'
)
$"
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/winetricks.log"
;
then
echo
-e
"true
\n
$(
echo
"
${
PW_BOOL_IN_DLL_LIST
}
"
|
awk
'{print $1}'
)
\n
$(
echo
${
PW_BOOL_IN_DLL_LIST
}
|
awk
'{ $1 = ""; print substr($0, 2) }'
)
"
>>
"
${
PORT_WINE_TMP_PATH
}
/dll_list_tmp"
else
...
...
data_from_portwine/scripts/start.sh
View file @
eae2aa4f
...
...
@@ -325,7 +325,8 @@ unset PW_ADD_PREFIXES_TO_GUI
PW_PREFIX_NAME
=
"
${
PW_PREFIX_NAME
//[[
:blank:]]/_
}
"
for
PAIG
in
./
*
;
do
if
[[
"
${
PAIG
//
'./'
/
}
"
!=
"
${
PORTWINE_DB
^^//[[
:blank:]]/_
}
"
]]
\
&&
[[
"
${
PAIG
//
'./'
/
}
"
!=
"
${
PW_PREFIX_NAME
}
"
]]
&&
[[
"
${
PAIG
//
'./'
/
}
"
!=
"
${
PW_PREFIX_NAME
}
"
]]
\
&&
[[
-d
"
${
PAIG
}
"
]]
then
PW_ADD_PREFIXES_TO_GUI
=
"
${
PW_ADD_PREFIXES_TO_GUI
}
!
${
PAIG
//
'./'
/
}
"
fi
...
...
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