Package sidplay.ini
Klasse IniConfig
java.lang.Object
sidplay.ini.IniConfig
- Alle implementierten Schnittstellen:
IConfig
Configuration of the console version of JSIDPlay2.
INI configuration file support responsible to load and save all emulator
settings.
- Autor:
- Ken Händel
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate IAudioSectionprivate IC1541Sectionprivate IConsoleSectionprivate IEmulationSectionprivate static final StringName of our config file.private final FileINI configuration filename or null (use internal configuration)protected IniReaderprivate IPrinterSectionprivate ISidPlay2Sectionprivate static IniConfigprivate IWhatsSidSectionVon Schnittstelle geerbte Felder libsidplay.config.IConfig
REQUIRED_CONFIG_VERSION -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprivate voidclear()private voidcreateINIBackup(File iniFile) Create backup of old INI filefinal IAudioSectionfinal IC1541Sectionfinal IConsoleSectionstatic final IniConfigGet default configuration, read from internal jsidplay2.ini file.
This is a Single instance!final IEmulationSectionfinal List<? extends IFilterSection> static FileDetermine INI filename.final IPrinterSectionfinal ISidPlay2Sectionfinal IWhatsSidSectionprivate voidfinal StringtoString()final voidwrite()
-
Felddetails
-
FILE_NAME
Name of our config file.- Siehe auch:
-
singleInstance
-
iniPath
INI configuration filename or null (use internal configuration) -
sidplay2Section
-
c1541Section
-
printerSection
-
consoleSection
-
audioSection
-
emulationSection
-
whatsSidSection
-
iniReader
-
-
Konstruktordetails
-
IniConfig
public IniConfig()Read internal configuration file. -
IniConfig
public IniConfig(boolean createIfNotExists) Read configuration file (external or internal, if it does not exist).- Parameter:
createIfNotExists- If external configuration file does not exist, create it
-
IniConfig
-
-
Methodendetails
-
clear
private void clear() -
getFilterSection
- Angegeben von:
getFilterSectionin SchnittstelleIConfig
-
getDefault
Get default configuration, read from internal jsidplay2.ini file.
This is a Single instance!- Gibt zurück:
- default configuration
-
getINIPath
Determine INI filename.- If INI file exists in the user directory, then use it, else
- use INI file in the current working directory
- Gibt zurück:
- the absolute path name of the INI file to use
-
createINIBackup
Create backup of old INI file- Parameter:
iniFile- the INI file to backup
-
readInternal
private void readInternal() -
write
public final void write() -
getSidplay2Section
- Angegeben von:
getSidplay2Sectionin SchnittstelleIConfig
-
getC1541Section
- Angegeben von:
getC1541Sectionin SchnittstelleIConfig
-
getPrinterSection
- Angegeben von:
getPrinterSectionin SchnittstelleIConfig
-
getConsoleSection
- Angegeben von:
getConsoleSectionin SchnittstelleIConfig
-
getAudioSection
- Angegeben von:
getAudioSectionin SchnittstelleIConfig
-
getEmulationSection
- Angegeben von:
getEmulationSectionin SchnittstelleIConfig
-
getWhatsSidSection
- Angegeben von:
getWhatsSidSectionin SchnittstelleIConfig
-
toString
-