DCF Settings: factory.ini


The factory.ini file is where the majority of the settings are stored. It's located in the main directory (usually C:\Program Files\DreamCastFactory\).

It contains a number of sections, all of which serve a different purpose. It's worhwhile to note here that the DCFactory.SaveSetting and DCFactory.LoadSetting procedures read and write from this file, so all of the DCFactory internal settings are accessable through those functions (except for directories, they are stored in the registry, and may be accessed using the DCFactory.GetDir call).

[onload]

This section contains a list of subroutines to call after all scripts in the scripts directory have been loaded. To add a subroutine to this list, call DCFactory.RegisterStartup, to remove from this list call DCFactory.UnRegisterStartup. Don't try to read or write to this directly. The number of items is kept in the key 'total', and the rest of the keys are numbers from 1..total with the name of each _load routine. An example follows:
total=4
1=cygwin_load
2=scramble_load
3=grom_load
4=bin2boot_load

[news] and [scripts]

These sections contains a list of URLs from which news and script can be retreived. The total is kept in the total key, the selected url kept in the selected key, and the urls themselves are stored in keys named 1..total. A sample follows:
[news]
count=3
1=http://krypt.dyndns.org:81/dcfactory/news.dcf
2=http://www.dcemulation.com/index.html
3=http://www.dcvision.com/index.shtml
selected=http://krypt.dyndns.org:81/

[startup], [settings], and [proxy]

These contain the configuration data for DCFactory. They're fairly self-explanitory.

<< startup.bas | scripts.dcf >>