Skip to content

Commit

Permalink
Remove chainloader deletion logic
Browse files Browse the repository at this point in the history
  • Loading branch information
averne committed Nov 6, 2024
1 parent aa568a5 commit 8949a2e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions sysmodule/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,6 @@ static constinit fz::DisplayController disp = {};
static constinit fz::ProfileManager profile(context, disp);
static constinit fz::Server server (context, profile);

void delete_chainloader() {
auto rc = fsInitialize();
FZ_SCOPEGUARD([] { fsExit(); });

FsFileSystem fs;
if (R_SUCCEEDED(rc))
rc = fsOpenSdCardFileSystem(&fs);
FZ_SCOPEGUARD([&fs] { fsFsClose(&fs); });

char buf[FS_MAX_PATH] = "/atmosphere/contents/010000000000CF12";
fsFsDeleteDirectoryRecursively(&fs, buf);
}

FsFile find_config_file(FsFileSystem fs) {
FsFile fp = {};
char buf[FS_MAX_PATH];
Expand Down Expand Up @@ -223,10 +210,6 @@ int main(int argc, char **argv) {
if (parse_config())
profile.apply();

// Delete the deprecated chainloader binaries if present
// TODO: Remove this in a future release
delete_chainloader();

LOG("Starting server\n");
if (auto rc = server.initialize(); R_FAILED(rc))
diagAbortWithResult(rc);
Expand Down

0 comments on commit 8949a2e

Please sign in to comment.