Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

main_PSX.i

Go to the documentation of this file.
00001 /*
00002  *  main_PSX.i - Main program, PSX specific stuff
00003  *
00004  *  Frodo (C) 1994-1997 Christian Bauer
00005  */
00006 
00007 #include <libps.h>
00008 #include <MWDebugIO.h>
00009 
00010 
00011 // Global variables
00012 Frodo *be_app;  // Pointer to Frodo object
00013 
00014 
00015 /*
00016  *  Create application object and start it
00017  */
00018 
00019 int main(void)
00020 {
00021         srand(0);       // !!
00022 
00023         be_app = new Frodo();
00024         be_app->ReadyToRun();
00025         delete be_app;
00026 
00027         return 0;
00028 }
00029 
00030 
00031 /*
00032  *  Constructor: Initialize member variables
00033  */
00034 
00035 Frodo::Frodo()
00036 {
00037         TheC64 = NULL;
00038         prefs_path[0] = 0;
00039 }
00040 
00041 
00042 /*
00043  *  Arguments processed, run emulation
00044  */
00045 
00046 void Frodo::ReadyToRun(void)
00047 {
00048 /*
00049         // Load preferences
00050         if (!prefs_path[0])
00051                 strcpy(prefs_path, "Frodo Prefs");
00052         ThePrefs.Load(prefs_path);
00053 
00054         // Show preferences editor
00055         if (ThePrefs.ShowEditor(TRUE, prefs_path)) {
00056 
00057                 // Create and start C64
00058                 TheC64 = new C64;
00059                 if (load_rom_files())
00060                         TheC64->Run();
00061                 delete TheC64;
00062         }
00063 */
00064 }
00065 
00066 
00067 /*
00068  *  Load C64 ROM files
00069  */
00070 
00071 bool Frodo::load_rom_files(void)
00072 {
00073         MWbload("Basic ROM", TheC64->Basic);
00074         MWbload("Kernal ROM", TheC64->Kernal);
00075         MWbload("Char ROM", TheC64->Char);
00076         MWbload("1541 ROM", TheC64->ROM1541);
00077 }

Generated on Tue Feb 8 04:07:59 2005 for E32frodo by doxygen 1.3.3