Previous 15994 Revisions Next

r7339 Friday 12th February, 2010 at 20:21:18 UTC by Miodrag Milanović
Fixed windows SDL compile, and updated sdlfile.c to changes done by couriersud
[src/mess/osd/sdl]w32util.c
[src/osd/sdl]sdlfile.c

src/osd/sdl/sdlfile.c
r7338r7339
3434#include "osdcore.h"
3535#include "sdlos.h"
3636
37//============================================================
38//  CONSTANTS
39//============================================================
40
3741#if defined(SDLMAME_WIN32) || defined(SDLMAME_OS2)
3842#define PATHSEPCH '\\'
3943#define INVPATHSEPCH '/'
r7338r7339
4246#define INVPATHSEPCH '\\'
4347#endif
4448
45static UINT32 create_path_recursive(char *path);
46
4749#define NO_ERROR   (0)
4850
51
4952//============================================================
5053//  TYPE DEFINITIONS
5154//============================================================
r7338r7339
5861
5962
6063//============================================================
64//  Global variables
65//============================================================
66
67char sdl_cwd[512];
68
69
70//============================================================
71//  Static variables
72//============================================================
73
74static UINT32 create_path_recursive(char *path);
75
76//============================================================
6177//  error_to_file_error
6278//  (does filling this out on non-Windows make any sense?)
6379//============================================================
r7338r7339
691707
692708   return filerr;
693709}
694char sdl_cwd[512];
710
711
712//============================================================
713//  osd_get_emulator_directory
714//============================================================
715
695716void osd_get_emulator_directory(char *dir, size_t dir_size)
696717{
697718   strncpy(dir, sdl_cwd, dir_size);
src/mess/osd/sdl/w32util.c
r7338r7339
33#include <ctype.h>
44#include <tchar.h>
55
6#include "osdmess.h"
6#include "osdcore.h"
77#include "utils.h"
88#include "strconv.h"
99#include "emu.h"

Previous 15994 Revisions Next


© 1998-2018 The MESS Team