Skip to content

UOperatingSystemNonUnix

#include <OperatingSystemSimulator/Public/Core/OperatingSystemNonUnix.h>
class UOperatingSystemNonUnix

Defined in OperatingSystemNonUnix.h:17

Inherits: UOperatingSystem

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemNonUnix["UOperatingSystemNonUnix"]
  class UOperatingSystem["UOperatingSystem"]
  UOperatingSystem <|-- UOperatingSystemNonUnix
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemNonUnix["UOperatingSystemNonUnix"]
  class UOperatingSystem["UOperatingSystem"]
  UOperatingSystemNonUnix *-- UOperatingSystem
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemNonUnix {
    +UOperatingSystemNonUnix()
    +CreateDirectoryInPath(const FString &TargetPath, const FString &D UOperatingSystemDirectory() *
    +FinalizePreInstallation(FGenericError &OutError) override void()
    +PrepareOperatingSystemInstallImpl(FGenericError &OutError) override void()
    +StartOperatingSystemImpl(FGenericError &OutError) override bool()
    +PostLoadOperatingSystemImpl(FGenericError &OutError) override void()
    +OnPartitionLoaded(UOperatingSystemPartition &LoadedPartition, void()
    +FindPartitionFromLetter(const FName &TargetDiskLetter) const overri UOperatingSystemPartition() *
    +FindDiskLetterAtIndex(const int32 &AtIndex) const FName()
    +DiskLetters : TArray()< FName() >
  }

This class represents a non-unix operating system. It inherits from UOperatingSystem and provides additional functionality specific to non-unix systems.

ReturnNameDescription
UOperatingSystemNonUnix
UOperatingSystemDirectory *CreateDirectoryInPath virtual overrideCreates a directory in the specified path.

UOperatingSystemNonUnix()

virtual override

virtual UOperatingSystemDirectory * CreateDirectoryInPath(constFString & TargetPath, constFString & DirectoryName, TSoftClassPtr< UOperatingSystemDirectory > DirectoryClass, UOperatingSystemPartition * TargetPartition, constbool bIsFromSaveGame, FGenericError & OutError) override

Defined in OperatingSystemNonUnix.h:39 Creates a directory in the specified path.

  • TargetPath The target path where the directory will be created.

  • DirectoryName The name of the directory to create.

  • DirectoryClass The class of the directory to be created.

  • TargetPartition The target partition where the directory will be created.

  • bIsFromSaveGame Indicates if the directory is created from a save game.

  • OutError An output parameter to store any errors that occur during the creation of the directory.

A pointer to the created directory, or nullptr if the directory creation fails.

ReturnNameDescription
voidFinalizePreInstallation virtual overrideFinalizes the pre-installation process of the operating system for non-unix systems.
voidPrepareOperatingSystemInstallImpl virtual overrideFinalizes the pre-installation process of the operating system for non-unix systems.
boolStartOperatingSystemImpl virtual overrideStarts the operating system for non-unix systems. This method sets the disk letter for each disk partition.
voidPostLoadOperatingSystemImpl virtual overridePerforms post-loading operations for the operating system in non-Unix systems.
voidOnPartitionLoaded virtual overrideThis method is called when a partition is loaded. This method sets the disk letter for the loaded partition, using the disk letter from the SaveLoadData if it is not empty, or the first disk letter found if it is empty.
UOperatingSystemPartition *FindPartitionFromLetter virtual const override finalFinds a partition on the non-Unix operating system that matches the given disk letter. This function searches for a partition in the list of disk partitions that has the specified disk letter.
FNameFindDiskLetterAtIndex constFindDiskLetterAtIndex method returns the disk letter at the specified index.

virtual override

virtual void FinalizePreInstallation(FGenericError & OutError) override

Defined in OperatingSystemNonUnix.h:58 Finalizes the pre-installation process of the operating system for non-unix systems.

This method performs the following steps:

  1. Retrieves the hard disk for the operating system.

  2. Allocates a new partition on the hard disk.

  3. Begins the installation process on the new partition.

  4. Clears the installation timer.

  5. Finishes the installation process.

  • OutError [in,out] The output parameter to store any errors that occur during the finalization process.

virtual override

virtual void PrepareOperatingSystemInstallImpl(FGenericError & OutError) override

Defined in OperatingSystemNonUnix.h:68 Finalizes the pre-installation process of the operating system for non-unix systems.

This method retrieves the hard disk for the operating system, allocates a new partition on the hard disk, begins the installation process on the new partition, clears the installation timer, and finishes the installation process.

  • OutError [out] The output parameter to store any errors that occur during the finalization process.

virtual override

virtual bool StartOperatingSystemImpl(FGenericError & OutError) override

Defined in OperatingSystemNonUnix.h:77 Starts the operating system for non-unix systems. This method sets the disk letter for each disk partition.

  • OutError The output parameter to store any errors that occur during the startup process.

Returns true if the operating system starts successfully, false otherwise.


virtual override

virtual void PostLoadOperatingSystemImpl(FGenericError & OutError) override

Defined in OperatingSystemNonUnix.h:86 Performs post-loading operations for the operating system in non-Unix systems.

This method is called after the operating system is loaded in non-Unix systems. It performs the necessary post-loading tasks based on the current state of the system.

  • OutError [out] An output parameter to store any errors that occur during the post-loading process.

virtual override

virtual void OnPartitionLoaded(UOperatingSystemPartition & LoadedPartition, constFOperatingSystemPartitionSaveLoad & SaveLoadData) override

Defined in OperatingSystemNonUnix.h:95 This method is called when a partition is loaded. This method sets the disk letter for the loaded partition, using the disk letter from the SaveLoadData if it is not empty, or the first disk letter found if it is empty.

  • LoadedPartition The partition that is loaded.

  • SaveLoadData The data used to load the partition.


virtual const override final

virtual UOperatingSystemPartition * FindPartitionFromLetter(constFName & TargetDiskLetter) const override final

Defined in OperatingSystemNonUnix.h:105 Finds a partition on the non-Unix operating system that matches the given disk letter. This function searches for a partition in the list of disk partitions that has the specified disk letter.

  • TargetDiskLetter The disk letter to search for.

A pointer to the UOperatingSystemPartition object representing the partition if found, nullptr otherwise.


const

FName FindDiskLetterAtIndex(constint32 & AtIndex) const

Defined in OperatingSystemNonUnix.h:114 FindDiskLetterAtIndex method returns the disk letter at the specified index.

  • AtIndex - The index of the disk letter to find.

The disk letter at the specified index, or NAME_None if the index is invalid.

ReturnNameDescription
TArray< FName >DiskLetters

TArray< FName > DiskLetters

Defined in OperatingSystemNonUnix.h:22