1 |
|
/* |
2 |
|
* main.h - Main program |
3 |
|
* |
4 |
< |
* Frodo (C) 1994-1997,2002-2004 Christian Bauer |
4 |
> |
* Frodo (C) 1994-1997,2002-2005 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
126 |
|
void ArgvReceived(int argc, char **argv); |
127 |
|
void ReadyToRun(void); |
128 |
|
static Prefs *reload_prefs(void); |
129 |
< |
|
129 |
> |
static char* get_prefs_path() { return prefs_path; }; |
130 |
|
private: |
131 |
|
void load_rom(const char *which, const char *path, uint8 *where, size_t size, const uint8 *builtin); |
132 |
|
void load_rom_files(); |
187 |
|
// Command line options. |
188 |
|
extern BOOL full_screen; |
189 |
|
|
190 |
– |
#if defined(DEBUG) |
191 |
– |
|
192 |
– |
inline void Debug(const char *format, ...) |
193 |
– |
{ |
194 |
– |
va_list args; |
195 |
– |
va_start(args, format); |
196 |
– |
char tmp[256]; |
197 |
– |
vsprintf(tmp, format, args); |
198 |
– |
va_end(args); |
199 |
– |
OutputDebugString(tmp); |
200 |
– |
} |
201 |
– |
|
202 |
– |
#else |
203 |
– |
|
204 |
– |
inline void Debug(const char *format, ...) |
205 |
– |
{ |
206 |
– |
} |
207 |
– |
|
208 |
– |
#endif |
209 |
– |
|
210 |
– |
#define DebugResult(message, val) \ |
211 |
– |
Debug("%s: 0x%x (%d)\n", message, val, HRESULT_CODE(val)) |
212 |
– |
|
190 |
|
#endif |
191 |
|
|
192 |
|
|
214 |
|
extern C64 *TheC64; |
215 |
|
|
216 |
|
|
217 |
+ |
/* |
218 |
+ |
* Functions |
219 |
+ |
*/ |
220 |
+ |
|
221 |
+ |
// Determine whether path name refers to a directory |
222 |
+ |
extern bool IsDirectory(const char *path); |
223 |
+ |
|
224 |
|
#endif |