diff -ur StepMania-3.9-alpha7-src.orig/src/BannerCache.cpp StepMania-3.9-alpha7-src/src/BannerCache.cpp --- StepMania-3.9-alpha7-src.orig/src/BannerCache.cpp 2003-10-25 03:47:07.794475752 -0400 +++ StepMania-3.9-alpha7-src/src/BannerCache.cpp 2003-10-25 03:55:07.939482616 -0400 @@ -20,7 +20,7 @@ #include "Banner.h" -#define CACHE_DIR BASE_PATH "Cache" SLASH +#define CACHE_DIR GENTOO_CACHE_DIR /* Call CacheBanner to cache a banner by path. If the banner is already * cached, it'll be recreated. This is efficient if the banner hasn't changed, diff -ur StepMania-3.9-alpha7-src.orig/src/Song.cpp StepMania-3.9-alpha7-src/src/Song.cpp --- StepMania-3.9-alpha7-src.orig/src/Song.cpp 2003-10-25 03:47:07.966449608 -0400 +++ StepMania-3.9-alpha7-src/src/Song.cpp 2003-10-25 03:55:46.859565864 -0400 @@ -47,7 +47,7 @@ #include -#define CACHE_DIR BASE_PATH "Cache" SLASH +#define CACHE_DIR GENTOO_CACHE_DIR const int FILE_CACHE_VERSION = 129; // increment this when Song or Steps changes to invalidate cache diff -ur StepMania-3.9-alpha7-src.orig/src/SongCacheIndex.cpp StepMania-3.9-alpha7-src/src/SongCacheIndex.cpp --- StepMania-3.9-alpha7-src.orig/src/SongCacheIndex.cpp 2003-10-25 03:47:07.966449608 -0400 +++ StepMania-3.9-alpha7-src/src/SongCacheIndex.cpp 2003-10-25 03:55:51.806813768 -0400 @@ -9,7 +9,7 @@ #include "song.h" #include "arch/arch.h" -#define CACHE_DIR BASE_PATH "Cache" SLASH +#define CACHE_DIR GENTOO_CACHE_DIR SongCacheIndex *SONGINDEX; diff -ur StepMania-3.9-alpha7-src.orig/src/arch/LoadingWindow/LoadingWindow_Gtk.cpp StepMania-3.9-alpha7-src/src/arch/LoadingWindow/LoadingWindow_Gtk.cpp --- StepMania-3.9-alpha7-src.orig/src/arch/LoadingWindow/LoadingWindow_Gtk.cpp 2003-10-25 03:47:07.833469824 -0400 +++ StepMania-3.9-alpha7-src/src/arch/LoadingWindow/LoadingWindow_Gtk.cpp 2003-10-25 03:49:13.073430456 -0400 @@ -16,7 +16,7 @@ try { ASSERT( Handle == NULL ); - Handle = dlopen( DirOfExecutable + "/" + "GtkModule.so", RTLD_NOW ); + Handle = dlopen( CString(GENTOO_LIBDIR) + "/" + "GtkModule.so", RTLD_NOW ); if( Handle == NULL ) RageException::Throw("dlopen(): %s", dlerror()); diff -ur StepMania-3.9-alpha7-src.orig/src/arch/arch.h StepMania-3.9-alpha7-src/src/arch/arch.h --- StepMania-3.9-alpha7-src.orig/src/arch/arch.h 2003-10-25 03:47:07.815472560 -0400 +++ StepMania-3.9-alpha7-src/src/arch/arch.h 2003-10-25 03:48:42.103138656 -0400 @@ -50,7 +50,7 @@ #if defined(_XBOX) #define BASE_PATH "D:\\" #else - #define BASE_PATH "" + #define BASE_PATH GENTOO_BASE_PATH #endif