コード例 #1
0
 /// <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;
 }
コード例 #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;
 }
コード例 #3
0
 /// <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";
 }
コード例 #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)
 {
 }
コード例 #5
0
 /// <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;
 }
コード例 #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);
 }