add more quotes in the csv file to get rid of the errors when opening in M$ excel

This commit is contained in:
giantpune 2009-09-22 15:21:47 +00:00
parent 76179fcea2
commit 0f4073b3f5
2 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -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");
}
}