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
91a220ac
Commit
91a220ac
authored
Oct 06, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Time= variable is commented out
parent
bd1d62bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
functions_helper
data_from_portwine/scripts/functions_helper
+5
-5
start.sh
data_from_portwine/scripts/start.sh
+3
-3
No files found.
data_from_portwine/scripts/functions_helper
View file @
91a220ac
...
...
@@ -1337,19 +1337,19 @@ stop_portwine () {
fi
EXEC_DESKTOP_NEW="
${
EXEC_DESKTOP
//\
"/}"
fi
if [[
$line
=~ ^Time= ]] ; then
if [[
$line
=~ ^
#
Time= ]] ; then
WITH_TIME=
"1"
TIME_CURRENT=
${
line
//Time=/
}
TIME_CURRENT=
${
line
//
#
Time=/
}
TIME_TOTAL=
$((
TIME_CURRENT
+
PW_TIME_IN_GAME
))
fi
done <
"
$desktop_file
"
if [[
$WITH_TIME
!= 1 ]] ; then
echo
"Time=0"
>>
"
$desktop_file
"
echo
"
#
Time=0"
>>
"
$desktop_file
"
fi
unset WITH_TIME
if [[
$portwine_exe
==
"
$EXEC_DESKTOP_NEW
"
]] ; then
sed -i
'/^Time=/d'
"
$desktop_file
"
echo
"Time=
$TIME_TOTAL
"
>>
"
$desktop_file
"
sed -i
'/^
#
Time=/d'
"
$desktop_file
"
echo
"
#
Time=
$TIME_TOTAL
"
>>
"
$desktop_file
"
fi
fi
fi
...
...
data_from_portwine/scripts/start.sh
View file @
91a220ac
...
...
@@ -617,15 +617,15 @@ else
while
IFS
=
read
-r
line
;
do
[[
$line
=
~ ^Exec
=
]]
&&
PW_NAME_D_ICON[
"
$AMOUNT_GENERATE_BUTTONS
"
]=
"
${
line
//Exec=/
}
"
[[
$line
=
~ ^Icon
=
]]
&&
PW_ICON_PATH[
"
$AMOUNT_GENERATE_BUTTONS
"
]=
"
${
line
//Icon=/
}
"
if
[[
$line
=
~ ^Time
=
]]
;
then
if
[[
$line
=
~ ^
#
Time
=
]]
;
then
WITH_TIME
=
"1"
PW_GAME_TIME[
"
$AMOUNT_GENERATE_BUTTONS
"
]=
"
${
line
//Time=/
}
"
PW_GAME_TIME[
"
$AMOUNT_GENERATE_BUTTONS
"
]=
"
${
line
//
#
Time=/
}
"
fi
done
<
"
$desktop_file
"
PW_ALL_DF[
"
$AMOUNT_GENERATE_BUTTONS
"
]=
"
${
desktop_file
//
"
${
PORT_WINE_PATH
}
"
\//
}
"
# Чтобы новый ярлык показало первым при первом запуске, потом уже по времени
if
[[
$WITH_TIME
!=
1
]]
;
then
echo
"Time=0"
>>
"
$desktop_file
"
echo
"
#
Time=0"
>>
"
$desktop_file
"
PW_AMOUNT_NO_TIME+
=(
$AMOUNT_GENERATE_BUTTONS
)
else
PW_AMOUNT_WITH_TIME+
=(
$AMOUNT_GENERATE_BUTTONS
)
...
...
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