mirror of
https://github.com/holub/mame
synced 2025-10-07 17:27:06 +03:00
Minor cleanup - no whatsnew
This commit is contained in:
parent
14ebd101c1
commit
0ca347634e
@ -34,6 +34,10 @@
|
|||||||
#include "osdcore.h"
|
#include "osdcore.h"
|
||||||
#include "sdlos.h"
|
#include "sdlos.h"
|
||||||
|
|
||||||
|
//============================================================
|
||||||
|
// CONSTANTS
|
||||||
|
//============================================================
|
||||||
|
|
||||||
#if defined(SDLMAME_WIN32) || defined(SDLMAME_OS2)
|
#if defined(SDLMAME_WIN32) || defined(SDLMAME_OS2)
|
||||||
#define PATHSEPCH '\\'
|
#define PATHSEPCH '\\'
|
||||||
#define INVPATHSEPCH '/'
|
#define INVPATHSEPCH '/'
|
||||||
@ -42,10 +46,9 @@
|
|||||||
#define INVPATHSEPCH '\\'
|
#define INVPATHSEPCH '\\'
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static UINT32 create_path_recursive(char *path);
|
|
||||||
|
|
||||||
#define NO_ERROR (0)
|
#define NO_ERROR (0)
|
||||||
|
|
||||||
|
|
||||||
//============================================================
|
//============================================================
|
||||||
// TYPE DEFINITIONS
|
// 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
|
// error_to_file_error
|
||||||
// (does filling this out on non-Windows make any sense?)
|
// (does filling this out on non-Windows make any sense?)
|
||||||
@ -691,7 +707,12 @@ file_error osd_rmdir(const char *dir)
|
|||||||
|
|
||||||
return filerr;
|
return filerr;
|
||||||
}
|
}
|
||||||
char sdl_cwd[512];
|
|
||||||
|
|
||||||
|
//============================================================
|
||||||
|
// osd_get_emulator_directory
|
||||||
|
//============================================================
|
||||||
|
|
||||||
void osd_get_emulator_directory(char *dir, size_t dir_size)
|
void osd_get_emulator_directory(char *dir, size_t dir_size)
|
||||||
{
|
{
|
||||||
strncpy(dir, sdl_cwd, dir_size);
|
strncpy(dir, sdl_cwd, dir_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user