src/osd/sdl/sdlfile.c
| r7338 | r7339 | |
| 34 | 34 | #include "osdcore.h" |
| 35 | 35 | #include "sdlos.h" |
| 36 | 36 | |
| 37 | //============================================================ |
| 38 | // CONSTANTS |
| 39 | //============================================================ |
| 40 | |
| 37 | 41 | #if defined(SDLMAME_WIN32) || defined(SDLMAME_OS2) |
| 38 | 42 | #define PATHSEPCH '\\' |
| 39 | 43 | #define INVPATHSEPCH '/' |
| r7338 | r7339 | |
| 42 | 46 | #define INVPATHSEPCH '\\' |
| 43 | 47 | #endif |
| 44 | 48 | |
| 45 | | static UINT32 create_path_recursive(char *path); |
| 46 | | |
| 47 | 49 | #define NO_ERROR (0) |
| 48 | 50 | |
| 51 | |
| 49 | 52 | //============================================================ |
| 50 | 53 | // TYPE DEFINITIONS |
| 51 | 54 | //============================================================ |
| r7338 | r7339 | |
| 58 | 61 | |
| 59 | 62 | |
| 60 | 63 | //============================================================ |
| 64 | // Global variables |
| 65 | //============================================================ |
| 66 | |
| 67 | char sdl_cwd[512]; |
| 68 | |
| 69 | |
| 70 | //============================================================ |
| 71 | // Static variables |
| 72 | //============================================================ |
| 73 | |
| 74 | static UINT32 create_path_recursive(char *path); |
| 75 | |
| 76 | //============================================================ |
| 61 | 77 | // error_to_file_error |
| 62 | 78 | // (does filling this out on non-Windows make any sense?) |
| 63 | 79 | //============================================================ |
| r7338 | r7339 | |
| 691 | 707 | |
| 692 | 708 | return filerr; |
| 693 | 709 | } |
| 694 | | char sdl_cwd[512]; |
| 710 | |
| 711 | |
| 712 | //============================================================ |
| 713 | // osd_get_emulator_directory |
| 714 | //============================================================ |
| 715 | |
| 695 | 716 | void osd_get_emulator_directory(char *dir, size_t dir_size) |
| 696 | 717 | { |
| 697 | 718 | strncpy(dir, sdl_cwd, dir_size); |