forked from Mirror/GodMode9
Show progress when parsing titles
This commit is contained in:
parent
19bae17b7d
commit
51a262db73
@ -49,7 +49,7 @@
|
||||
#endif
|
||||
|
||||
// GodMode9 version
|
||||
#define VERSION "1.1.4"
|
||||
#define VERSION "1.1.5"
|
||||
|
||||
// Maximum payload size (arbitrary value!)
|
||||
#define SELF_MAX_SIZE (320 * 1024) // 320kB
|
||||
|
@ -1,11 +1,14 @@
|
||||
#include "fsgame.h"
|
||||
#include "gameutil.h"
|
||||
#include "ui.h"
|
||||
|
||||
void SetDirGoodNames(DirStruct* contents) {
|
||||
char goodname[256];
|
||||
ShowProgress(0, 0, "");
|
||||
for (u32 s = 0; s < contents->n_entries; s++) {
|
||||
DirEntry* entry = &(contents->entry[s]);
|
||||
u32 plen = strnlen(entry->path, 256);
|
||||
if (!ShowProgress(s+1, contents->n_entries, entry->path)) break;
|
||||
if ((GetGoodName(goodname, entry->path, false) != 0) ||
|
||||
(plen + 1 + strnlen(goodname, 256) + 1 > 256))
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user