Skip to content

Commit

Permalink
Don’t create exta directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed Dec 11, 2024
1 parent 7e16bcf commit d568517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CkmameCache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ void CkmameCache::CacheDirectory::initialize() {
return;
}
initialized = true;
if (!configuration.fix_romset) {
if (!configuration.fix_romset || where == FILE_EXTRA) {
std::error_code ec;
if (!std::filesystem::exists(name, ec)) {
return; /* we won't write any files, so DB would remain empty */
return; /* we won't create any files here, so DB would remain empty */
}
}
if (!ensure_dir(name, false)) {
Expand Down

0 comments on commit d568517

Please sign in to comment.