ReXGlue SDK
Loading...
Searching...
No Matches
rex::kernel::XCONTENT_DATA Struct Reference

#include <rex/kernel/types/content.h>

Inheritance diagram for rex::kernel::XCONTENT_DATA:
[legend]

Classes

union  [union].display_name_raw

Public Member Functions

bool operator== (const XCONTENT_DATA &other) const
std::u16string GetDisplayName () const
std::string GetFileName () const
void SetDisplayName (const std::u16string_view value)
void SetFileName (const std::string_view value)

Public Attributes

be_u32 device_id
BE< XContentType > content_type
union  display_name_raw
char file_name_raw [42]
u8 padding [2]

Detailed Description

Metadata of a content package on a storage device, as the title lays it out.

Member Function Documentation

◆ GetDisplayName()

std::u16string rex::kernel::XCONTENT_DATA::GetDisplayName ( ) const
inline

Returns the display name converted to host byte order.

◆ GetFileName()

std::string rex::kernel::XCONTENT_DATA::GetFileName ( ) const
inline

Returns the file name up to its first null or 42 characters.

◆ operator==()

bool rex::kernel::XCONTENT_DATA::operator== ( const XCONTENT_DATA & other) const
inline

Compares the fields that locate a package, device_id, content_type and file_name.

◆ SetDisplayName()

void rex::kernel::XCONTENT_DATA::SetDisplayName ( const std::u16string_view value)
inline

Sets the display name, blanking the array first because some titles need several terminators.

◆ SetFileName()

void rex::kernel::XCONTENT_DATA::SetFileName ( const std::string_view value)
inline

Sets the file name and zeroes padding, which some titles read as the null terminator.

Member Data Documentation

◆ display_name_raw

union rex::kernel::XCONTENT_DATA::[union].display_name_raw rex::kernel::XCONTENT_DATA::display_name_raw

Big endian UTF-16 name shown to the player.

◆ padding

u8 rex::kernel::XCONTENT_DATA::padding[2]

Some titles use this padding as the null terminator of a full file_name_raw.


The documentation for this struct was generated from the following file: