Skip to content

Commit

Permalink
Use 'Warzone 2100 master' as the default directory, and the default c…
Browse files Browse the repository at this point in the history
…rash handler (on windows) directory.

fixes ticket:2317
  • Loading branch information
buginator committed Nov 15, 2010
1 parent bc295c0 commit 341d4d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/exceptionhandler/exchndl.c
Expand Up @@ -1203,7 +1203,7 @@ void ExchndlSetup()
// NOTE: CSIDL_PERSONAL = C:\Users\user name\Documents
if ( SUCCEEDED( SHGetFolderPathA( NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, miniDumpPath ) ))
{
PathAppend( miniDumpPath, TEXT( "Warzone 2100 2.3\\logs" ) );
PathAppend( miniDumpPath, TEXT( "Warzone 2100 master\\logs" ) );

if( !PathFileExists( miniDumpPath ) )
{
Expand Down
6 changes: 3 additions & 3 deletions src/main.c
Expand Up @@ -93,13 +93,13 @@ typedef enum _focus_state
} FOCUS_STATE;

#if defined(WZ_OS_WIN)
# define WZ_WRITEDIR "Warzone 2100 Trunk"
# define WZ_WRITEDIR "Warzone 2100 master"
#elif defined(WZ_OS_MAC)
# include <CoreServices/CoreServices.h>
# include <unistd.h>
# define WZ_WRITEDIR "Warzone 2100 Trunk"
# define WZ_WRITEDIR "Warzone 2100 master"
#else
# define WZ_WRITEDIR ".warzone2100-trunk"
# define WZ_WRITEDIR ".warzone2100-master"
#endif

char datadir[PATH_MAX] = ""; // Global that src/clparse.c:ParseCommandLine can write to, so it can override the default datadir on runtime. Needs to be empty on startup for ParseCommandLine to work!
Expand Down

0 comments on commit 341d4d3

Please sign in to comment.