@@ -43,15 +43,15 @@ void Utils::InitializeSdThreadFunc(void *args) {
43
43
44
44
/* Check for MitM flags. */
45
45
FsDir titles_dir;
46
- if (R_SUCCEEDED (fsFsOpenDirectory (&g_sd_filesystem, " /atmosphere /titles" , FS_DIROPEN_DIRECTORY, &titles_dir))) {
46
+ if (R_SUCCEEDED (fsFsOpenDirectory (&g_sd_filesystem, " /ReiNX /titles" , FS_DIROPEN_DIRECTORY, &titles_dir))) {
47
47
FsDirectoryEntry dir_entry;
48
48
FsFile f;
49
49
u64 read_entries;
50
50
while (R_SUCCEEDED ((fsDirRead (&titles_dir, 0 , &read_entries, 1 , &dir_entry))) && read_entries == 1 ) {
51
51
if (strlen (dir_entry.name ) == 0x10 && IsHexadecimal (dir_entry.name )) {
52
52
u64 title_id = strtoul (dir_entry.name , NULL , 16 );
53
53
char title_path[FS_MAX_PATH] = {0 };
54
- strcpy (title_path, " /atmosphere /titles/" );
54
+ strcpy (title_path, " /ReiNX /titles/" );
55
55
strcat (title_path, dir_entry.name );
56
56
strcat (title_path, " /fsmitm.flag" );
57
57
if (R_SUCCEEDED (fsFsOpenFile (&g_sd_filesystem, title_path, FS_OPEN_READ, &f))) {
@@ -87,9 +87,9 @@ Result Utils::OpenSdFileForAtmosphere(u64 title_id, const char *fn, int flags, F
87
87
88
88
char path[FS_MAX_PATH];
89
89
if (*fn == ' /' ) {
90
- snprintf (path, sizeof (path), " /atmosphere /titles/%016lx%s" , title_id, fn);
90
+ snprintf (path, sizeof (path), " /ReiNX /titles/%016lx%s" , title_id, fn);
91
91
} else {
92
- snprintf (path, sizeof (path), " /atmosphere /titles/%016lx/%s" , title_id, fn);
92
+ snprintf (path, sizeof (path), " /ReiNX /titles/%016lx/%s" , title_id, fn);
93
93
}
94
94
return fsFsOpenFile (&g_sd_filesystem, path, flags, out);
95
95
}
@@ -117,9 +117,9 @@ Result Utils::OpenSdDirForAtmosphere(u64 title_id, const char *path, FsDir *out)
117
117
118
118
char safe_path[FS_MAX_PATH];
119
119
if (*path == ' /' ) {
120
- snprintf (safe_path, sizeof (safe_path), " /atmosphere /titles/%016lx%s" , title_id, path);
120
+ snprintf (safe_path, sizeof (safe_path), " /ReiNX /titles/%016lx%s" , title_id, path);
121
121
} else {
122
- snprintf (safe_path, sizeof (safe_path), " /atmosphere /titles/%016lx/%s" , title_id, path);
122
+ snprintf (safe_path, sizeof (safe_path), " /ReiNX /titles/%016lx/%s" , title_id, path);
123
123
}
124
124
return fsFsOpenDirectory (&g_sd_filesystem, safe_path, FS_DIROPEN_DIRECTORY | FS_DIROPEN_FILE, out);
125
125
}
@@ -136,19 +136,19 @@ Result Utils::OpenRomFSSdDir(u64 title_id, const char *path, FsDir *out) {
136
136
Result Utils::OpenRomFSFile (FsFileSystem *fs, u64 title_id, const char *fn, int flags, FsFile *out) {
137
137
char path[FS_MAX_PATH];
138
138
if (*fn == ' /' ) {
139
- snprintf (path, sizeof (path), " /atmosphere /titles/%016lx/romfs%s" , title_id, fn);
139
+ snprintf (path, sizeof (path), " /ReiNX /titles/%016lx/romfs%s" , title_id, fn);
140
140
} else {
141
- snprintf (path, sizeof (path), " /atmosphere /titles/%016lx/romfs/%s" , title_id, fn);
141
+ snprintf (path, sizeof (path), " /ReiNX /titles/%016lx/romfs/%s" , title_id, fn);
142
142
}
143
143
return fsFsOpenFile (fs, path, flags, out);
144
144
}
145
145
146
146
Result Utils::OpenRomFSDir (FsFileSystem *fs, u64 title_id, const char *path, FsDir *out) {
147
147
char safe_path[FS_MAX_PATH];
148
148
if (*path == ' /' ) {
149
- snprintf (safe_path, sizeof (safe_path), " /atmosphere /titles/%016lx/romfs%s" , title_id, path);
149
+ snprintf (safe_path, sizeof (safe_path), " /ReiNX /titles/%016lx/romfs%s" , title_id, path);
150
150
} else {
151
- snprintf (safe_path, sizeof (safe_path), " /atmosphere /titles/%016lx/romfs/%s" , title_id, path);
151
+ snprintf (safe_path, sizeof (safe_path), " /ReiNX /titles/%016lx/romfs/%s" , title_id, path);
152
152
}
153
153
return fsFsOpenDirectory (fs, safe_path, FS_DIROPEN_DIRECTORY | FS_DIROPEN_FILE, out);
154
154
}
0 commit comments