mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-14 00:56:35 +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));
|
R_TRY(OpenSdCardCodeOrCodeFileSystemImpl(std::addressof(fsa), path, program_id));
|
||||||
this->code_fs.emplace(std::move(fsa), program_id, is_specific);
|
this->code_fs.emplace(std::move(fsa), program_id, is_specific);
|
||||||
|
|
||||||
|
this->program_id = program_id;
|
||||||
this->initialized = true;
|
this->initialized = true;
|
||||||
|
|
||||||
return ResultSuccess();
|
return ResultSuccess();
|
||||||
|
|
|
@ -116,7 +116,6 @@ namespace ams::util {
|
||||||
|
|
||||||
/* Find a free value. */
|
/* Find a free value. */
|
||||||
for (size_t i = 0; i < N; i++) {
|
for (size_t i = 0; i < N; i++) {
|
||||||
this->keys[i] = key;
|
|
||||||
if (!this->keys[i]) {
|
if (!this->keys[i]) {
|
||||||
this->keys[i] = key;
|
this->keys[i] = key;
|
||||||
new (GetPointer(this->values[i])) Value(std::forward<Args>(args)...);
|
new (GetPointer(this->values[i])) Value(std::forward<Args>(args)...);
|
||||||
|
|
Loading…
Reference in a new issue