From 0ca347634e08b100c389480fb613adeb0d39c9f1 Mon Sep 17 00:00:00 2001 From: Couriersud Date: Fri, 12 Feb 2010 19:08:42 +0000 Subject: [PATCH] Minor cleanup - no whatsnew --- src/osd/sdl/sdlfile.c | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/osd/sdl/sdlfile.c b/src/osd/sdl/sdlfile.c index 4938c414c24..6069d0fb2dc 100644 --- a/src/osd/sdl/sdlfile.c +++ b/src/osd/sdl/sdlfile.c @@ -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);