File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -145,25 +145,28 @@ kill -KILL $power_pid 2> /dev/null
145
145
146
146
if [ ! -z " $sshot_pid " ]; then
147
147
wait $sshot_pid
148
+ else
149
+ wait $rpid
148
150
fi
149
151
150
152
[ ! -z " $save " ] && mkdir -p $( dirname " $save " )
151
153
[ ! -z " $sram " ] && mkdir -p $( dirname " $sram " )
152
154
[ ! -z " $screenshot " ] && mkdir -p $( dirname " $screenshot " )
153
155
154
156
# Saves!
155
- [ ! -z " $save " ] && [ -f " $autosave " ] && [ -z " $nosaves " ] && gzip -f " $autosave " && mv -f " $autosave .gz" " $save "
157
+ if [ ! -z " $save " ] && [ -f " $autosave " ] && [ -z " $nosaves " ]; then
158
+ gzip -f " $autosave " && mv -f " $autosave .gz" " $save "
159
+ # Time
160
+ ts2=$( date +" %s" )
161
+ tm=$(( tm + ts2 - ts))
162
+ echo $tm > " $timefile_save "
163
+ fi
156
164
if [ " $corename " == " nestopia" ] && [ " $extension " == " fds" ]; then
157
165
[ ! -z " $sram " ] && [ -f " $rsav " ] && mv -f " $rsav " " $sram "
158
166
else
159
167
[ ! -z " $sram " ] && [ -f " $rsram " ] && mv -f " $rsram " " $sram "
160
168
fi
161
169
162
- # Time
163
- ts2=$( date +" %s" )
164
- tm=$(( tm + ts2 - ts))
165
- echo $tm > " $timefile_save "
166
-
167
170
grep " video_smooth =" /etc/libretro/retroarch.cfg | grep true && current_smooth=true || current_smooth=false
168
171
echo $current_smooth > /etc/libretro/$filter .smooth
169
172
grep " input_overlay_enable =" /etc/libretro/retroarch.cfg | grep true && current_overlay=true || current_overlay=false
You can’t perform that action at this time.
0 commit comments