Merge remote-tracking branch 'GliniakRepo/xam_swap_disc' into canary_experimental

This commit is contained in:
Gliniak
2022-05-19 12:07:05 +02:00
3 changed files with 134 additions and 58 deletions

View File

@@ -22,6 +22,7 @@
#include "xenia/kernel/kernel_state.h"
#include "xenia/memory.h"
#include "xenia/patcher/patcher.h"
#include "xenia/vfs/device.h"
#include "xenia/vfs/virtual_file_system.h"
#include "xenia/xbox.h"
@@ -174,6 +175,11 @@ class Emulator {
// Terminates the currently running title.
X_STATUS TerminateTitle();
const std::unique_ptr<vfs::Device> CreateVfsDeviceBasedOnPath(
const std::filesystem::path& path, const std::string_view mount_path);
X_STATUS MountPath(const std::filesystem::path& path,
const std::string_view mount_path);
// Launches a game from the given file path.
// This will attempt to infer the type of the given file (such as an iso, etc)
// using heuristics.
@@ -199,6 +205,7 @@ class Emulator {
// The game can request another title to be loaded.
bool TitleRequested();
void LaunchNextTitle();
const std::filesystem::path GetNewDiscPath(std::string window_message = "");
void WaitUntilExit();