From 9c7b59b1bac9621c91e9fa888d81e5eb16866f13 Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 26 Jun 2004 03:54:37 +0000 Subject: Initial import of ivan-0.430, a graphical roguelike featuring deep gameplay. --- games/ivan/patches/patch-aa | 34 ++++++++++++++++++++++++++++++++++ games/ivan/patches/patch-ab | 22 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 games/ivan/patches/patch-aa create mode 100644 games/ivan/patches/patch-ab (limited to 'games/ivan/patches') 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) + { -- cgit v1.2.3