diff options
author | krzys-h <krzys_h@interia.pl> | 2014-10-27 22:08:49 +0100 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2014-10-27 22:08:49 +0100 |
commit | d75efcc5b272502e9a916610d1002145f4074638 (patch) | |
tree | 291216c7eabc2db058aaec58961028dbac9b1f6e /src/ui | |
parent | 11854dc89ed5925d39634de12048cee9e0f7547a (diff) | |
download | colobot-d75efcc5b272502e9a916610d1002145f4074638.tar.gz colobot-d75efcc5b272502e9a916610d1002145f4074638.tar.bz2 colobot-d75efcc5b272502e9a916610d1002145f4074638.zip |
Fixed problems with loading save screenshots (issue #335)
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/maindialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp index c607d7a..94d6f0c 100644 --- a/src/ui/maindialog.cpp +++ b/src/ui/maindialog.cpp @@ -4165,6 +4165,8 @@ void CMainDialog::IOUpdateList() return; std::string filename = (m_saveList.at(sel) / "screen.png").make_preferred().string(); + boost::replace_all(filename, GetSavegameDir(), GetPHYSFSSavegameDir()); //TODO: Refactor everything to PHYSFS, see issue #334 + filename = "../"+filename; if ( m_phase == PHASE_WRITE || m_phase == PHASE_WRITEs ) { if ( sel < max-1 ) @@ -6052,7 +6054,7 @@ bool CMainDialog::GetHimselfDamage() -// Saves the personalized player. +// the personalized player. void CMainDialog::WriteGamerPerso(char *gamer) { |