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
109b27b3
Commit
109b27b3
authored
Jan 16, 2025
by
Alex Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added saving statistics
parent
aa1e5260
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
22 deletions
+35
-22
add_in_steam.sh
data_from_portwine/scripts/add_in_steam.sh
+29
-18
functions_helper
data_from_portwine/scripts/functions_helper
+6
-4
No files found.
data_from_portwine/scripts/add_in_steam.sh
View file @
109b27b3
...
...
@@ -512,26 +512,37 @@ addNonSteamGame() {
rungame
()
{
export
START_FROM_STEAM
=
1
if
[[
-
n
"
${
STEAM_COMPAT_DATA_PATH
:-}
"
]]
;
then
cd
"
$(
dirname
"
${
portwine_exe
}
"
)
"
PORTWINE_DB_FILE
=
"
${
portwine_exe
}
.ppdb"
if
[[
-
f
"
${
PORTWINE_DB_FILE
}
"
]]
;
then
source
"
${
PORTWINE_DB_FILE
}
"
fi
for
path
in
"ProgramData"
"users/Public"
"users/steamuser"
;
do
if
[[
!
-
L
"
${
WINEPREFIX
}
/drive_c/
${
path
}
"
]]
;
then
mkdir
-
p
"
${
WINEPREFIX
}
/drive_c/users/"
rm
-
rf
"
${
WINEPREFIX
}
/drive_c/
${
path
}
"
ln
-
sr
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
:-
DEFAULT
}
/drive_c/
${
path
}
"
"
${
WINEPREFIX
}
/drive_c/
${
path
}
"
if
[[
-
n
"
${
portwine_exe
:-}
"
]]
;
then
if
[[
-
n
"
${
STEAM_COMPAT_DATA_PATH
:-}
"
]]
;
then
cd
"
$(
dirname
"
${
portwine_exe
}
"
)
"
PORTWINE_DB_FILE
=
"
${
portwine_exe
}
.ppdb"
export
PORT_WINE_TMP_PATH
=
"
${
PORT_WINE_PATH
}
/data/tmp"
source
"
${
PORT_WINE_PATH
}
/data/user.conf"
source
"
${
PORT_SCRIPTS_PATH
}
/functions_helper"
if
[[
-
f
"
${
PORTWINE_DB_FILE
}
"
]]
;
then
source
"
${
PORTWINE_DB_FILE
}
"
fi
for
path
in
"ProgramData"
"users/Public"
"users/steamuser"
;
do
if
[[
!
-
L
"
${
WINEPREFIX
}
/drive_c/
${
path
}
"
]]
;
then
mkdir
-
p
"
${
WINEPREFIX
}
/drive_c/users/"
rm
-
rf
"
${
WINEPREFIX
}
/drive_c/
${
path
}
"
ln
-
sr
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
:-
DEFAULT
}
/drive_c/
${
path
}
"
"
${
WINEPREFIX
}
/drive_c/
${
path
}
"
fi
done
[[
$PW_LOG
!=
1
]]
&&
debug_timer
--
start
-
s
"PW_TIME_IN_GAME"
"
${
STEAM_COMPAT_TOOL_PATHS
%%
:
*
}
/proton"
"run"
"
${
portwine_exe
}
"
if
[[
$PW_LOG
!=
1
]]
&&
[[
-
n
$START_PW_TIME_IN_GAME
]]
;
then
debug_timer
--
end
-
s
"PW_TIME_IN_GAME"
PW_TIME_IN_GAME
=
$((
PW_TIME_IN_GAME
/
1000
))
# в секундах
search_desktop_file
fi
done
"
${
STEAM_COMPAT_TOOL_PATHS
%%
:
*
}
/proton"
"run"
"
${
portwine_exe
}
"
else
export
LD_PRELOAD
=
if
[[
"
${
FLATPAK_IN_USE
:-
0
}
"
==
1
]]
;
then
flatpak run ru.linux_gaming.PortProton
"
${
portwine_exe
}
"
else
"
${
PORT_SCRIPTS_PATH
}
/start.sh"
"
${
portwine_exe
}
"
export
LD_PRELOAD
=
if
[[
"
${
FLATPAK_IN_USE
:-
0
}
"
==
1
]]
;
then
flatpak run ru.linux_gaming.PortProton
"
${
portwine_exe
}
"
else
"
${
PORT_SCRIPTS_PATH
}
/start.sh"
"
${
portwine_exe
}
"
fi
fi
fi
}
data_from_portwine/scripts/functions_helper
View file @
109b27b3
...
...
@@ -2886,10 +2886,12 @@ edit_db_from_gui () {
then
for
mod_db
in
"
$@
"
;
do
proxy_mod_db
=
"
${
!mod_db
}
"
if
[[
$proxy_mod_db
=
~
(
${
translations
[Disabled]
}
|
${
translations
[Disable]
}
)
]]
;
then
proxy_mod_db
=
disabled
elif
[[
$proxy_mod_db
=
~
(
${
translations
[Enabled]
}
|
${
translations
[Enable]
}
)
]]
;
then
proxy_mod_db
=
enabled
if
((
${#
translations
[@]
}
>
0
))
;
then
if
[[
$proxy_mod_db
=
~
(
${
translations
[Disabled]
}
|
${
translations
[Disable]
}
)
]]
;
then
proxy_mod_db
=
disabled
elif
[[
$proxy_mod_db
=
~
(
${
translations
[Enabled]
}
|
${
translations
[Enable]
}
)
]]
;
then
proxy_mod_db
=
enabled
fi
fi
if
[[
$(
<
"
${
PORTWINE_DB_FILE
}
"
)
=
~
export
\
${
mod_db
}
=
]]
then
sed
-i
"s|export
${
mod_db
}
=.*|export
${
mod_db
}
=
\"
$proxy_mod_db
\"
|g"
"
${
PORTWINE_DB_FILE
}
"
...
...
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