Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions neo/framework/FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3071,12 +3071,12 @@ void idFileSystemLocal::SetupGameDirectories( const char* gameName )
{
AddGameDirectory( fs_basepath.GetString(), gameName );
}
#ifdef PACKAGED
//#ifdef PACKAGED
if (fs_apppath.GetString()[0])
{
AddGameDirectory(fs_apppath.GetString(), gameName);
}
#endif
//#endif
// setup savepath
if( fs_savepath.GetString()[0] )
{
Expand Down Expand Up @@ -3198,12 +3198,12 @@ void idFileSystemLocal::Init()
{
fs_basepath.SetString( Sys_DefaultBasePath() );
}
#ifdef PACKAGED
//#ifdef PACKAGED
if (fs_apppath.GetString()[0] == '\0')
{
fs_apppath.SetString(Sys_DefaultAppPath());
}
#endif
//#endif
if( fs_savepath.GetString()[0] == '\0' )
{
fs_savepath.SetString( Sys_DefaultSavePath() );
Expand Down
3 changes: 3 additions & 0 deletions neo/sys/posix/posix_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ const char* Sys_DefaultAppPath()
struct stat buf;
if (stat(DEFAULT_BASEPATH"/base/wads/newopt.wad", &buf) == -1)
{
if (stat(DEFAULT_FLAT_BASEPATH"/base/wads/newopt.wad", &buf) == -1) {
return Sys_EXEPath();
}
return DEFAULT_FLAT_BASEPATH;
}
return DEFAULT_BASEPATH;
Expand Down
Loading