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

Prefs Class Reference

#include <Prefs.h>

List of all members.

Public Member Functions

 Prefs ()
 ~Prefs ()
bool ShowEditor (bool startup, char *prefs_name)
void Check (void)
bool Load (char *filename)
bool Save (char *filename)
bool operator== (const Prefs &rhs) const
bool operator!= (const Prefs &rhs) const

Public Attributes

bool Emul1541Proc
 Enable processor-level 1541 emulation.

int DriveType [4]
 Type of drive 8..11.

char DrivePath [4][256]
 Path for drive 8..11.

bool Joystick1On
 Joystick connected to port 1 of host.

bool Joystick2On
 Joystick connected to port 2 of host.

int SkipFrames
 Draw every n-th frame.

bool SpritesOn
 Sprite display is on.

bool SpriteCollisions
 Sprite collision detection is on.

int SIDType
 SID emulation type.

bool SIDFilters
 Emulate SID filters.

int LatencyMin
 Min msecs ahead of sound buffer (Win32).

int LatencyMax
 Max msecs ahead of sound buffer (Win32).

int LatencyAvg
 Averaging interval in msecs (Win32).

int NormalCycles
 Available CPU cycles in normal raster lines.

int BadLineCycles
 Available CPU cycles in Bad Lines.

int CIACycles
 CIA timer ticks per raster line.

int FloppyCycles
 Available 1541 CPU cycles per line.

int REUSize
 Size of REU.

bool LimitSpeed
 Limit speed to 100%.

bool FastReset
 Skip RAM test on reset.

bool iShowToolbar
 Show Toolbar.

uint8 ColorTbl [16]
 Colors.

TPoint iOffset
 XY screen offset.

TInt iVolume
 loudspeaker sound volume from [0...max]


Detailed Description

Preferences data

Definition at line 57 of file Prefs.h.


Constructor & Destructor Documentation

Prefs::Prefs  ) 
 

Definition at line 109 of file Prefs.cpp.

References BadLineCycles, CIACycles, colorRefTable, ColorTbl, CTOR, DISPLAY_Y, DISPTYPE_WINDOW, DrivePath, DriveType, DRVTYPE_DIR, Emul1541Proc, FastReset, FloppyCycles, iOffset, iShowToolbar, iVolume, Joystick1On, Joystick2On, LatencyAvg, LatencyMax, LatencyMin, LimitSpeed, NormalCycles, REU_NONE, REUSize, SIDFilters, SIDType, SIDTYPE_DIGITAL, SkipFrames, SpriteCollisions, SpritesOn, and strcpy.

Prefs::~Prefs  ) 
 

Destructor

Definition at line 205 of file Prefs.cpp.

References DTOR.


Member Function Documentation

void Prefs::Check void   ) 
 

Definition at line 290 of file Prefs.cpp.

References DISPTYPE_SCREEN, DISPTYPE_WINDOW, DriveType, DRVTYPE_DIR, DRVTYPE_T64, REU_512K, REU_NONE, REUSize, SIDType, SIDTYPE_NONE, SIDTYPE_SIDCARD, and SkipFrames.

Referenced by PrefsWindow::get_values(), get_values(), Load(), Save(), PrefsWindow::set_values(), and set_values().

bool Prefs::Load char *  filename  ) 
 

Definition at line 315 of file Prefs.cpp.

References atoi, BadLineCycles, Check(), CIACycles, ColorTbl, DISPTYPE_SCREEN, DISPTYPE_WINDOW, DrivePath, DriveType, DRVTYPE_D64, DRVTYPE_DIR, DRVTYPE_T64, ELOG1, ELOG2, Emul1541Proc, FastReset, fclose, fgets, FILE, FloppyCycles, fopen, iOffset, iShowToolbar, iVolume, Joystick1On, Joystick2On, LatencyAvg, LatencyMax, LatencyMin, LimitSpeed, NormalCycles, REU_128K, REU_256K, REU_512K, REU_NONE, REUSize, SIDFilters, SIDType, SIDTYPE_DIGITAL, SIDTYPE_NONE, SIDTYPE_SIDCARD, SkipFrames, SpriteCollisions, SpritesOn, sscanf, strcmp, and strcpy.

Referenced by C64::C64(), PrefsWindow::MessageReceived(), PrefsOpen(), PrefsRevert(), and Frodo::reload_prefs().

bool Prefs::operator!= const Prefs rhs  )  const
 

Definition at line 280 of file Prefs.cpp.

References operator==().

bool Prefs::operator== const Prefs rhs  )  const
 

Check if two Prefs structures are equal

Definition at line 214 of file Prefs.cpp.

References strcmp.

Referenced by operator!=().

bool Prefs::Save char *  filename  ) 
 

Definition at line 534 of file Prefs.cpp.

References BadLineCycles, Check(), CIACycles, ColorTbl, DISPTYPE_WINDOW, DrivePath, DriveType, DRVTYPE_D64, DRVTYPE_DIR, DRVTYPE_T64, Emul1541Proc, FastReset, fclose, FILE, FloppyCycles, fopen, fprintf, iOffset, iShowToolbar, iVolume, Joystick1On, Joystick2On, LatencyAvg, LatencyMax, LatencyMin, LimitSpeed, NormalCycles, REU_128K, REU_256K, REU_512K, REU_NONE, REUSize, SIDFilters, SIDType, SIDTYPE_DIGITAL, SIDTYPE_NONE, SIDTYPE_SIDCARD, SkipFrames, SpriteCollisions, and SpritesOn.

Referenced by PrefsWindow::MessageReceived(), PrefsSave(), PrefsSaveAs(), and C64::~C64().

bool Prefs::ShowEditor bool  startup,
char *  prefs_name
 

Definition at line 44 of file Prefs_Amiga.i.

References CloseDownScreen(), ClosePrefsWindow(), done, drive_req, HandlePrefsIDCMP(), open_req, OpenPrefsWindow(), path, prefs, PrefsWnd, result, save_req, set_values(), and SetupScreen().


Member Data Documentation

int Prefs::BadLineCycles
 

Available CPU cycles in Bad Lines.

Definition at line 97 of file Prefs.h.

Referenced by MOS6569::EmulateLine(), PrefsWindow::get_values(), get_values(), Load(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), Save(), PrefsWindow::set_values(), and set_values().

int Prefs::CIACycles
 

CIA timer ticks per raster line.

Definition at line 98 of file Prefs.h.

Referenced by PrefsWindow::get_values(), get_values(), Load(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), Save(), PrefsWindow::set_values(), set_values(), and C64::thread_func().

uint8 Prefs::ColorTbl[16]
 

Colors.

Definition at line 108 of file Prefs.h.

Referenced by C64Display::BuildColorTable(), Load(), Prefs(), and Save().

char Prefs::DrivePath[4][256]
 

Path for drive 8..11.

Definition at line 77 of file Prefs.h.

Referenced by get_drive(), PrefsWindow::get_values(), get_values(), IEC::IEC(), Job1541::Job1541(), Load(), C64::LoadSnapshot(), PrefsWindow::MessageReceived(), IEC::NewPrefs(), Job1541::NewPrefs(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), Save(), C64::SaveSnapshot(), PrefsWindow::set_values(), and set_values().

int Prefs::DriveType[4]
 

Type of drive 8..11.

Definition at line 76 of file Prefs.h.

Referenced by Check(), DriveType10Clicked(), DriveType11Clicked(), DriveType8Clicked(), DriveType9Clicked(), get_drive(), IEC::IEC(), Load(), PrefsWindow::MessageReceived(), IEC::NewPrefs(), CPrefsDialog::OkToExitL(), Prefs(), Save(), PrefsWindow::set_values(), and set_values().

bool Prefs::Emul1541Proc
 

Enable processor-level 1541 emulation.

Definition at line 75 of file Prefs.h.

Referenced by Emul1541ProcClicked(), IEC::IEC(), Job1541::Job1541(), Load(), C64::LoadSnapshot(), PrefsWindow::MessageReceived(), IEC::NewPrefs(), C64::NewPrefs(), Job1541::NewPrefs(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), C64::Run(), Save(), C64::SaveRAM(), C64::SaveSnapshot(), PrefsWindow::set_values(), set_values(), and C64::thread_func().

bool Prefs::FastReset
 

Skip RAM test on reset.

Definition at line 104 of file Prefs.h.

Referenced by FastResetClicked(), Load(), PrefsWindow::MessageReceived(), C64::NewPrefs(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), C64::Run(), Save(), PrefsWindow::set_values(), and set_values().

int Prefs::FloppyCycles
 

Available 1541 CPU cycles per line.

Definition at line 99 of file Prefs.h.

Referenced by PrefsWindow::get_values(), get_values(), Load(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), Save(), PrefsWindow::set_values(), set_values(), and C64::thread_func().

TPoint Prefs::iOffset
 

XY screen offset.

Definition at line 111 of file Prefs.h.

Referenced by Load(), Prefs(), and Save().

bool Prefs::iShowToolbar
 

Show Toolbar.

Definition at line 105 of file Prefs.h.

Referenced by CE32FrodoAppUi::ConstructL(), Load(), Prefs(), Save(), and CE32FrodoAppUi::SetFullScreenModeL().

TInt Prefs::iVolume
 

loudspeaker sound volume from [0...max]

Definition at line 112 of file Prefs.h.

Referenced by Load(), DigitalRenderer::NewPrefs(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), and Save().

bool Prefs::Joystick1On
 

Joystick connected to port 1 of host.

Definition at line 80 of file Prefs.h.

Referenced by Load(), PrefsWindow::MessageReceived(), C64::NewPrefs(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), Save(), PrefsWindow::set_values(), C64::VBlank(), and C64::~C64().

bool Prefs::Joystick2On
 

Joystick connected to port 2 of host.

Definition at line 81 of file Prefs.h.

Referenced by Joystick2OnClicked(), Load(), PrefsWindow::MessageReceived(), C64::NewPrefs(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), Save(), PrefsWindow::set_values(), set_values(), C64::VBlank(), and C64::~C64().

int Prefs::LatencyAvg
 

Averaging interval in msecs (Win32).

Definition at line 93 of file Prefs.h.

Referenced by Load(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), and Save().

int Prefs::LatencyMax
 

Max msecs ahead of sound buffer (Win32).

Definition at line 92 of file Prefs.h.

Referenced by Load(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), and Save().

int Prefs::LatencyMin
 

Min msecs ahead of sound buffer (Win32).

Definition at line 91 of file Prefs.h.

Referenced by Load(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), and Save().

bool Prefs::LimitSpeed
 

Limit speed to 100%.

Definition at line 103 of file Prefs.h.

Referenced by C64::C64(), CE32FrodoAppUi::HandleCommandL(), LimitSpeedClicked(), Load(), PrefsWindow::MessageReceived(), Prefs(), Save(), PrefsWindow::set_values(), set_values(), and C64::VBlank().

int Prefs::NormalCycles
 

Available CPU cycles in normal raster lines.

Definition at line 96 of file Prefs.h.

Referenced by MOS6569::EmulateLine(), PrefsWindow::get_values(), get_values(), Load(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), Save(), PrefsWindow::set_values(), and set_values().

int Prefs::REUSize
 

Size of REU.

Definition at line 102 of file Prefs.h.

Referenced by Check(), Load(), PrefsWindow::MessageReceived(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), REUSizeClicked(), Save(), PrefsWindow::set_values(), and set_values().

bool Prefs::SIDFilters
 

Emulate SID filters.

Definition at line 90 of file Prefs.h.

Referenced by Load(), PrefsWindow::MessageReceived(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), Save(), PrefsWindow::set_values(), set_values(), SIDFiltersClicked(), and DigitalRenderer::WriteRegister().

int Prefs::SIDType
 

SID emulation type.

Definition at line 89 of file Prefs.h.

Referenced by Check(), Load(), PrefsWindow::MessageReceived(), MOS6581::MOS6581(), MOS6581::NewPrefs(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), Save(), PrefsWindow::set_values(), set_values(), SIDTypeClicked(), and MOS6581::~MOS6581().

int Prefs::SkipFrames
 

Draw every n-th frame.

Definition at line 84 of file Prefs.h.

Referenced by Check(), PrefsWindow::get_values(), get_values(), Load(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), Save(), PrefsWindow::set_values(), set_values(), and MOS6569::vblank().

bool Prefs::SpriteCollisions
 

Sprite collision detection is on.

Definition at line 86 of file Prefs.h.

Referenced by MOS6569::el_sprites(), Load(), PrefsWindow::MessageReceived(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), Save(), PrefsWindow::set_values(), set_values(), and SpriteCollisionsClicked().

bool Prefs::SpritesOn
 

Sprite display is on.

Definition at line 85 of file Prefs.h.

Referenced by MOS6569::EmulateLine(), Load(), PrefsWindow::MessageReceived(), CPrefsDialog::OkToExitL(), Prefs(), CPrefsDialog::PreLayoutDynInitL(), Save(), PrefsWindow::set_values(), set_values(), and SpritesOnClicked().


The documentation for this class was generated from the following files:
Generated on Tue Feb 8 04:12:35 2005 for E32frodo by doxygen 1.3.3