--- Frodo4/Src/main.h 2004/01/12 15:13:20 1.6 +++ Frodo4/Src/main.h 2007/01/28 16:08:37 1.9 @@ -1,7 +1,7 @@ /* * main.h - Main program * - * Frodo (C) 1994-1997,2002-2004 Christian Bauer + * Frodo (C) 1994-1997,2002-2005 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 @@ -126,7 +126,7 @@ public: void ArgvReceived(int argc, char **argv); void ReadyToRun(void); static Prefs *reload_prefs(void); - + static 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); void load_rom_files(); @@ -187,29 +187,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 +214,11 @@ private: extern C64 *TheC64; +/* + * Functions + */ + +// Determine whether path name refers to a directory +extern bool IsDirectory(const char *path); + #endif