fs: fix bugs with external code filesystems

This commit is contained in:
Michael Scire 2020-03-20 11:47:19 -07:00
parent 03408f404a
commit 3cca3801ca
2 changed files with 1 additions and 1 deletions

View file

@ -241,6 +241,7 @@ namespace ams::fs {
R_TRY(OpenSdCardCodeOrCodeFileSystemImpl(std::addressof(fsa), path, program_id));
this->code_fs.emplace(std::move(fsa), program_id, is_specific);
this->program_id = program_id;
this->initialized = true;
return ResultSuccess();

View file

@ -116,7 +116,6 @@ namespace ams::util {
/* Find a free value. */
for (size_t i = 0; i < N; i++) {
this->keys[i] = key;
if (!this->keys[i]) {
this->keys[i] = key;
new (GetPointer(this->values[i])) Value(std::forward<Args>(args)...);