API Reference > 0.19 > PreferencesWriter
PreferencesWriter Class
Writes preferences to the F1PREFS.DAT file.
Namespace: ArgData
Constructors
| Name | Description |
|---|---|
| PreferencesWriter(PreferencesFile preferencesFile) | Creates a PreferencesWriter for the specified F1PREFS.DAT file. preferencesFile: PreferencesFile to read from. |
Methods
| Name | Description |
|---|---|
| DisableAutoLoadedNameFile() | Disables auto-loading of any name file in the game. |
| DisableAutoLoadedSetupFile() | Disables auto-loading of any setup file in the game. |
| For(PreferencesFile preferencesFile) | Creates a PreferencesWriter for the specified F1PREFS.DAT file. preferencesFile: PreferencesFile to read from. |
| SetAutoLoadedNameFile(String nameFilePath) | Sets the auto-loaded name file. nameFilePath: Relative path to F1GP installation. Max 31 chars. |
| SetAutoLoadedSetupFile(String setupFilePath) | Sets the auto-loaded setup file. setupFilePath: Relative path to F1GP installation. Max 31 chars. |