From 0db6ec4994d077cca6c104d339aac2ccca93d3e7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 3 Dec 2003 20:34:04 +0000 Subject: [PATCH] do this without GetFilePointer --- stepmania/src/Bookkeeper.cpp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/stepmania/src/Bookkeeper.cpp b/stepmania/src/Bookkeeper.cpp index ca81423cd4..15bd292c1b 100644 --- a/stepmania/src/Bookkeeper.cpp +++ b/stepmania/src/Bookkeeper.cpp @@ -95,11 +95,18 @@ void Bookkeeper::ReadFromDisk() RageFile file(COINS_DAT, "r"); if (file.IsOpen()) { - FILE *fp = file.GetFilePointer(); - + const CString line = file.GetLine(); + + vector parts; + split( line, " ", parts, true ); + + int p = 0; for (int i=0; iTrace("XXXX %i %i: %i", i, j, m_iCoinsByHourForYear[i][j] ); + } } } @@ -122,11 +129,11 @@ void Bookkeeper::WriteToDisk() if (file.IsOpen()) { - FILE *fp = file.GetFilePointer(); - + CString line; for (int i=0; i