1 |
|
/* |
2 |
|
* main.h - Main program |
3 |
|
* |
4 |
< |
* Frodo (C) 1994-1997,2002-2004 Christian Bauer |
4 |
> |
* Frodo Copyright (C) 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 |
124 |
|
public: |
125 |
|
Frodo(); |
126 |
|
void ArgvReceived(int argc, char **argv); |
127 |
< |
void ReadyToRun(void); |
128 |
< |
static Prefs *reload_prefs(void); |
127 |
> |
void ReadyToRun(); |
128 |
> |
bool RunPrefsEditor(); |
129 |
> |
|
130 |
> |
static const char *get_prefs_path() { return prefs_path; } |
131 |
|
|
132 |
|
private: |
133 |
|
void load_rom(const char *which, const char *path, uint8 *where, size_t size, const uint8 *builtin); |
136 |
|
static char prefs_path[256]; // Pathname of current preferences file |
137 |
|
}; |
138 |
|
|
139 |
+ |
extern Frodo *TheApp; // Pointer to Frodo object |
140 |
+ |
|
141 |
|
#endif |
142 |
|
|
143 |
|
|
191 |
|
// Command line options. |
192 |
|
extern BOOL full_screen; |
193 |
|
|
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 |
– |
|
194 |
|
#endif |
195 |
|
|
196 |
|
|
218 |
|
extern C64 *TheC64; |
219 |
|
|
220 |
|
|
221 |
+ |
/* |
222 |
+ |
* Functions |
223 |
+ |
*/ |
224 |
+ |
|
225 |
+ |
// Determine whether path name refers to a directory |
226 |
+ |
extern bool IsDirectory(const char *path); |
227 |
+ |
|
228 |
|
#endif |