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:
parent
a058832862
commit
7affd71443
@ -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()))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user