mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-04 18:45:05 +01:00
add more quotes in the csv file to get rid of the errors when opening in M$ excel
This commit is contained in:
parent
76179fcea2
commit
0f4073b3f5
File diff suppressed because one or more lines are too long
@ -1045,17 +1045,17 @@ bool save_gamelist(int txt) { // save gamelist
|
||||
}
|
||||
else {
|
||||
|
||||
fprintf(f, "ID,Size(GB),Name\n");
|
||||
fprintf(f, "\"ID\",\"Size(GB)\",\"Name\"\n");
|
||||
|
||||
for (i = 0; i < gameCnt ; i++) {
|
||||
struct discHdr* header = &gameList[i];
|
||||
WBFS_GameSize(header->id, &size);
|
||||
if (i<500) {
|
||||
fprintf(f, "%c%c%c%c%c%c,", header->id[0], header->id[1], header->id[2], header->id[3], header->id[4], header->id[5]);
|
||||
fprintf(f, "%.2f,", size);
|
||||
fprintf(f, "\"%s\"",get_title(header));
|
||||
fprintf(f, "\"%c%c%c%c%c%c\",\"%.2f\",\"%s\"\n", header->id[0], header->id[1], header->id[2], header->id[3], header->id[4], header->id[5], size,get_title(header));
|
||||
//fprintf(f, "\"%.2f\",", size);
|
||||
//fprintf(f, "\"%s\"",get_title(header));
|
||||
}
|
||||
fprintf(f, "\n");
|
||||
//fprintf(f, "\n");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user