Minor cleanup - no whatsnew

This commit is contained in:
Couriersud 2010-02-12 19:08:42 +00:00
parent 14ebd101c1
commit 0ca347634e

View File

@ -34,6 +34,10 @@
#include "osdcore.h"
#include "sdlos.h"
//============================================================
// CONSTANTS
//============================================================
#if defined(SDLMAME_WIN32) || defined(SDLMAME_OS2)
#define PATHSEPCH '\\'
#define INVPATHSEPCH '/'
@ -42,10 +46,9 @@
#define INVPATHSEPCH '\\'
#endif
static UINT32 create_path_recursive(char *path);
#define NO_ERROR (0)
//============================================================
// TYPE DEFINITIONS
//============================================================
@ -57,6 +60,19 @@ struct _osd_file
};
//============================================================
// Global variables
//============================================================
char sdl_cwd[512];
//============================================================
// Static variables
//============================================================
static UINT32 create_path_recursive(char *path);
//============================================================
// error_to_file_error
// (does filling this out on non-Windows make any sense?)
@ -691,7 +707,12 @@ file_error osd_rmdir(const char *dir)
return filerr;
}
char sdl_cwd[512];
//============================================================
// osd_get_emulator_directory
//============================================================
void osd_get_emulator_directory(char *dir, size_t dir_size)
{
strncpy(dir, sdl_cwd, dir_size);