Small fix

This commit is contained in:
fed 2022-09-11 20:13:56 +02:00
parent 99b3831dd8
commit 19c3219f96
2 changed files with 10 additions and 8 deletions

View File

@ -228,16 +228,18 @@ namespace fastfiles
return INVALID_HANDLE_VALUE; return INVALID_HANDLE_VALUE;
} }
if (name.ends_with(".ff")) auto handle = sys_createfile_hook.invoke<HANDLE>(folder, base_filename);
if (handle != INVALID_HANDLE_VALUE)
{ {
const auto handle = find_fastfile(name, true); return handle;
if (handle != INVALID_HANDLE_VALUE)
{
return handle;
}
} }
return sys_createfile_hook.invoke<HANDLE>(folder, base_filename); if (name.ends_with(".ff"))
{
handle = find_fastfile(name, true);
}
return handle;
} }
template <typename T> template <typename T>

View File

@ -328,7 +328,7 @@ namespace updater
{ {
return update_data.access<bool>([](update_data_t& data_) return update_data.access<bool>([](update_data_t& data_)
{ {
return data_.check.done; return data_.check.done && game::Sys_IsDatabaseReady2();
}); });
} }