summaryrefslogtreecommitdiff
path: root/src/client/Client.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-08 20:32:10 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-08 20:32:10 (GMT)
commitd352a10d802e7358c5034f500bfec21cc55e7e6e (patch)
tree36a4c2e3cd2ec200aa716cb194cd694c8fdcb565 /src/client/Client.cpp
parent435c680f010508eced376dbe7e6fd659fbbb3415 (diff)
downloadpowder-d352a10d802e7358c5034f500bfec21cc55e7e6e.zip
powder-d352a10d802e7358c5034f500bfec21cc55e7e6e.tar.gz
PTsave opening
Diffstat (limited to 'src/client/Client.cpp')
-rw-r--r--src/client/Client.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp
index 740f1d6..eb55f8e 100644
--- a/src/client/Client.cpp
+++ b/src/client/Client.cpp
@@ -741,6 +741,17 @@ unsigned char * Client::GetSaveData(int saveID, int saveDate, int & dataLength)
return NULL;
}
+std::vector<unsigned char> Client::GetSaveData(int saveID, int saveDate)
+{
+ int dataSize;
+ unsigned char * data = GetSaveData(saveID, saveDate, dataSize);
+
+ std::vector<unsigned char> saveData(data, data+dataSize);
+
+ delete[] data;
+ return saveData;
+}
+
LoginStatus Client::Login(string username, string password, User & user)
{
lastError = "";