So I'm trying to set up a system for loading save games, so for starters I just want to have the program open up the saved text file, read it into a string variable line by line so I can handle the information. I set up a simple test for functionality to display the read in information, but I can't get it to work due to the mismatched type.
Anyways, this is what I'm working with right now:
Code: Select all
IFileSystem* loadGame;
IReadFile* gameSave = loadGame->createAndOpenFile("\Saves\SaveState.ssf");
void *dataLocation;
char temp = gameSave->read(dataLocation, 8);
then later for debugging:
guienv->addStaticText(temp, rect<s32>(10,10,260,22), true);
But this causes a "no suitable conversion between type char and const wchar_t". This is super frustrating.