summaryrefslogtreecommitdiff
path: root/src/client/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Client.cpp')
-rw-r--r--src/client/Client.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp
index 0f9de28..4c7ac43 100644
--- a/src/client/Client.cpp
+++ b/src/client/Client.cpp
@@ -909,6 +909,20 @@ RequestStatus Client::UploadSave(SaveInfo & save)
return RequestFailure;
}
+void Client::MoveStampToFront(std::string stampID)
+{
+ for (std::list<std::string>::iterator iterator = stampIDs.begin(), end = stampIDs.end(); iterator != end; ++iterator)
+ {
+ if((*iterator) == stampID)
+ {
+ stampIDs.erase(iterator);
+ break;
+ }
+ }
+ stampIDs.push_front(stampID);
+ updateStamps();
+}
+
SaveFile * Client::GetStamp(std::string stampID)
{
std::string stampFile = std::string(STAMPS_DIR PATH_SEP + stampID + ".stm");