1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

(linux) Saved games are not in the data directory.

This commit is contained in:
Frank Zago 2010-01-25 03:09:42 +00:00
parent a058832862
commit 7affd71443

View File

@ -1143,7 +1143,7 @@ int CPlayerInterface::getLastIndex( std::string namePrefix)
std::map<std::time_t, int> dates; //save number => datestamp std::map<std::time_t, int> dates; //save number => datestamp
directory_iterator enddir; directory_iterator enddir;
for (directory_iterator dir(DATA_DIR "/Games"); dir!=enddir; dir++) for (directory_iterator dir(GVCMIDirs.UserPath + "/Games"); dir!=enddir; dir++)
{ {
if(is_regular(dir->status())) if(is_regular(dir->status()))
{ {