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.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp
index 511e659..b35c292 100644
--- a/src/client/Client.cpp
+++ b/src/client/Client.cpp
@@ -850,6 +850,8 @@ void Client::DeleteStamp(std::string stampID)
return;
}
}
+
+ updateStamps();
}
std::string Client::AddStamp(GameSave * saveData)
@@ -911,7 +913,7 @@ void Client::updateStamps()
return;
}
-void Client::UnDeleteStamps()
+void Client::RescanStamps()
{
DIR * directory;
struct dirent * entry;
@@ -921,7 +923,7 @@ void Client::UnDeleteStamps()
stampIDs.clear();
while (entry = readdir(directory))
{
- if(strncmp(entry->d_name, "..", 3) && strncmp(entry->d_name, ".", 2) && strstr(entry->d_name, ".stm"))
+ if(strncmp(entry->d_name, "..", 3) && strncmp(entry->d_name, ".", 2) && strstr(entry->d_name, ".stm") && strlen(entry->d_name) == 14)
{
char stampname[11];
strncpy(stampname, entry->d_name, 10);