Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
storage_paths.h File Reference

Declares persistent storage path helpers. More...

#include <string>
#include <string_view>
Include dependency graph for storage_paths.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string startup::default_storage_path (std::string_view entryName)
 Return the default storage path for a file or directory under Moonlight-managed storage.
 
std::string startup::title_scoped_storage_root ()
 Return the title-scoped storage root used for Xbox save data.
 

Detailed Description

Declares persistent storage path helpers.

Function Documentation

◆ default_storage_path()

std::string startup::default_storage_path ( std::string_view entryName)

Return the default storage path for a file or directory under Moonlight-managed storage.

On nxdk builds this prefixes the supplied entry with the title-scoped save root. On host-native builds it returns the entry unchanged so tests can use relative paths.

Parameters
entryNameFile or directory name stored under the Moonlight data root.
Returns
Fully qualified storage path, or the original entry name on host-native builds.

◆ title_scoped_storage_root()

std::string startup::title_scoped_storage_root ( )

Return the title-scoped storage root used for Xbox save data.

On nxdk builds this resolves the current title ID under E:\UDATA\ and mounts the backing drive when needed. On host-native builds it returns an empty string.

Returns
Title-scoped storage root, or an empty string when unavailable.