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
f9b8fd06
Commit
f9b8fd06
authored
Feb 12, 2025
by
Alex Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
listInstalledSteamGames
Добавлена проверка "StateFlags" Игры отбираются только при наличии "SharedDepots"
parent
b354de77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
add_in_steam.sh
data_from_portwine/scripts/add_in_steam.sh
+5
-3
No files found.
data_from_portwine/scripts/add_in_steam.sh
View file @
f9b8fd06
...
...
@@ -204,10 +204,12 @@ listInstalledSteamGames() {
jq -n '[]'
else
for manifest_file in "
${
manifests
[@]
}
"; do
name="
$(
grep
-Po
'"name"\s+"\K[^"]+'
"
$manifest_file
"
)
";
if [[ ! "
${
name
}
" =~ ^(Proton |Steam Linux Runtime|Steamworks Common) ]]; then
name="
$(
grep
-Po
'"name"\s+"\K[^"]+'
"
${
manifest_file
}
"
)
";
stateflags="
$(
grep
-Po
'"StateFlags"\s+"\K\d+'
"
${
manifest_file
}
"
)
"
# if [[ ! "
${
name
}
" =~ ^(Proton |Steam Linux Runtime|Steamworks Common) ]]; then
if ((stateflags & 4)) && grep -q '"SharedDepots"' "
${
manifest_file
}
"; then
jq -n \
--arg id "
$(
grep
-Po
'"appid"\s+"\K\d+'
"
$
manifest_file
"
)
" \
--arg id "
$(
grep
-Po
'"appid"\s+"\K\d+'
"
$
{
manifest_file
}
"
)
" \
--arg name "
${
name
}
" \
'{id:
$id
, name:
$name
}'
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