From 0e4cdbf43e359dbc945b9c40bb36c84caa1cb6e1 Mon Sep 17 00:00:00 2001 From: JeffRuLz Date: Sun, 9 Jun 2019 13:44:55 -0500 Subject: [PATCH] Delete titles.c --- src/titles.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/titles.c diff --git a/src/titles.c b/src/titles.c deleted file mode 100644 index 72ddf2d..0000000 --- a/src/titles.c +++ /dev/null @@ -1,37 +0,0 @@ -#include "titles.h" -#include -#include -#include - -bool titleIsUsed(u32 tidlow, u32 tidhigh) -{ - bool result = false; - - char path[256]; - sprintf(path, "/title/%08x/%08x/", (unsigned int)tidhigh, (unsigned int)tidlow); - - DIR* dir = opendir(path); - struct dirent* ent; - - if (dir) - { - while ( (ent = readdir(dir)) != NULL ) - { - if (strcmp(".", ent->d_name) == 0 || strcmp("..", ent->d_name) == 0) - continue; - - if (ent->d_type != DT_DIR) - { - if (strstr(ent->d_name, ".app") != NULL) - { - result = true; - break; - } - } - } - } - - closedir(dir); - - return result; -} \ No newline at end of file