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.4 by cebix, 2003-07-02T14:46:24Z vs.
Revision 1.9 by berlac, 2007-01-28T16:08:37Z

# Line 1 | Line 1
1   /*
2   *  main.h - Main program
3   *
4 < *  Frodo (C) 1994-1997,2002-2003 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
# Line 71 | Line 71 | public:
71          virtual bool QuitRequested(void);
72          virtual void AboutRequested(void);
73  
74        C64 *TheC64;
75
74   private:
75          void load_rom(const char *which, const char *path, uint8 *where, size_t size, const uint8 *builtin);
76          void load_rom_files();
# Line 101 | Line 99 | public:
99          void ReadyToRun(void);
100          void RunPrefsEditor(void);
101  
104        C64 *TheC64;
105
102   private:
103          void load_rom(const char *which, const char *path, uint8 *where, size_t size, const uint8 *builtin);
104          void load_rom_files();
# Line 130 | Line 126 | public:
126          void ArgvReceived(int argc, char **argv);
127          void ReadyToRun(void);
128          static Prefs *reload_prefs(void);
129 <
134 <        C64 *TheC64;
135 <
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();
# Line 154 | Line 148 | public:
148          Frodo();
149  
150          void Run(void);
157        C64 *TheC64;
151  
152   private:
153          void load_rom(const char *which, const char *path, uint8 *where, size_t size, const uint8 *builtin);
# Line 178 | Line 171 | public:
171          void ReadyToRun();
172          void RunPrefsEditor();
173  
181        C64 *TheC64;
174          char prefs_path[256];   // Pathname of current preferences file
175  
176   private:
# Line 195 | Line 187 | extern HWND hwnd;
187   // Command line options.
188   extern BOOL full_screen;
189  
198 #if defined(DEBUG)
199
200 inline void Debug(const char *format, ...)
201 {
202        va_list args;
203        va_start(args, format);
204        char tmp[256];
205        vsprintf(tmp, format, args);
206        va_end(args);
207        OutputDebugString(tmp);
208 }
209
210 #else
211
212 inline void Debug(const char *format, ...)
213 {
214 }
215
216 #endif
217
218 #define DebugResult(message, val) \
219        Debug("%s: 0x%x (%d)\n", message, val, HRESULT_CODE(val))
220
190   #endif
191  
192  
# Line 234 | Line 203 | public:
203          ~Frodo();
204          void ReadyToRun(void);
205  
237        C64 *TheC64;
238
206   private:
207          void load_rom(const char *which, const char *path, uint8 *where, size_t size, const uint8 *builtin);
208          void load_rom_files();
# Line 243 | Line 210 | private:
210  
211   #endif
212  
213 + // Global C64 object
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines