--- Frodo4/Src/main.h 2004/01/11 14:03:29 1.5 +++ Frodo4/Src/main.h 2010/04/21 22:03:44 1.10 @@ -1,7 +1,7 @@ /* * main.h - Main program * - * Frodo (C) 1994-1997,2002-2003 Christian Bauer + * Frodo Copyright (C) Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -124,8 +124,10 @@ class Frodo { public: Frodo(); void ArgvReceived(int argc, char **argv); - void ReadyToRun(void); - static Prefs *reload_prefs(void); + void ReadyToRun(); + bool RunPrefsEditor(); + + static const char *get_prefs_path() { return prefs_path; } private: void load_rom(const char *which, const char *path, uint8 *where, size_t size, const uint8 *builtin); @@ -134,6 +136,8 @@ private: static char prefs_path[256]; // Pathname of current preferences file }; +extern Frodo *TheApp; // Pointer to Frodo object + #endif @@ -187,29 +191,6 @@ extern HWND hwnd; // Command line options. extern BOOL full_screen; -#if defined(DEBUG) - -inline void Debug(const char *format, ...) -{ - va_list args; - va_start(args, format); - char tmp[256]; - vsprintf(tmp, format, args); - va_end(args); - OutputDebugString(tmp); -} - -#else - -inline void Debug(const char *format, ...) -{ -} - -#endif - -#define DebugResult(message, val) \ - Debug("%s: 0x%x (%d)\n", message, val, HRESULT_CODE(val)) - #endif @@ -237,4 +218,11 @@ private: extern C64 *TheC64; +/* + * Functions + */ + +// Determine whether path name refers to a directory +extern bool IsDirectory(const char *path); + #endif