C# Class OpenBve.FileSystem

Represents the program's organization of files and folders.
Afficher le fichier Open project: leezer3/OpenBVE Class Usage Examples

Private Methods

Méthode Description
CreateFileSystem ( ) : void

Creates all folders in the file system that can later be written to.

FileSystem ( ) : System

Creates a new instance of this class with default locations.

FromCommandLineArgs ( string args ) : FileSystem

Creates the file system information from the command line arguments. If no configuration file is specified in the command line arguments, the default lookup location is used. If no configuration file is found, default values are used.

FromConfigurationFile ( string file ) : FileSystem

Creates the file system information from the specified configuration file.

GetAbsolutePath ( string folder, bool checkIfRooted ) : string

Gets the absolute path from the specified folder.

GetDataFolder ( ) : string

Gets the data folder or any specified subfolder thereof.

ReplacePath ( string line ) : string

Replaces all instances of absolute paths within a string with their relative equivilants

SaveCurrentFileSystemConfiguration ( ) : void