/// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="fileEntry">The file entry</param>
 /// <param name="relativeImportFilePath">The relative file path to import from</param>
 public FileEntryImportData(object fileEntry, FileSystemPath relativeImportFilePath)
 {
     FileEntry = fileEntry;
     RelativeImportFilePath = relativeImportFilePath;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="installDir">The install directory</param>
 /// <param name="parameter">Optional parameter when the item is handled</param>
 public FoundActionResult(FileSystemPath installDir, object parameter)
 {
     InstallDir = installDir;
     Parameter  = parameter;
 }
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="path">The config file path</param>
 public DosBoxAutoConfigManager(FileSystemPath path)
 {
     FilePath   = path;
     FirstLines = $"[ipx]{Environment.NewLine}# ipx -- Enable ipx over UDP/IP emulation.{Environment.NewLine}ipx=false{Environment.NewLine}{Environment.NewLine}[autoexec]{Environment.NewLine}@echo off";
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="slotName">The slot name</param>
 /// <param name="items">The progression info items</param>
 /// <param name="saveSlotFilePath">The file path for the save slot</param>
 /// <param name="progressionViewModel">The progression view model containing this slot</param>
 public Rayman1ProgressionSlotViewModel(LocalizedString slotName, ProgressionInfoItemViewModel[] items, FileSystemPath saveSlotFilePath, BaseProgressionViewModel progressionViewModel) : base(slotName, items, saveSlotFilePath, progressionViewModel)
 {
 }
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="game">The game</param>
 /// <param name="installLocation">The install location</param>
 /// <param name="gameType">The game type</param>
 /// <param name="handledAction">An optional action to add when the item gets handled</param>
 /// <param name="handledParameter">Optional parameter for the <see cref="BaseFinderResult.HandledAction"/></param>
 public GameFinderResult(Games game, FileSystemPath installLocation, GameType gameType, Action <FileSystemPath, object> handledAction = null, object handledParameter = null) : base(installLocation, handledAction, handledParameter, game.GetGameInfo().DisplayName)
 {
     Game     = game;
     GameType = gameType;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Deserializes the localization file
 /// </summary>
 /// <param name="file">The localization file</param>
 /// <returns>The data</returns>
 protected override UbiArtFiestaRunLocStringValuePair[] Deserialize(FileSystemPath file)
 {
     return(BinarySerializableHelpers.ReadFromFile <FiestaRunLocalizationData>(file, UbiArtSettings.GetDefaultSettings(UbiArtGame.RaymanFiestaRun, Platform.PC), RCPServices.App.GetBinarySerializerLogger()).Strings);
 }