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
ad1a28a4
Commit
ad1a28a4
authored
Jun 05, 2020
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change -eq to = in all test
parent
1dc085cf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
port_update
data_from_portwine/scripts/port_update
+2
-2
runlib
data_from_portwine/scripts/runlib
+7
-7
vars
data_from_portwine/scripts/vars
+1
-1
No files found.
data_from_portwine/scripts/port_update
View file @
ad1a28a4
...
@@ -11,7 +11,7 @@ then
...
@@ -11,7 +11,7 @@ then
echo
"1"
>
"
${
config_path
}
/update_notifier"
echo
"1"
>
"
${
config_path
}
/update_notifier"
fi
fi
read
"update_not"
<
"
${
config_path
}
/update_notifier"
read
"update_not"
<
"
${
config_path
}
/update_notifier"
if
[
"
${
update_not
}
"
-eq
"1"
]
if
[
"
${
update_not
}
"
=
"1"
]
then
then
wget
-T
2
--output-document
=
"
${
config_path
}
/
${
portname
}
_cur_ver"
"http://portwine-linux.ru/current_version/
${
portname
}
_ver"
wget
-T
2
--output-document
=
"
${
config_path
}
/
${
portname
}
_cur_ver"
"http://portwine-linux.ru/current_version/
${
portname
}
_ver"
sleep
1
sleep
1
...
@@ -56,7 +56,7 @@ else
...
@@ -56,7 +56,7 @@ else
TRUE
"
${
port_time4
}
"
\
TRUE
"
${
port_time4
}
"
\
FALSE
"
${
port_time5
}
"
\
FALSE
"
${
port_time5
}
"
\
FALSE
"
${
port_time6
}
"
`
FALSE
"
${
port_time6
}
"
`
if
[
$?
-eq
1
]
if
[
$?
=
1
]
then
then
echo
"1"
>
"
${
HOME
}
/.config/.PortTime"
echo
"1"
>
"
${
HOME
}
/.config/.PortTime"
else
else
...
...
data_from_portwine/scripts/runlib
View file @
ad1a28a4
#!/bin/bash
#!/bin/bash
# Author: PortWINE-Linux.ru
# Author: PortWINE-Linux.ru
########################################################################
########################################################################
[
$(
id
-u
)
-eq
0
]
&&
echo
"Do not run this script as root!"
&&
zenity
--error
--text
"Do not run this script as root!"
&&
exit
1
[
$(
id
-u
)
=
0
]
&&
echo
"Do not run this script as root!"
&&
zenity
--error
--text
"Do not run this script as root!"
&&
exit
1
########################################################################
########################################################################
sszen
()
{
sszen
()
{
zenity
--progress
--title
=
"Settings..."
--text
=
"Updating start parameters"
--pulsate
--auto-close
--auto-kill
--width
=
450
zenity
--progress
--title
=
"Settings..."
--text
=
"Updating start parameters"
--pulsate
--auto-close
--auto-kill
--width
=
450
...
@@ -41,7 +41,7 @@ if [ ! -f "${config_path}/dxvk_on" ]; then
...
@@ -41,7 +41,7 @@ if [ ! -f "${config_path}/dxvk_on" ]; then
FALSE
"OpenGL"
"
${
ss_ogl_2
}
"
\
FALSE
"OpenGL"
"
${
ss_ogl_2
}
"
\
FALSE
"DXVK+HUD"
"
${
ss_ogl_3
}
+ HUD"
\
FALSE
"DXVK+HUD"
"
${
ss_ogl_3
}
+ HUD"
\
TRUE
"DXVK"
"
${
ss_ogl_3
}
"
`
TRUE
"DXVK"
"
${
ss_ogl_3
}
"
`
if
[
$?
-eq
1
]
;
then
exit
1
;
fi
if
[
$?
=
1
]
;
then
exit
1
;
fi
case
$start_settings
in
case
$start_settings
in
"OpenGL"
)
"OpenGL"
)
echo
"0"
>
"
${
config_path
}
/dxvk_on"
;;
echo
"0"
>
"
${
config_path
}
/dxvk_on"
;;
...
@@ -120,7 +120,7 @@ else
...
@@ -120,7 +120,7 @@ else
export
AMD_ATI
=
"
$(
lspci |
grep
AMD/ATI
)
"
export
AMD_ATI
=
"
$(
lspci |
grep
AMD/ATI
)
"
if
[
!
-z
"
${
AMD_ATI
}
"
]
;
then
if
[
!
-z
"
${
AMD_ATI
}
"
]
;
then
# export DXVK_CONFIG_FILE="${PORT_WINE_PATH}/data/dxvk_amd.conf"
# export DXVK_CONFIG_FILE="${PORT_WINE_PATH}/data/dxvk_amd.conf"
if
[
"
${
PORTWINE_ACO
}
"
-eq
"1"
]
;
then
if
[
"
${
PORTWINE_ACO
}
"
=
"1"
]
;
then
export
RADV_PERFTEST
=
aco
export
RADV_PERFTEST
=
aco
echo
"ACO is enabled"
echo
"ACO is enabled"
else
else
...
@@ -130,11 +130,11 @@ else
...
@@ -130,11 +130,11 @@ else
fi
fi
export
DXVK_STATE_CACHE_PATH
=
"
${
PATH_TO_GAME
}
"
export
DXVK_STATE_CACHE_PATH
=
"
${
PATH_TO_GAME
}
"
export
DXVK_STATE_CACHE
=
1
export
DXVK_STATE_CACHE
=
1
if
[
"
${
var_dxvk_on
}
"
-eq
"0"
]
;
then
if
[
"
${
var_dxvk_on
}
"
=
"0"
]
;
then
export
DXVK_STATE_CACHE
=
0
export
DXVK_STATE_CACHE
=
0
elif
[
"
${
var_dxvk_on
}
"
-eq
"1"
]
;
then
elif
[
"
${
var_dxvk_on
}
"
=
"1"
]
;
then
export
DXVK_HUD
=
0
export
DXVK_HUD
=
0
elif
[
"
${
var_dxvk_on
}
"
-eq
"2"
]
;
then
elif
[
"
${
var_dxvk_on
}
"
=
"2"
]
;
then
export
DXVK_HUD
=
"fps,devinfo,version,frametimes"
export
DXVK_HUD
=
"fps,devinfo,version,frametimes"
fi
fi
export
def_pfx
=
"
${
PORT_WINE_PATH
}
/data/dist/share/default_pfx/"
export
def_pfx
=
"
${
PORT_WINE_PATH
}
/data/dist/share/default_pfx/"
...
@@ -179,7 +179,7 @@ STOP_PORTWINE ()
...
@@ -179,7 +179,7 @@ STOP_PORTWINE ()
{
{
#WAIT_WINESERVER
#WAIT_WINESERVER
ADD_IN_STOP_PORTWINE
ADD_IN_STOP_PORTWINE
if
[
"
$int_xneur
"
-eq
"1"
]
;
then
if
[
"
$int_xneur
"
=
"1"
]
;
then
xneur &
xneur &
fi
fi
#killall -r -s9 winedevice
#killall -r -s9 winedevice
...
...
data_from_portwine/scripts/vars
View file @
ad1a28a4
...
@@ -19,7 +19,7 @@ export PORTWINE_ACO=0
...
@@ -19,7 +19,7 @@ export PORTWINE_ACO=0
########################################################################
########################################################################
ADD_IN_START_PORTWINE
()
ADD_IN_START_PORTWINE
()
{
{
if
[
"
${
var_dxvk_on
}
"
-eq
"0"
]
if
[
"
${
var_dxvk_on
}
"
=
"0"
]
then
###OPENGL###
then
###OPENGL###
export
PROTON_USE_WINED3D
=
1
export
PROTON_USE_WINED3D
=
1
export
PW_DXGI_FOR_VKD3D
=
1
export
PW_DXGI_FOR_VKD3D
=
1
...
...
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