Skip to content

Commit f469f5c

Browse files
committed
dump only usr folder from PlayOnline Viewer caches
1 parent 196a330 commit f469f5c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/pfs2tar.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ static int do_wrapped_ftw(path_info_t *pi, char *path, wrapped_ftw_callback fn)
5555
}
5656
path[j] = '/';
5757
strcpy(path + j + 1, de.name);
58+
printf("path: %s\n", path);
59+
if (strncmp(path, "pfs0:/usr", 9))
60+
continue;
5861
if ((r = do_wrapped_ftw(pi, path, fn))) {
5962
iomanX_close(d);
6063
return r;
@@ -280,7 +283,8 @@ static int tar_part(void)
280283
int result;
281284
iox_dirent_t de;
282285
while ((result = iomanX_dread(dh, &de)) && result != -1) {
283-
if (de.stat.mode == 0x0100) {
286+
printf("(%s) %s\n", "hdd0:", de.name);
287+
if (!strcmp(de.name, "PP.SLPS-20200.1000.POLVIEWER") || !strcmp(de.name, "PP.SCUS-97269.1000.POLVIEWER") || !strcmp(de.name, "PP.SLPM-62134.1000.POLVIEWER") || !strcmp(de.name, "PP.SCUS-97272.1000.POLVIEWER")) {
284288
char mount_point[256];
285289
char prefix_path[256];
286290

0 commit comments

Comments
 (0)