diff --git a/src/core/file_sys/fs_save_data_types.h b/src/core/file_sys/fs_save_data_types.h index cdefe908d5..133494bb1c 100644 --- a/src/core/file_sys/fs_save_data_types.h +++ b/src/core/file_sys/fs_save_data_types.h @@ -185,13 +185,13 @@ static_assert(sizeof(SaveDataFilter) == 0x48, "SaveDataFilter has invalid size." static_assert(std::is_trivially_copyable_v, "Data type must be trivially copyable."); -struct HashSalt { +struct SaveDataHashSalt { static constexpr size_t Size = 32; std::array value; }; -static_assert(std::is_trivially_copyable_v, "Data type must be trivially copyable."); -static_assert(sizeof(HashSalt) == HashSalt::Size); +static_assert(std::is_trivially_copyable_v, "Data type must be trivially copyable."); +static_assert(sizeof(SaveDataHashSalt) == SaveDataHashSalt::Size); struct SaveDataCreationInfo2 { @@ -210,7 +210,7 @@ struct SaveDataCreationInfo2 { u8 reserved1; bool is_hash_salt_enabled; u8 reserved2; - HashSalt hash_salt; + SaveDataHashSalt hash_salt; SaveDataMetaType meta_type; u8 reserved3; s32 meta_size; diff --git a/src/core/file_sys/fsmitm_romfsbuild.cpp b/src/core/file_sys/fsmitm_romfsbuild.cpp index 8807bbd0f7..5652aa1947 100644 --- a/src/core/file_sys/fsmitm_romfsbuild.cpp +++ b/src/core/file_sys/fsmitm_romfsbuild.cpp @@ -11,7 +11,7 @@ #include "core/file_sys/vfs/vfs.h" #include "core/file_sys/vfs/vfs_vector.h" -namespace FileSys { +namespace FileSys::RomFSBuilder { constexpr u64 FS_MAX_PATH = 0x301; diff --git a/src/core/file_sys/fsmitm_romfsbuild.h b/src/core/file_sys/fsmitm_romfsbuild.h index dd7ed4a7bf..35f02d0d09 100644 --- a/src/core/file_sys/fsmitm_romfsbuild.h +++ b/src/core/file_sys/fsmitm_romfsbuild.h @@ -9,7 +9,7 @@ #include "common/common_types.h" #include "core/file_sys/vfs/vfs.h" -namespace FileSys { +namespace FileSys::RomFSBuilder { struct RomFSBuildDirectoryContext; struct RomFSBuildFileContext; diff --git a/src/core/file_sys/romfs.cpp b/src/core/file_sys/romfs.cpp index 1d85a500d0..120a6fd503 100644 --- a/src/core/file_sys/romfs.cpp +++ b/src/core/file_sys/romfs.cpp @@ -163,7 +163,7 @@ VirtualFile CreateRomFS(VirtualDir dir, VirtualDir ext) { if (dir == nullptr) return nullptr; - RomFSBuildContext ctx{dir, ext}; + RomFSBuilder::RomFSBuildContext ctx{dir, ext}; return ConcatenatedVfsFile::MakeConcatenatedFile(0, dir->GetName(), ctx.Build()); } diff --git a/src/core/hle/service/ro/ro_results.h b/src/core/hle/service/ro/ro_results.h index 00f05c5a59..1f96caa15c 100644 --- a/src/core/hle/service/ro/ro_results.h +++ b/src/core/hle/service/ro/ro_results.h @@ -1,6 +1,8 @@ // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + #include "core/hle/result.h" namespace Service::RO {