mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-31 14:58:22 -04:00
Prevent automatic placeholder creation on open
This commit is contained in:
parent
f080f6793b
commit
6e5c0bde51
7 changed files with 55 additions and 24 deletions
|
@ -100,12 +100,9 @@ namespace sts::ncm::impl {
|
|||
char placeholder_path[FS_MAX_PATH] = {0};
|
||||
|
||||
this->GetPlaceHolderPath(placeholder_path, placeholder_id);
|
||||
FILE* f = fopen(placeholder_path, "r+b");
|
||||
|
||||
if (f == nullptr) {
|
||||
debug::DebugLog("Failed to open placeholder %s\n", placeholder_path);
|
||||
return fsdevGetLastResult();
|
||||
}
|
||||
FILE* f = nullptr;
|
||||
R_TRY(OpenFile(&f, placeholder_path, FS_OPEN_WRITE));
|
||||
|
||||
*out_handle = f;
|
||||
return ResultSuccess;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue