ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/Frodo4/Src/main.h
(Generate patch)

Comparing Frodo4/Src/main.h (file contents):
Revision 1.5 by cebix, 2004-01-11T14:03:29Z vs.
Revision 1.10 by cebix, 2010-04-21T22:03:44Z

# Line 1 | Line 1
1   /*
2   *  main.h - Main program
3   *
4 < *  Frodo (C) 1994-1997,2002-2003 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
# Line 124 | Line 124 | class Frodo {
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);
# Line 134 | Line 136 | private:
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  
# Line 187 | Line 191 | extern HWND hwnd;
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  
# Line 237 | Line 218 | private:
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines