… | |
… | |
1175 | $map->{load_path} = $path; |
1175 | $map->{load_path} = $path; |
1176 | |
1176 | |
1177 | $map |
1177 | $map |
1178 | } |
1178 | } |
1179 | |
1179 | |
|
|
1180 | sub find_map; |
1180 | sub find_map { |
1181 | sub find_map { |
1181 | my ($path, $origin) = @_; |
1182 | my ($path, $origin) = @_; |
1182 | |
1183 | |
1183 | #warn "find_map<$path,$origin>\n";#d# |
1184 | #warn "find_map<$path,$origin>\n";#d# |
1184 | |
1185 | |
… | |
… | |
1220 | $map->last_access ($cf::RUNTIME); |
1221 | $map->last_access ($cf::RUNTIME); |
1221 | |
1222 | |
1222 | if ($map->should_reset) { |
1223 | if ($map->should_reset) { |
1223 | $map->reset; |
1224 | $map->reset; |
1224 | undef $guard; |
1225 | undef $guard; |
1225 | $map = find_map $path; |
1226 | $map = find_map $path |
|
|
1227 | or return; |
1226 | } |
1228 | } |
1227 | |
1229 | |
1228 | $cf::MAP{$key} = $map |
1230 | $cf::MAP{$key} = $map |
1229 | } |
1231 | } |
1230 | } |
1232 | } |
… | |
… | |
2190 | or warn "ERROR: unable to write runtime file: $!"; |
2192 | or warn "ERROR: unable to write runtime file: $!"; |
2191 | })->(); |
2193 | })->(); |
2192 | }, |
2194 | }, |
2193 | ); |
2195 | ); |
2194 | |
2196 | |
|
|
2197 | END { cf::emergency_save } |
|
|
2198 | |
2195 | 1 |
2199 | 1 |
2196 | |
2200 | |