[Emulator] Added error checking while creating directories

This commit is contained in:
Gliniak
2022-08-20 12:08:19 +02:00
parent f551e59015
commit f19cb704aa
2 changed files with 13 additions and 4 deletions

View File

@@ -883,9 +883,9 @@ void EmulatorWindow::InstallContent() {
// Normalize the path and make absolute.
auto abs_path = std::filesystem::absolute(path);
auto result = emulator_->InstallContentPackage(abs_path);
if (XFAILED(result)) {
if (result != X_STATUS_SUCCESS) {
// TODO: Display a message box.
XELOGE("Failed to install content: {:08X}", result);
XELOGE("Failed to install content! Error code: {:08X}", result);
}
}
}