diff options
Diffstat (limited to 'games/ivan/patches')
-rw-r--r-- | games/ivan/patches/patch-aa | 34 | ||||
-rw-r--r-- | games/ivan/patches/patch-ab | 22 |
2 files changed, 56 insertions, 0 deletions
diff --git a/games/ivan/patches/patch-aa b/games/ivan/patches/patch-aa new file mode 100644 index 00000000000..e524b413e13 --- /dev/null +++ b/games/ivan/patches/patch-aa @@ -0,0 +1,34 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/06/26 03:54:38 ben Exp $ + +--- Main/Source/game.cpp.orig Tue Aug 5 11:31:09 2003 ++++ Main/Source/game.cpp +@@ -82,7 +82,7 @@ bool game::Loading = false; + bool game::InGetCommand = false; + character* game::Petrus = 0; + +-festring game::AutoSaveFileName = game::GetSaveDir() + "AutoSave"; ++festring game::AutoSaveFileName = game::GetSaveDir() + "/AutoSave"; + const char* const game::Alignment[] = { "L++", "L+", "L", "L-", "N+", "N=", "N-", "C+", "C", "C-", "C--" }; + god** game::God; + +@@ -595,9 +595,9 @@ festring game::SaveName(const festring& + festring SaveName = GetSaveDir(); + + if(!Base.GetSize()) +- SaveName << PLAYER->GetAssignedName(); ++ SaveName << "/" << PLAYER->GetAssignedName(); + else +- SaveName << Base; ++ SaveName << "/" << Base; + + for(ushort c = 0; c < SaveName.GetSize(); ++c) + if(SaveName[c] == ' ') +@@ -1911,7 +1911,7 @@ festring game::GetSaveDir() + { + #ifdef LINUX + festring Dir; +- Dir << getenv("HOME") << "/IvanSave/"; ++ Dir << getenv("HOME") << "/IvanSave"; + return Dir; + #endif + diff --git a/games/ivan/patches/patch-ab b/games/ivan/patches/patch-ab new file mode 100644 index 00000000000..60e960ca41e --- /dev/null +++ b/games/ivan/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/06/26 03:54:38 ben Exp $ + +--- FeLib/Source/feio.cpp.orig Sun Aug 3 14:56:18 2003 ++++ FeLib/Source/feio.cpp +@@ -416,7 +416,7 @@ festring iosystem::ContinueMenu(ushort T + int Check = 0; + festring Buffer; + felist List(CONST_S("Choose a file and be sorry:"), TopicColor); +- hFile = _findfirst(festring(DirectoryName + "*.sav").CStr(), &Found); ++ hFile = _findfirst(festring(DirectoryName + "/*.sav").CStr(), &Found); + + if(hFile == -1L) + { +@@ -483,7 +483,7 @@ festring iosystem::ContinueMenu(ushort T + int Check = 0; + festring Buffer; + felist List(CONST_S("Choose a file and be sorry:"), TopicColor); +- Check = findfirst(festring(DirectoryName + "*.sav").CStr(), &Found, FA_HIDDEN | FA_ARCH); ++ Check = findfirst(festring(DirectoryName + "/*.sav").CStr(), &Found, FA_HIDDEN | FA_ARCH); + + if(Check) + { |