You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
140 lines
3.7 KiB
140 lines
3.7 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Platform
|
|
{
|
|
/// <summary>
|
|
/// Options for initializing mount paths required for some platforms.
|
|
/// </summary>
|
|
public struct PS4InitializeOptionsSystemInitializeOptions
|
|
{
|
|
/// <summary>
|
|
/// The commandline, as passed to the app.
|
|
/// Set to nullptr or empty if not used.
|
|
/// </summary>
|
|
public Utf8String CommandLine { get; set; }
|
|
|
|
/// <summary>
|
|
/// The base path of the overlay prx.
|
|
/// Passed in nullptr will fall back to default ('/app0').
|
|
/// </summary>
|
|
public Utf8String OverlayPrxBasePath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Allocator for physical memory.
|
|
/// </summary>
|
|
public System.IntPtr AllocatePhysicalMemoryFunction { get; set; }
|
|
|
|
/// <summary>
|
|
/// Corresponding memory releaser for physical memory.
|
|
/// </summary>
|
|
public System.IntPtr ReleasePhysicalMemoryFunction { get; set; }
|
|
|
|
internal void Set(ref PS4InitializeOptionsSystemInitializeOptionsInternal other)
|
|
{
|
|
CommandLine = other.CommandLine;
|
|
OverlayPrxBasePath = other.OverlayPrxBasePath;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct PS4InitializeOptionsSystemInitializeOptionsInternal : IGettable<PS4InitializeOptionsSystemInitializeOptions>, ISettable<PS4InitializeOptionsSystemInitializeOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_CommandLine;
|
|
private System.IntPtr m_OverlayPrxBasePath;
|
|
private System.IntPtr m_AllocatePhysicalMemoryFunction;
|
|
private System.IntPtr m_ReleasePhysicalMemoryFunction;
|
|
|
|
public Utf8String CommandLine
|
|
{
|
|
get
|
|
{
|
|
Utf8String value;
|
|
Helper.Get(m_CommandLine, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_CommandLine);
|
|
}
|
|
}
|
|
|
|
public Utf8String OverlayPrxBasePath
|
|
{
|
|
get
|
|
{
|
|
Utf8String value;
|
|
Helper.Get(m_OverlayPrxBasePath, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_OverlayPrxBasePath);
|
|
}
|
|
}
|
|
|
|
public System.IntPtr AllocatePhysicalMemoryFunction
|
|
{
|
|
get
|
|
{
|
|
return m_AllocatePhysicalMemoryFunction;
|
|
}
|
|
|
|
set
|
|
{
|
|
m_AllocatePhysicalMemoryFunction = value;
|
|
}
|
|
}
|
|
|
|
public System.IntPtr ReleasePhysicalMemoryFunction
|
|
{
|
|
get
|
|
{
|
|
return m_ReleasePhysicalMemoryFunction;
|
|
}
|
|
|
|
set
|
|
{
|
|
m_ReleasePhysicalMemoryFunction = value;
|
|
}
|
|
}
|
|
|
|
public void Set(ref PS4InitializeOptionsSystemInitializeOptions other)
|
|
{
|
|
m_ApiVersion = PlatformInterface.Ps4InitializeoptionssysteminitializeoptionsApiLatest;
|
|
CommandLine = other.CommandLine;
|
|
OverlayPrxBasePath = other.OverlayPrxBasePath;
|
|
AllocatePhysicalMemoryFunction = other.AllocatePhysicalMemoryFunction;
|
|
ReleasePhysicalMemoryFunction = other.ReleasePhysicalMemoryFunction;
|
|
}
|
|
|
|
public void Set(ref PS4InitializeOptionsSystemInitializeOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = PlatformInterface.Ps4InitializeoptionssysteminitializeoptionsApiLatest;
|
|
CommandLine = other.Value.CommandLine;
|
|
OverlayPrxBasePath = other.Value.OverlayPrxBasePath;
|
|
AllocatePhysicalMemoryFunction = other.Value.AllocatePhysicalMemoryFunction;
|
|
ReleasePhysicalMemoryFunction = other.Value.ReleasePhysicalMemoryFunction;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_CommandLine);
|
|
Helper.Dispose(ref m_OverlayPrxBasePath);
|
|
Helper.Dispose(ref m_AllocatePhysicalMemoryFunction);
|
|
Helper.Dispose(ref m_ReleasePhysicalMemoryFunction);
|
|
}
|
|
|
|
public void Get(out PS4InitializeOptionsSystemInitializeOptions output)
|
|
{
|
|
output = new PS4InitializeOptionsSystemInitializeOptions();
|
|
output.Set(ref this);
|
|
}
|
|
}
|
|
}
|