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
Mikhail Tergoev
PortWINE
Commits
37d90fc9
Commit
37d90fc9
authored
Sep 29, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
used EN only for gamescope session
parent
ec42b5fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
33 deletions
+35
-33
functions_helper
data_from_portwine/scripts/functions_helper
+34
-30
start.sh
data_from_portwine/scripts/start.sh
+1
-3
No files found.
data_from_portwine/scripts/functions_helper
View file @
37d90fc9
...
...
@@ -71,39 +71,44 @@ change_locale () {
fi
fi
[[
!
-f
"
${
pw_yad
}
"
]]
&&
pw_yad
=
"yad"
if
[[
-z
"
$LANGUAGE
"
]]
\
||
[[
"
${
PW_FORCE_CHANGE_LOC
}
"
==
"1"
]]
;
then
SET_LANG
=(
"
${
pw_yad
}
"
--list
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
--title
=
"Select language for PortProton"
--column
=
"Language"
--column
=
""
--width
=
400
--height
=
200
"Russian (Русский)"
ru
"English"
en
"Spanish (Español・Española)"
es
)
out
=
$(
"
${
SET_LANG
[@]
}
"
)
if
[[
-z
$out
]]
\
&&
[[
-n
"
$LANGUAGE
"
]]
;
then
echo
"
${
LANGUAGE
}
"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
elif
[[
-z
$out
]]
;
then
echo
"en"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
else
LANGUAGE
=
$(
echo
"
$out
"
|
cut
-d
'|'
-f2
)
echo
"
${
LANGUAGE
}
"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
create_translations
local
GAME_LANGUAGE
=
"
$LANGUAGE
"
if
check_gamescope_session
;
then
LANGUAGE
=
"en"
else
[[
!
-f
"
${
pw_yad
}
"
]]
&&
pw_yad
=
"yad"
if
[[
-z
"
$LANGUAGE
"
]]
\
||
[[
"
${
PW_FORCE_CHANGE_LOC
}
"
==
"1"
]]
;
then
SET_LANG
=(
"
${
pw_yad
}
"
--list
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
--title
=
"Select language for PortProton"
--column
=
"Language"
--column
=
""
--width
=
400
--height
=
200
"Russian (Русский)"
ru
"English"
en
"Spanish (Español・Española)"
es
)
out
=
$(
"
${
SET_LANG
[@]
}
"
)
if
[[
-z
$out
]]
\
&&
[[
-n
"
$LANGUAGE
"
]]
;
then
echo
"
${
LANGUAGE
}
"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
elif
[[
-z
$out
]]
;
then
echo
"en"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
else
LANGUAGE
=
$(
echo
"
$out
"
|
cut
-d
'|'
-f2
)
echo
"
${
LANGUAGE
}
"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
create_translations
fi
unset
PW_FORCE_CHANGE_LOC
restart_pp
fi
unset
PW_FORCE_CHANGE_LOC
restart_pp
fi
export
LANGUAGE
case
"
$LANGUAGE
"
in
case
"
$
GAME_
LANGUAGE
"
in
ru
)
check_start_from_steam
&&
export
LC_ALL
=
ru_RU.UTF-8
export
FULL_LN
=
"russian"
...
...
@@ -721,7 +726,6 @@ unpack () {
# If gamescope session is active, use PW_TERM for unpack
if check_gamescope_session ; then
yad_info "
We
wont unpack
$1
"
$PW_TERM
"
echo
; echo ; echo \
"Unpacking file:
$1
. Please wait...
\"
;
$command
\"
$1
\"
-C
\"
$2
\"
"
[[
"
$?
"
!= 0 ]] && return 1 || return 0
elif [[
"
$silent
"
!=
"true"
]] ; then
...
...
data_from_portwine/scripts/start.sh
View file @
37d90fc9
...
...
@@ -252,9 +252,7 @@ esac
pw_check_and_download_plugins
# check skip update
if
[[
"
${
SKIP_CHECK_UPDATES
}
"
!=
1
]]
\
||
check_gamescope_session
then
if
[[
"
${
SKIP_CHECK_UPDATES
}
"
!=
1
]]
;
then
pw_port_update
PW_FILESYSTEM
=
$(
stat
-f
-c
%T
"
${
PORT_WINE_PATH
}
"
)
...
...
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