mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-23 04:12:02 +00:00
fs: fix bugs with external code filesystems
This commit is contained in:
parent
03408f404a
commit
3cca3801ca
2 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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)...);
|
||||
|
|
Loading…
Reference in a new issue