From 0f4073b3f517a2ff3cad7d05cc041e1d1749f649 Mon Sep 17 00:00:00 2001 From: giantpune Date: Tue, 22 Sep 2009 15:21:47 +0000 Subject: [PATCH] add more quotes in the csv file to get rid of the errors when opening in M$ excel --- gui.pnproj | 2 +- source/prompts/gameinfo.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gui.pnproj b/gui.pnproj index 9c2a2593..15312042 100644 --- a/gui.pnproj +++ b/gui.pnproj @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/source/prompts/gameinfo.cpp b/source/prompts/gameinfo.cpp index 7168107f..94b07167 100644 --- a/source/prompts/gameinfo.cpp +++ b/source/prompts/gameinfo.cpp @@ -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"); } }