forked from len0rd/rockbox
sdl: Remove platform-specific code
Also nuke the Makefiles of Duke Nukem 3D (pun intended). Change-Id: If2707cf079bfb9299347f9c5f980780134b6ecda
This commit is contained in:
parent
e19857e712
commit
183e45e8d0
49 changed files with 53 additions and 2191 deletions
|
@ -3992,7 +3992,6 @@ CheckForEpisodes (void)
|
|||
int statbuf;
|
||||
|
||||
// On Linux like systems, the configdir defaults to $HOME/.wolf4sdl
|
||||
#if !defined(_WIN32) && !defined(_arch_dreamcast)
|
||||
if(configdir[0] == 0)
|
||||
{
|
||||
// Set config location to home directory for multi-user support
|
||||
|
@ -4008,18 +4007,13 @@ CheckForEpisodes (void)
|
|||
}
|
||||
snprintf(configdir, sizeof(configdir), "%s" WOLFDIR, homedir);
|
||||
}
|
||||
#endif
|
||||
|
||||
if(configdir[0] != 0)
|
||||
{
|
||||
// Ensure config directory exists and create if necessary
|
||||
if(stat(configdir, &statbuf) != 0)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
if(_mkdir(configdir) != 0)
|
||||
#else
|
||||
if(mkdir(configdir) != 0)
|
||||
#endif
|
||||
{
|
||||
Quit("The configuration directory \"%s\" could not be created.", configdir);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue