… | |
… | |
1219 | $map->{last_save} = $cf::RUNTIME; |
1219 | $map->{last_save} = $cf::RUNTIME; |
1220 | $map->last_access ($cf::RUNTIME); |
1220 | $map->last_access ($cf::RUNTIME); |
1221 | |
1221 | |
1222 | if ($map->should_reset) { |
1222 | if ($map->should_reset) { |
1223 | $map->reset; |
1223 | $map->reset; |
|
|
1224 | undef $guard; |
1224 | $map = find_map $path; |
1225 | $map = cf::map::find_map ($path) |
|
|
1226 | or return; |
1225 | } |
1227 | } |
1226 | |
1228 | |
1227 | $cf::MAP{$key} = $map |
1229 | $cf::MAP{$key} = $map |
1228 | } |
1230 | } |
1229 | } |
1231 | } |
… | |
… | |
2189 | or warn "ERROR: unable to write runtime file: $!"; |
2191 | or warn "ERROR: unable to write runtime file: $!"; |
2190 | })->(); |
2192 | })->(); |
2191 | }, |
2193 | }, |
2192 | ); |
2194 | ); |
2193 | |
2195 | |
|
|
2196 | END { cf::emergency_save } |
|
|
2197 | |
2194 | 1 |
2198 | 1 |
2195 | |
2199 | |