ams: support building unit test programs on windows/linux/macos

This commit is contained in:
Michael Scire
2022-03-06 12:08:20 -08:00
committed by SciresM
parent 9a38be201a
commit 64a97576d0
756 changed files with 33359 additions and 9372 deletions

View File

@@ -73,7 +73,7 @@ namespace ams::htcfs {
R_TRY(ConvertOpenMode(std::addressof(fs_open_mode), open_mode));
/* Open the file. */
s32 handle;
s32 handle = -1;
R_TRY(htcfs::GetClient().OpenFile(std::addressof(handle), path.str, fs_open_mode, case_sensitive));
/* Set the output file. */
@@ -120,7 +120,7 @@ namespace ams::htcfs {
R_UNLESS(IsValidPath(path), htcfs::ResultInvalidArgument());
/* Open the directory. */
s32 handle;
s32 handle = -1;
R_TRY(htcfs::GetClient().OpenDirectory(std::addressof(handle), path.str, static_cast<fs::OpenDirectoryMode>(open_mode), case_sensitive));
/* Set the output directory. */