summaryrefslogtreecommitdiff
path: root/src/client/Client.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-21 13:06:54 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-21 13:06:54 (GMT)
commit62f067d29ded06fe0ac14c026ae6236549ba21cc (patch)
treeb62abedd3d7d659eb133e077a508725d4444e434 /src/client/Client.cpp
parent41e622ab784b64f5a2514678024ed56a28e36080 (diff)
downloadpowder-62f067d29ded06fe0ac14c026ae6236549ba21cc.zip
powder-62f067d29ded06fe0ac14c026ae6236549ba21cc.tar.gz
Fix stamps page count
Diffstat (limited to 'src/client/Client.cpp')
-rw-r--r--src/client/Client.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp
index a2ae2e7..dbd7888 100644
--- a/src/client/Client.cpp
+++ b/src/client/Client.cpp
@@ -824,37 +824,6 @@ SaveFile * Client::GetStamp(std::string stampID)
{
return NULL;
}
- /*std::ifstream stampFile;
- stampFile.open(std::string(STAMPS_DIR PATH_SEP + stampID + ".stm").c_str(), std::ios::binary);
- if(stampFile.is_open())
- {
- stampFile.seekg(0, std::ios::end);
- size_t fileSize = stampFile.tellg();
- stampFile.seekg(0);
-
- unsigned char * tempData = new unsigned char[fileSize];
- stampFile.read((char *)tempData, fileSize);
- stampFile.close();
-
- SaveFile * file = new SaveFile(std::string(stampID).c_str());
- GameSave * tempSave = NULL;
- try
- {
- GameSave * tempSave = new GameSave((char *)tempData, fileSize);
- file->SetGameSave(tempSave);
- }
- catch (ParseException & e)
- {
- delete[] tempData;
- std::cerr << "Client: Invalid stamp file, " << stampID << " " << std::string(e.what()) << std::endl;
- }
- delete[] tempData;
- return file;
- }
- else
- {
- return NULL;
- }*/
}
void Client::DeleteStamp(std::string stampID)