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
f4ca43e4
Commit
f4ca43e4
authored
Dec 28, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update create shortcut for EGS
parent
1a098955
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
functions_helper
data_from_portwine/scripts/functions_helper
+9
-16
No files found.
data_from_portwine/scripts/functions_helper
View file @
f4ca43e4
...
...
@@ -4375,24 +4375,17 @@ portwine_launch () {
[[
$PW_LOG
!=
1
]]
&&
debug_timer
--start
-s
"PW_TIME_IN_GAME"
if
[[
-n
"
${
LAUNCH_URI
}
"
]]
;
then
pw_run start /high /b
"
${
LAUNCH_URI
}
"
&
unset
portwine_eg
unset
GAMEPID
while
true
;
do
if
[[
-z
$portwine_eg
]]
;
then
if
[[
$portwine_exe
=
~ .bat
$
]]
;
then
portwine_eg
=
$(
grep
.exe
"
$portwine_exe
"
|
tail
-n
1
)
portwine_eg
=
${
portwine_eg
//.exe/
}
portwine_eg
=
${
portwine_eg
//[[
:blank:]]
*/
}
portwine_eg
=
${
portwine_eg
//*[[
:punct:]]/
}
portwine_eg
=
${
portwine_eg
}
.exe
else
portwine_eg
=
$(
basename
"
$portwine_exe
"
)
fi
fi
sleep
1
if
[[
-z
$GAMEPID
]]
;
then
GAMEPID
=
"
$(
pgrep
-fa
"
$portwine_eg
"
|
grep
-v
"start.sh"
|
awk
'{print $1}'
)
"
sleep
5
if
[[
-z
"
$GAMEPID
"
]]
;
then
GAMEPID
=
"
$(
pgrep
-fa
'EpicPortal|epicusername|epiclocale|AUTH_LOGIN'
|
awk
'{print $1}'
)
"
else
waitpid
"
$GAMEPID
"
&&
break
if
waitpid
"
$GAMEPID
"
;
then
sleep
1
GAMEPID
=
"
$(
pgrep
-fa
'EpicPortal|epicusername|epiclocale|AUTH_LOGIN'
|
awk
'{print $1}'
)
"
[[
-z
"
$GAMEPID
"
]]
&&
break
||
continue
fi
fi
done
else
...
...
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