summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.ci/scripts/format/script.sh35
-rw-r--r--.ci/scripts/linux/exec.sh2
-rw-r--r--LICENSES/BSD-2-Clause.txt2
-rw-r--r--LICENSES/BSD-3-Clause.txt2
-rw-r--r--LICENSES/MPL-2.0.txt2
-rw-r--r--externals/ffmpeg/CMakeLists.txt2
-rw-r--r--src/core/cpu_manager.h2
-rw-r--r--src/core/debugger/gdbstub.cpp44
-rw-r--r--src/core/hle/kernel/k_memory_block.h14
-rw-r--r--src/core/hle/kernel/k_page_table_base.cpp12
-rw-r--r--src/core/hle/kernel/k_transfer_memory.cpp8
-rw-r--r--src/core/hle/kernel/svc/svc_transfer_memory.cpp4
-rw-r--r--src/core/hle/kernel/svc_types.h4
-rw-r--r--src/core/hle/service/am/applets/applet_profile_select.h2
-rw-r--r--src/core/hle/service/caps/caps_manager.cpp10
-rw-r--r--src/core/hle/service/caps/caps_manager.h4
-rw-r--r--src/core/hle/service/caps/caps_result.h2
-rw-r--r--src/core/hle/service/friend/friend.cpp2
-rw-r--r--src/core/hle/service/hid/hid.cpp12
-rw-r--r--src/core/hle/service/hid/hidbus.cpp8
-rw-r--r--src/core/hle/service/hid/hidbus.h2
-rw-r--r--src/core/hle/service/hle_ipc.cpp20
-rw-r--r--src/core/hle/service/hle_ipc.h18
-rw-r--r--src/core/hle/service/nfc/common/amiibo_crypto.cpp10
-rw-r--r--src/core/hle/service/nfc/common/device.cpp6
-rw-r--r--src/core/hle/service/nfc/common/device.h2
-rw-r--r--src/core/hle/service/nfp/nfp_types.h14
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h2
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp2
-rw-r--r--src/core/hle/service/nvdrv/nvdata.h2
-rw-r--r--src/core/hle/service/pcv/pcv.cpp10
-rw-r--r--src/core/hle/service/set/system_settings.cpp2
-rw-r--r--src/core/hle/service/set/system_settings.h4
-rw-r--r--src/core/hle/service/set/system_settings_server.cpp10
34 files changed, 136 insertions, 141 deletions
diff --git a/.ci/scripts/format/script.sh b/.ci/scripts/format/script.sh
index 25b0718f0..c9c5e4fac 100755
--- a/.ci/scripts/format/script.sh
+++ b/.ci/scripts/format/script.sh
@@ -3,38 +3,33 @@
3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project 3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later 4# SPDX-License-Identifier: GPL-2.0-or-later
5 5
6if grep -nrI '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .ci* dist/*.desktop \ 6shopt -s nullglob globstar
7
8if grep -nrI '\s$' src **/*.yml **/*.txt **/*.md Doxyfile .gitignore .gitmodules .ci* dist/*.desktop \
7 dist/*.svg dist/*.xml; then 9 dist/*.svg dist/*.xml; then
8 echo Trailing whitespace found, aborting 10 echo Trailing whitespace found, aborting
9 exit 1 11 exit 1
10fi 12fi
11 13
12# Default clang-format points to default 3.5 version one 14# Default clang-format points to default 3.5 version one
13CLANG_FORMAT=${CLANG_FORMAT:-clang-format-15} 15CLANG_FORMAT="${CLANG_FORMAT:-clang-format-15}"
14$CLANG_FORMAT --version 16"$CLANG_FORMAT" --version
15
16if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
17 # Get list of every file modified in this pull request
18 files_to_lint="$(git diff --name-only --diff-filter=ACMRTUXB $TRAVIS_COMMIT_RANGE | grep '^src/[^.]*[.]\(cpp\|h\)$' || true)"
19else
20 # Check everything for branch pushes
21 files_to_lint="$(find src/ -name '*.cpp' -or -name '*.h')"
22fi
23 17
24# Turn off tracing for this because it's too verbose 18# Turn off tracing for this because it's too verbose
25set +x 19set +x
26 20
27for f in $files_to_lint; do 21# Check everything for branch pushes
28 d=$(diff -u "$f" <($CLANG_FORMAT "$f") || true) 22FILES_TO_LINT="$(find src/ -name '*.cpp' -or -name '*.h')"
29 if ! [ -z "$d" ]; then 23
30 echo "!!! $f not compliant to coding style, here is the fix:" 24for f in $FILES_TO_LINT; do
31 echo "$d" 25 echo "$f"
32 fail=1 26 "$CLANG_FORMAT" -i "$f"
33 fi
34done 27done
35 28
36set -x 29DIFF=$(git diff)
37 30
38if [ "$fail" = 1 ]; then 31if [ ! -z "$DIFF" ]; then
32 echo "!!! Not compliant to coding style, here is the fix:"
33 echo "$DIFF"
39 exit 1 34 exit 1
40fi 35fi
diff --git a/.ci/scripts/linux/exec.sh b/.ci/scripts/linux/exec.sh
index fa3d78cc2..04e2486a1 100644
--- a/.ci/scripts/linux/exec.sh
+++ b/.ci/scripts/linux/exec.sh
@@ -9,7 +9,7 @@ chmod a+x ./.ci/scripts/linux/docker.sh
9sudo chown -R 1027 ./ 9sudo chown -R 1027 ./
10 10
11# The environment variables listed below: 11# The environment variables listed below:
12# AZURECIREPO TITLEBARFORMATIDLE TITLEBARFORMATRUNNING DISPLAYVERSION 12# AZURECIREPO TITLEBARFORMATIDLE TITLEBARFORMATRUNNING DISPLAYVERSION
13# are requested in src/common/CMakeLists.txt and appear to be provided somewhere in Azure DevOps 13# are requested in src/common/CMakeLists.txt and appear to be provided somewhere in Azure DevOps
14 14
15docker run -e AZURECIREPO -e TITLEBARFORMATIDLE -e TITLEBARFORMATRUNNING -e DISPLAYVERSION -e ENABLE_COMPATIBILITY_REPORTING -e CCACHE_DIR=/yuzu/ccache -v "$(pwd):/yuzu" -w /yuzu yuzuemu/build-environments:linux-fresh /bin/bash /yuzu/.ci/scripts/linux/docker.sh "$1" 15docker run -e AZURECIREPO -e TITLEBARFORMATIDLE -e TITLEBARFORMATRUNNING -e DISPLAYVERSION -e ENABLE_COMPATIBILITY_REPORTING -e CCACHE_DIR=/yuzu/ccache -v "$(pwd):/yuzu" -w /yuzu yuzuemu/build-environments:linux-fresh /bin/bash /yuzu/.ci/scripts/linux/docker.sh "$1"
diff --git a/LICENSES/BSD-2-Clause.txt b/LICENSES/BSD-2-Clause.txt
index 5f662b354..eb3c575b8 100644
--- a/LICENSES/BSD-2-Clause.txt
+++ b/LICENSES/BSD-2-Clause.txt
@@ -1,4 +1,4 @@
1Copyright (c) <year> <owner> 1Copyright (c) <year> <owner>
2 2
3Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 3Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4 4
diff --git a/LICENSES/BSD-3-Clause.txt b/LICENSES/BSD-3-Clause.txt
index ea890afbc..086d3992c 100644
--- a/LICENSES/BSD-3-Clause.txt
+++ b/LICENSES/BSD-3-Clause.txt
@@ -1,4 +1,4 @@
1Copyright (c) <year> <owner>. 1Copyright (c) <year> <owner>.
2 2
3Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 3Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4 4
diff --git a/LICENSES/MPL-2.0.txt b/LICENSES/MPL-2.0.txt
index 14e2f777f..a612ad981 100644
--- a/LICENSES/MPL-2.0.txt
+++ b/LICENSES/MPL-2.0.txt
@@ -35,7 +35,7 @@ Mozilla Public License Version 2.0
35 means any form of the work other than Source Code Form. 35 means any form of the work other than Source Code Form.
36 36
371.7. "Larger Work" 371.7. "Larger Work"
38 means a work that combines Covered Software with other material, in 38 means a work that combines Covered Software with other material, in
39 a separate file or files, that is not Covered Software. 39 a separate file or files, that is not Covered Software.
40 40
411.8. "License" 411.8. "License"
diff --git a/externals/ffmpeg/CMakeLists.txt b/externals/ffmpeg/CMakeLists.txt
index f2886eb6c..543585d4f 100644
--- a/externals/ffmpeg/CMakeLists.txt
+++ b/externals/ffmpeg/CMakeLists.txt
@@ -138,7 +138,7 @@ if (NOT WIN32 AND NOT ANDROID)
138 --cross-prefix=${TOOLCHAIN}/bin/aarch64-linux-android- 138 --cross-prefix=${TOOLCHAIN}/bin/aarch64-linux-android-
139 --sysroot=${SYSROOT} 139 --sysroot=${SYSROOT}
140 --target-os=android 140 --target-os=android
141 --extra-ldflags="--ld-path=${TOOLCHAIN}/bin/ld.lld" 141 --extra-ldflags="--ld-path=${TOOLCHAIN}/bin/ld.lld"
142 --extra-ldflags="-nostdlib" 142 --extra-ldflags="-nostdlib"
143 ) 143 )
144 endif() 144 endif()
diff --git a/src/core/cpu_manager.h b/src/core/cpu_manager.h
index 0deea9c58..a249dc5f7 100644
--- a/src/core/cpu_manager.h
+++ b/src/core/cpu_manager.h
@@ -64,7 +64,7 @@ public:
64 return [this] { ShutdownThreadFunction(); }; 64 return [this] { ShutdownThreadFunction(); };
65 } 65 }
66 66
67 void PreemptSingleCore(bool from_running_enviroment = true); 67 void PreemptSingleCore(bool from_running_environment = true);
68 68
69 std::size_t CurrentCore() const { 69 std::size_t CurrentCore() const {
70 return current_core.load(); 70 return current_core.load();
diff --git a/src/core/debugger/gdbstub.cpp b/src/core/debugger/gdbstub.cpp
index 66e46c4ba..4051ed4af 100644
--- a/src/core/debugger/gdbstub.cpp
+++ b/src/core/debugger/gdbstub.cpp
@@ -559,28 +559,28 @@ void GDBStub::HandleVCont(std::string_view command, std::vector<DebuggerAction>&
559} 559}
560 560
561constexpr std::array<std::pair<const char*, Kernel::Svc::MemoryState>, 22> MemoryStateNames{{ 561constexpr std::array<std::pair<const char*, Kernel::Svc::MemoryState>, 22> MemoryStateNames{{
562 {"----- Free -----", Kernel::Svc::MemoryState::Free}, 562 {"----- Free ------", Kernel::Svc::MemoryState::Free},
563 {"Io ", Kernel::Svc::MemoryState::Io}, 563 {"Io ", Kernel::Svc::MemoryState::Io},
564 {"Static ", Kernel::Svc::MemoryState::Static}, 564 {"Static ", Kernel::Svc::MemoryState::Static},
565 {"Code ", Kernel::Svc::MemoryState::Code}, 565 {"Code ", Kernel::Svc::MemoryState::Code},
566 {"CodeData ", Kernel::Svc::MemoryState::CodeData}, 566 {"CodeData ", Kernel::Svc::MemoryState::CodeData},
567 {"Normal ", Kernel::Svc::MemoryState::Normal}, 567 {"Normal ", Kernel::Svc::MemoryState::Normal},
568 {"Shared ", Kernel::Svc::MemoryState::Shared}, 568 {"Shared ", Kernel::Svc::MemoryState::Shared},
569 {"AliasCode ", Kernel::Svc::MemoryState::AliasCode}, 569 {"AliasCode ", Kernel::Svc::MemoryState::AliasCode},
570 {"AliasCodeData ", Kernel::Svc::MemoryState::AliasCodeData}, 570 {"AliasCodeData ", Kernel::Svc::MemoryState::AliasCodeData},
571 {"Ipc ", Kernel::Svc::MemoryState::Ipc}, 571 {"Ipc ", Kernel::Svc::MemoryState::Ipc},
572 {"Stack ", Kernel::Svc::MemoryState::Stack}, 572 {"Stack ", Kernel::Svc::MemoryState::Stack},
573 {"ThreadLocal ", Kernel::Svc::MemoryState::ThreadLocal}, 573 {"ThreadLocal ", Kernel::Svc::MemoryState::ThreadLocal},
574 {"Transfered ", Kernel::Svc::MemoryState::Transfered}, 574 {"Transferred ", Kernel::Svc::MemoryState::Transferred},
575 {"SharedTransfered", Kernel::Svc::MemoryState::SharedTransfered}, 575 {"SharedTransferred", Kernel::Svc::MemoryState::SharedTransferred},
576 {"SharedCode ", Kernel::Svc::MemoryState::SharedCode}, 576 {"SharedCode ", Kernel::Svc::MemoryState::SharedCode},
577 {"Inaccessible ", Kernel::Svc::MemoryState::Inaccessible}, 577 {"Inaccessible ", Kernel::Svc::MemoryState::Inaccessible},
578 {"NonSecureIpc ", Kernel::Svc::MemoryState::NonSecureIpc}, 578 {"NonSecureIpc ", Kernel::Svc::MemoryState::NonSecureIpc},
579 {"NonDeviceIpc ", Kernel::Svc::MemoryState::NonDeviceIpc}, 579 {"NonDeviceIpc ", Kernel::Svc::MemoryState::NonDeviceIpc},
580 {"Kernel ", Kernel::Svc::MemoryState::Kernel}, 580 {"Kernel ", Kernel::Svc::MemoryState::Kernel},
581 {"GeneratedCode ", Kernel::Svc::MemoryState::GeneratedCode}, 581 {"GeneratedCode ", Kernel::Svc::MemoryState::GeneratedCode},
582 {"CodeOut ", Kernel::Svc::MemoryState::CodeOut}, 582 {"CodeOut ", Kernel::Svc::MemoryState::CodeOut},
583 {"Coverage ", Kernel::Svc::MemoryState::Coverage}, 583 {"Coverage ", Kernel::Svc::MemoryState::Coverage},
584}}; 584}};
585 585
586static constexpr const char* GetMemoryStateName(Kernel::Svc::MemoryState state) { 586static constexpr const char* GetMemoryStateName(Kernel::Svc::MemoryState state) {
diff --git a/src/core/hle/kernel/k_memory_block.h b/src/core/hle/kernel/k_memory_block.h
index ef3f61321..d2b7e9a66 100644
--- a/src/core/hle/kernel/k_memory_block.h
+++ b/src/core/hle/kernel/k_memory_block.h
@@ -81,12 +81,12 @@ enum class KMemoryState : u32 {
81 81
82 ThreadLocal = static_cast<u32>(Svc::MemoryState::ThreadLocal) | FlagLinearMapped, 82 ThreadLocal = static_cast<u32>(Svc::MemoryState::ThreadLocal) | FlagLinearMapped,
83 83
84 Transfered = static_cast<u32>(Svc::MemoryState::Transfered) | FlagsMisc | 84 Transferred = static_cast<u32>(Svc::MemoryState::Transferred) | FlagsMisc |
85 FlagCanAlignedDeviceMap | FlagCanChangeAttribute | FlagCanUseIpc | 85 FlagCanAlignedDeviceMap | FlagCanChangeAttribute | FlagCanUseIpc |
86 FlagCanUseNonSecureIpc | FlagCanUseNonDeviceIpc, 86 FlagCanUseNonSecureIpc | FlagCanUseNonDeviceIpc,
87 87
88 SharedTransfered = static_cast<u32>(Svc::MemoryState::SharedTransfered) | FlagsMisc | 88 SharedTransferred = static_cast<u32>(Svc::MemoryState::SharedTransferred) | FlagsMisc |
89 FlagCanAlignedDeviceMap | FlagCanUseNonSecureIpc | FlagCanUseNonDeviceIpc, 89 FlagCanAlignedDeviceMap | FlagCanUseNonSecureIpc | FlagCanUseNonDeviceIpc,
90 90
91 SharedCode = static_cast<u32>(Svc::MemoryState::SharedCode) | FlagMapped | 91 SharedCode = static_cast<u32>(Svc::MemoryState::SharedCode) | FlagMapped |
92 FlagReferenceCounted | FlagLinearMapped | FlagCanUseNonSecureIpc | 92 FlagReferenceCounted | FlagLinearMapped | FlagCanUseNonSecureIpc |
@@ -130,8 +130,8 @@ static_assert(static_cast<u32>(KMemoryState::AliasCodeData) == 0x0FFFBD09);
130static_assert(static_cast<u32>(KMemoryState::Ipc) == 0x045C3C0A); 130static_assert(static_cast<u32>(KMemoryState::Ipc) == 0x045C3C0A);
131static_assert(static_cast<u32>(KMemoryState::Stack) == 0x045C3C0B); 131static_assert(static_cast<u32>(KMemoryState::Stack) == 0x045C3C0B);
132static_assert(static_cast<u32>(KMemoryState::ThreadLocal) == 0x0400000C); 132static_assert(static_cast<u32>(KMemoryState::ThreadLocal) == 0x0400000C);
133static_assert(static_cast<u32>(KMemoryState::Transfered) == 0x055C3C0D); 133static_assert(static_cast<u32>(KMemoryState::Transferred) == 0x055C3C0D);
134static_assert(static_cast<u32>(KMemoryState::SharedTransfered) == 0x045C380E); 134static_assert(static_cast<u32>(KMemoryState::SharedTransferred) == 0x045C380E);
135static_assert(static_cast<u32>(KMemoryState::SharedCode) == 0x0440380F); 135static_assert(static_cast<u32>(KMemoryState::SharedCode) == 0x0440380F);
136static_assert(static_cast<u32>(KMemoryState::Inaccessible) == 0x00000010); 136static_assert(static_cast<u32>(KMemoryState::Inaccessible) == 0x00000010);
137static_assert(static_cast<u32>(KMemoryState::NonSecureIpc) == 0x045C3811); 137static_assert(static_cast<u32>(KMemoryState::NonSecureIpc) == 0x045C3811);
diff --git a/src/core/hle/kernel/k_page_table_base.cpp b/src/core/hle/kernel/k_page_table_base.cpp
index 8c1549559..73fbda331 100644
--- a/src/core/hle/kernel/k_page_table_base.cpp
+++ b/src/core/hle/kernel/k_page_table_base.cpp
@@ -486,8 +486,8 @@ KProcessAddress KPageTableBase::GetRegionAddress(Svc::MemoryState state) const {
486 case Svc::MemoryState::Shared: 486 case Svc::MemoryState::Shared:
487 case Svc::MemoryState::AliasCode: 487 case Svc::MemoryState::AliasCode:
488 case Svc::MemoryState::AliasCodeData: 488 case Svc::MemoryState::AliasCodeData:
489 case Svc::MemoryState::Transfered: 489 case Svc::MemoryState::Transferred:
490 case Svc::MemoryState::SharedTransfered: 490 case Svc::MemoryState::SharedTransferred:
491 case Svc::MemoryState::SharedCode: 491 case Svc::MemoryState::SharedCode:
492 case Svc::MemoryState::GeneratedCode: 492 case Svc::MemoryState::GeneratedCode:
493 case Svc::MemoryState::CodeOut: 493 case Svc::MemoryState::CodeOut:
@@ -522,8 +522,8 @@ size_t KPageTableBase::GetRegionSize(Svc::MemoryState state) const {
522 case Svc::MemoryState::Shared: 522 case Svc::MemoryState::Shared:
523 case Svc::MemoryState::AliasCode: 523 case Svc::MemoryState::AliasCode:
524 case Svc::MemoryState::AliasCodeData: 524 case Svc::MemoryState::AliasCodeData:
525 case Svc::MemoryState::Transfered: 525 case Svc::MemoryState::Transferred:
526 case Svc::MemoryState::SharedTransfered: 526 case Svc::MemoryState::SharedTransferred:
527 case Svc::MemoryState::SharedCode: 527 case Svc::MemoryState::SharedCode:
528 case Svc::MemoryState::GeneratedCode: 528 case Svc::MemoryState::GeneratedCode:
529 case Svc::MemoryState::CodeOut: 529 case Svc::MemoryState::CodeOut:
@@ -564,8 +564,8 @@ bool KPageTableBase::CanContain(KProcessAddress addr, size_t size, Svc::MemorySt
564 case Svc::MemoryState::AliasCodeData: 564 case Svc::MemoryState::AliasCodeData:
565 case Svc::MemoryState::Stack: 565 case Svc::MemoryState::Stack:
566 case Svc::MemoryState::ThreadLocal: 566 case Svc::MemoryState::ThreadLocal:
567 case Svc::MemoryState::Transfered: 567 case Svc::MemoryState::Transferred:
568 case Svc::MemoryState::SharedTransfered: 568 case Svc::MemoryState::SharedTransferred:
569 case Svc::MemoryState::SharedCode: 569 case Svc::MemoryState::SharedCode:
570 case Svc::MemoryState::GeneratedCode: 570 case Svc::MemoryState::GeneratedCode:
571 case Svc::MemoryState::CodeOut: 571 case Svc::MemoryState::CodeOut:
diff --git a/src/core/hle/kernel/k_transfer_memory.cpp b/src/core/hle/kernel/k_transfer_memory.cpp
index 0e2e11743..cbb1b02bb 100644
--- a/src/core/hle/kernel/k_transfer_memory.cpp
+++ b/src/core/hle/kernel/k_transfer_memory.cpp
@@ -76,8 +76,8 @@ Result KTransferMemory::Map(KProcessAddress address, size_t size, Svc::MemoryPer
76 76
77 // Map the memory. 77 // Map the memory.
78 const KMemoryState state = (m_owner_perm == Svc::MemoryPermission::None) 78 const KMemoryState state = (m_owner_perm == Svc::MemoryPermission::None)
79 ? KMemoryState::Transfered 79 ? KMemoryState::Transferred
80 : KMemoryState::SharedTransfered; 80 : KMemoryState::SharedTransferred;
81 R_TRY(GetCurrentProcess(m_kernel).GetPageTable().MapPageGroup( 81 R_TRY(GetCurrentProcess(m_kernel).GetPageTable().MapPageGroup(
82 address, *m_page_group, state, KMemoryPermission::UserReadWrite)); 82 address, *m_page_group, state, KMemoryPermission::UserReadWrite));
83 83
@@ -96,8 +96,8 @@ Result KTransferMemory::Unmap(KProcessAddress address, size_t size) {
96 96
97 // Unmap the memory. 97 // Unmap the memory.
98 const KMemoryState state = (m_owner_perm == Svc::MemoryPermission::None) 98 const KMemoryState state = (m_owner_perm == Svc::MemoryPermission::None)
99 ? KMemoryState::Transfered 99 ? KMemoryState::Transferred
100 : KMemoryState::SharedTransfered; 100 : KMemoryState::SharedTransferred;
101 R_TRY(GetCurrentProcess(m_kernel).GetPageTable().UnmapPageGroup(address, *m_page_group, state)); 101 R_TRY(GetCurrentProcess(m_kernel).GetPageTable().UnmapPageGroup(address, *m_page_group, state));
102 102
103 // Mark ourselves as unmapped. 103 // Mark ourselves as unmapped.
diff --git a/src/core/hle/kernel/svc/svc_transfer_memory.cpp b/src/core/hle/kernel/svc/svc_transfer_memory.cpp
index 1f97121b3..671bca23f 100644
--- a/src/core/hle/kernel/svc/svc_transfer_memory.cpp
+++ b/src/core/hle/kernel/svc/svc_transfer_memory.cpp
@@ -90,7 +90,7 @@ Result MapTransferMemory(Core::System& system, Handle trmem_handle, uint64_t add
90 // Verify that the mapping is in range. 90 // Verify that the mapping is in range.
91 R_UNLESS(GetCurrentProcess(system.Kernel()) 91 R_UNLESS(GetCurrentProcess(system.Kernel())
92 .GetPageTable() 92 .GetPageTable()
93 .CanContain(address, size, KMemoryState::Transfered), 93 .CanContain(address, size, KMemoryState::Transferred),
94 ResultInvalidMemoryRegion); 94 ResultInvalidMemoryRegion);
95 95
96 // Map the transfer memory. 96 // Map the transfer memory.
@@ -117,7 +117,7 @@ Result UnmapTransferMemory(Core::System& system, Handle trmem_handle, uint64_t a
117 // Verify that the mapping is in range. 117 // Verify that the mapping is in range.
118 R_UNLESS(GetCurrentProcess(system.Kernel()) 118 R_UNLESS(GetCurrentProcess(system.Kernel())
119 .GetPageTable() 119 .GetPageTable()
120 .CanContain(address, size, KMemoryState::Transfered), 120 .CanContain(address, size, KMemoryState::Transferred),
121 ResultInvalidMemoryRegion); 121 ResultInvalidMemoryRegion);
122 122
123 // Unmap the transfer memory. 123 // Unmap the transfer memory.
diff --git a/src/core/hle/kernel/svc_types.h b/src/core/hle/kernel/svc_types.h
index 50de02e36..ab432ea78 100644
--- a/src/core/hle/kernel/svc_types.h
+++ b/src/core/hle/kernel/svc_types.h
@@ -27,8 +27,8 @@ enum class MemoryState : u32 {
27 Ipc = 0x0A, 27 Ipc = 0x0A,
28 Stack = 0x0B, 28 Stack = 0x0B,
29 ThreadLocal = 0x0C, 29 ThreadLocal = 0x0C,
30 Transfered = 0x0D, 30 Transferred = 0x0D,
31 SharedTransfered = 0x0E, 31 SharedTransferred = 0x0E,
32 SharedCode = 0x0F, 32 SharedCode = 0x0F,
33 Inaccessible = 0x10, 33 Inaccessible = 0x10,
34 NonSecureIpc = 0x11, 34 NonSecureIpc = 0x11,
diff --git a/src/core/hle/service/am/applets/applet_profile_select.h b/src/core/hle/service/am/applets/applet_profile_select.h
index 369f9250f..673eed516 100644
--- a/src/core/hle/service/am/applets/applet_profile_select.h
+++ b/src/core/hle/service/am/applets/applet_profile_select.h
@@ -76,7 +76,7 @@ struct UiSettingsDisplayOptions {
76 bool is_system_or_launcher; 76 bool is_system_or_launcher;
77 bool is_registration_permitted; 77 bool is_registration_permitted;
78 bool show_skip_button; 78 bool show_skip_button;
79 bool aditional_select; 79 bool additional_select;
80 bool show_user_selector; 80 bool show_user_selector;
81 bool is_unqualified_user_selectable; 81 bool is_unqualified_user_selectable;
82}; 82};
diff --git a/src/core/hle/service/caps/caps_manager.cpp b/src/core/hle/service/caps/caps_manager.cpp
index 96b225d5f..261fc204c 100644
--- a/src/core/hle/service/caps/caps_manager.cpp
+++ b/src/core/hle/service/caps/caps_manager.cpp
@@ -85,7 +85,7 @@ Result AlbumManager::GetAlbumFileList(std::vector<AlbumEntry>& out_entries, Albu
85} 85}
86 86
87Result AlbumManager::GetAlbumFileList(std::vector<ApplicationAlbumFileEntry>& out_entries, 87Result AlbumManager::GetAlbumFileList(std::vector<ApplicationAlbumFileEntry>& out_entries,
88 ContentType contex_type, s64 start_posix_time, 88 ContentType content_type, s64 start_posix_time,
89 s64 end_posix_time, u64 aruid) const { 89 s64 end_posix_time, u64 aruid) const {
90 if (!is_mounted) { 90 if (!is_mounted) {
91 return ResultIsNotMounted; 91 return ResultIsNotMounted;
@@ -94,7 +94,7 @@ Result AlbumManager::GetAlbumFileList(std::vector<ApplicationAlbumFileEntry>& ou
94 std::vector<ApplicationAlbumEntry> album_entries; 94 std::vector<ApplicationAlbumEntry> album_entries;
95 const auto start_date = ConvertToAlbumDateTime(start_posix_time); 95 const auto start_date = ConvertToAlbumDateTime(start_posix_time);
96 const auto end_date = ConvertToAlbumDateTime(end_posix_time); 96 const auto end_date = ConvertToAlbumDateTime(end_posix_time);
97 const auto result = GetAlbumFileList(album_entries, contex_type, start_date, end_date, aruid); 97 const auto result = GetAlbumFileList(album_entries, content_type, start_date, end_date, aruid);
98 98
99 if (result.IsError()) { 99 if (result.IsError()) {
100 return result; 100 return result;
@@ -113,14 +113,14 @@ Result AlbumManager::GetAlbumFileList(std::vector<ApplicationAlbumFileEntry>& ou
113} 113}
114 114
115Result AlbumManager::GetAlbumFileList(std::vector<ApplicationAlbumEntry>& out_entries, 115Result AlbumManager::GetAlbumFileList(std::vector<ApplicationAlbumEntry>& out_entries,
116 ContentType contex_type, AlbumFileDateTime start_date, 116 ContentType content_type, AlbumFileDateTime start_date,
117 AlbumFileDateTime end_date, u64 aruid) const { 117 AlbumFileDateTime end_date, u64 aruid) const {
118 if (!is_mounted) { 118 if (!is_mounted) {
119 return ResultIsNotMounted; 119 return ResultIsNotMounted;
120 } 120 }
121 121
122 for (auto& [file_id, path] : album_files) { 122 for (auto& [file_id, path] : album_files) {
123 if (file_id.type != contex_type) { 123 if (file_id.type != content_type) {
124 continue; 124 continue;
125 } 125 }
126 if (file_id.date > start_date) { 126 if (file_id.date > start_date) {
@@ -139,7 +139,7 @@ Result AlbumManager::GetAlbumFileList(std::vector<ApplicationAlbumEntry>& out_en
139 .hash{}, 139 .hash{},
140 .datetime = file_id.date, 140 .datetime = file_id.date,
141 .storage = file_id.storage, 141 .storage = file_id.storage,
142 .content = contex_type, 142 .content = content_type,
143 .unknown = 1, 143 .unknown = 1,
144 }; 144 };
145 out_entries.push_back(entry); 145 out_entries.push_back(entry);
diff --git a/src/core/hle/service/caps/caps_manager.h b/src/core/hle/service/caps/caps_manager.h
index e20c70c7b..6fd34f589 100644
--- a/src/core/hle/service/caps/caps_manager.h
+++ b/src/core/hle/service/caps/caps_manager.h
@@ -45,10 +45,10 @@ public:
45 Result GetAlbumFileList(std::vector<AlbumEntry>& out_entries, AlbumStorage storage, 45 Result GetAlbumFileList(std::vector<AlbumEntry>& out_entries, AlbumStorage storage,
46 u8 flags) const; 46 u8 flags) const;
47 Result GetAlbumFileList(std::vector<ApplicationAlbumFileEntry>& out_entries, 47 Result GetAlbumFileList(std::vector<ApplicationAlbumFileEntry>& out_entries,
48 ContentType contex_type, s64 start_posix_time, s64 end_posix_time, 48 ContentType content_type, s64 start_posix_time, s64 end_posix_time,
49 u64 aruid) const; 49 u64 aruid) const;
50 Result GetAlbumFileList(std::vector<ApplicationAlbumEntry>& out_entries, 50 Result GetAlbumFileList(std::vector<ApplicationAlbumEntry>& out_entries,
51 ContentType contex_type, AlbumFileDateTime start_date, 51 ContentType content_type, AlbumFileDateTime start_date,
52 AlbumFileDateTime end_date, u64 aruid) const; 52 AlbumFileDateTime end_date, u64 aruid) const;
53 Result GetAutoSavingStorage(bool& out_is_autosaving) const; 53 Result GetAutoSavingStorage(bool& out_is_autosaving) const;
54 Result LoadAlbumScreenShotImage(LoadAlbumScreenShotImageOutput& out_image_output, 54 Result LoadAlbumScreenShotImage(LoadAlbumScreenShotImageOutput& out_image_output,
diff --git a/src/core/hle/service/caps/caps_result.h b/src/core/hle/service/caps/caps_result.h
index c65e5fb9a..179ae4840 100644
--- a/src/core/hle/service/caps/caps_result.h
+++ b/src/core/hle/service/caps/caps_result.h
@@ -12,7 +12,7 @@ constexpr Result ResultUnknown5(ErrorModule::Capture, 5);
12constexpr Result ResultUnknown6(ErrorModule::Capture, 6); 12constexpr Result ResultUnknown6(ErrorModule::Capture, 6);
13constexpr Result ResultUnknown7(ErrorModule::Capture, 7); 13constexpr Result ResultUnknown7(ErrorModule::Capture, 7);
14constexpr Result ResultOutOfRange(ErrorModule::Capture, 8); 14constexpr Result ResultOutOfRange(ErrorModule::Capture, 8);
15constexpr Result ResulInvalidTimestamp(ErrorModule::Capture, 12); 15constexpr Result ResultInvalidTimestamp(ErrorModule::Capture, 12);
16constexpr Result ResultInvalidStorage(ErrorModule::Capture, 13); 16constexpr Result ResultInvalidStorage(ErrorModule::Capture, 13);
17constexpr Result ResultInvalidFileContents(ErrorModule::Capture, 14); 17constexpr Result ResultInvalidFileContents(ErrorModule::Capture, 14);
18constexpr Result ResultIsNotMounted(ErrorModule::Capture, 21); 18constexpr Result ResultIsNotMounted(ErrorModule::Capture, 21);
diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cpp
index 0507b14e7..aeb849efa 100644
--- a/src/core/hle/service/friend/friend.cpp
+++ b/src/core/hle/service/friend/friend.cpp
@@ -131,7 +131,7 @@ private:
131 u8 is_favorite; 131 u8 is_favorite;
132 u8 same_app; 132 u8 same_app;
133 u8 same_app_played; 133 u8 same_app_played;
134 u8 arbitary_app_played; 134 u8 arbitrary_app_played;
135 u64 group_id; 135 u64 group_id;
136 }; 136 };
137 static_assert(sizeof(SizedFriendFilter) == 0x10, "SizedFriendFilter is an invalid size"); 137 static_assert(sizeof(SizedFriendFilter) == 0x10, "SizedFriendFilter is an invalid size");
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index fc8a3ab66..fc03a0a5f 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -18,23 +18,23 @@ namespace Service::HID {
18 18
19void LoopProcess(Core::System& system) { 19void LoopProcess(Core::System& system) {
20 auto server_manager = std::make_unique<ServerManager>(system); 20 auto server_manager = std::make_unique<ServerManager>(system);
21 std::shared_ptr<ResourceManager> resouce_manager = std::make_shared<ResourceManager>(system); 21 std::shared_ptr<ResourceManager> resource_manager = std::make_shared<ResourceManager>(system);
22 std::shared_ptr<HidFirmwareSettings> firmware_settings = 22 std::shared_ptr<HidFirmwareSettings> firmware_settings =
23 std::make_shared<HidFirmwareSettings>(); 23 std::make_shared<HidFirmwareSettings>();
24 24
25 // TODO: Remove this hack until this service is emulated properly. 25 // TODO: Remove this hack until this service is emulated properly.
26 const auto process_list = system.Kernel().GetProcessList(); 26 const auto process_list = system.Kernel().GetProcessList();
27 if (!process_list.empty()) { 27 if (!process_list.empty()) {
28 resouce_manager->Initialize(); 28 resource_manager->Initialize();
29 resouce_manager->RegisterAppletResourceUserId(process_list[0]->GetId(), true); 29 resource_manager->RegisterAppletResourceUserId(process_list[0]->GetId(), true);
30 } 30 }
31 31
32 server_manager->RegisterNamedService( 32 server_manager->RegisterNamedService(
33 "hid", std::make_shared<IHidServer>(system, resouce_manager, firmware_settings)); 33 "hid", std::make_shared<IHidServer>(system, resource_manager, firmware_settings));
34 server_manager->RegisterNamedService( 34 server_manager->RegisterNamedService(
35 "hid:dbg", std::make_shared<IHidDebugServer>(system, resouce_manager)); 35 "hid:dbg", std::make_shared<IHidDebugServer>(system, resource_manager));
36 server_manager->RegisterNamedService( 36 server_manager->RegisterNamedService(
37 "hid:sys", std::make_shared<IHidSystemServer>(system, resouce_manager)); 37 "hid:sys", std::make_shared<IHidSystemServer>(system, resource_manager));
38 38
39 server_manager->RegisterNamedService("hidbus", std::make_shared<HidBus>(system)); 39 server_manager->RegisterNamedService("hidbus", std::make_shared<HidBus>(system));
40 40
diff --git a/src/core/hle/service/hid/hidbus.cpp b/src/core/hle/service/hid/hidbus.cpp
index 46f503d38..c903ee8b8 100644
--- a/src/core/hle/service/hid/hidbus.cpp
+++ b/src/core/hle/service/hid/hidbus.cpp
@@ -67,7 +67,7 @@ HidBus::~HidBus() {
67void HidBus::UpdateHidbus(std::chrono::nanoseconds ns_late) { 67void HidBus::UpdateHidbus(std::chrono::nanoseconds ns_late) {
68 if (is_hidbus_enabled) { 68 if (is_hidbus_enabled) {
69 for (std::size_t i = 0; i < devices.size(); ++i) { 69 for (std::size_t i = 0; i < devices.size(); ++i) {
70 if (!devices[i].is_device_initializated) { 70 if (!devices[i].is_device_initialized) {
71 continue; 71 continue;
72 } 72 }
73 auto& device = devices[i].device; 73 auto& device = devices[i].device;
@@ -213,7 +213,7 @@ void HidBus::Initialize(HLERequestContext& ctx) {
213 213
214 if (bus_handle_.internal_index == 0 && Settings::values.enable_ring_controller) { 214 if (bus_handle_.internal_index == 0 && Settings::values.enable_ring_controller) {
215 MakeDevice<RingController>(bus_handle_); 215 MakeDevice<RingController>(bus_handle_);
216 devices[device_index.value()].is_device_initializated = true; 216 devices[device_index.value()].is_device_initialized = true;
217 devices[device_index.value()].device->ActivateDevice(); 217 devices[device_index.value()].device->ActivateDevice();
218 cur_entry.is_in_focus = true; 218 cur_entry.is_in_focus = true;
219 cur_entry.is_connected = true; 219 cur_entry.is_connected = true;
@@ -222,7 +222,7 @@ void HidBus::Initialize(HLERequestContext& ctx) {
222 cur_entry.is_polling_mode = false; 222 cur_entry.is_polling_mode = false;
223 } else { 223 } else {
224 MakeDevice<HidbusStubbed>(bus_handle_); 224 MakeDevice<HidbusStubbed>(bus_handle_);
225 devices[device_index.value()].is_device_initializated = true; 225 devices[device_index.value()].is_device_initialized = true;
226 cur_entry.is_in_focus = true; 226 cur_entry.is_in_focus = true;
227 cur_entry.is_connected = false; 227 cur_entry.is_connected = false;
228 cur_entry.is_connected_result = ResultSuccess; 228 cur_entry.is_connected_result = ResultSuccess;
@@ -261,7 +261,7 @@ void HidBus::Finalize(HLERequestContext& ctx) {
261 const auto entry_index = devices[device_index.value()].handle.internal_index; 261 const auto entry_index = devices[device_index.value()].handle.internal_index;
262 auto& cur_entry = hidbus_status.entries[entry_index]; 262 auto& cur_entry = hidbus_status.entries[entry_index];
263 auto& device = devices[device_index.value()].device; 263 auto& device = devices[device_index.value()].device;
264 devices[device_index.value()].is_device_initializated = false; 264 devices[device_index.value()].is_device_initialized = false;
265 device->DeactivateDevice(); 265 device->DeactivateDevice();
266 266
267 cur_entry.is_in_focus = true; 267 cur_entry.is_in_focus = true;
diff --git a/src/core/hle/service/hid/hidbus.h b/src/core/hle/service/hid/hidbus.h
index 05f62f634..03d9f6863 100644
--- a/src/core/hle/service/hid/hidbus.h
+++ b/src/core/hle/service/hid/hidbus.h
@@ -89,7 +89,7 @@ private:
89 static_assert(sizeof(HidbusStatusManager) <= 0x1000, "HidbusStatusManager is an invalid size"); 89 static_assert(sizeof(HidbusStatusManager) <= 0x1000, "HidbusStatusManager is an invalid size");
90 90
91 struct HidbusDevice { 91 struct HidbusDevice {
92 bool is_device_initializated{}; 92 bool is_device_initialized{};
93 BusHandle handle{}; 93 BusHandle handle{};
94 std::unique_ptr<HidbusBase> device{nullptr}; 94 std::unique_ptr<HidbusBase> device{nullptr};
95 }; 95 };
diff --git a/src/core/hle/service/hle_ipc.cpp b/src/core/hle/service/hle_ipc.cpp
index 39df77e43..3f38ceb03 100644
--- a/src/core/hle/service/hle_ipc.cpp
+++ b/src/core/hle/service/hle_ipc.cpp
@@ -181,22 +181,22 @@ void HLERequestContext::ParseCommandBuffer(u32_le* src_cmdbuf, bool incoming) {
181 } 181 }
182 } 182 }
183 183
184 buffer_x_desciptors.reserve(command_header->num_buf_x_descriptors); 184 buffer_x_descriptors.reserve(command_header->num_buf_x_descriptors);
185 buffer_a_desciptors.reserve(command_header->num_buf_a_descriptors); 185 buffer_a_descriptors.reserve(command_header->num_buf_a_descriptors);
186 buffer_b_desciptors.reserve(command_header->num_buf_b_descriptors); 186 buffer_b_descriptors.reserve(command_header->num_buf_b_descriptors);
187 buffer_w_desciptors.reserve(command_header->num_buf_w_descriptors); 187 buffer_w_descriptors.reserve(command_header->num_buf_w_descriptors);
188 188
189 for (u32 i = 0; i < command_header->num_buf_x_descriptors; ++i) { 189 for (u32 i = 0; i < command_header->num_buf_x_descriptors; ++i) {
190 buffer_x_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorX>()); 190 buffer_x_descriptors.push_back(rp.PopRaw<IPC::BufferDescriptorX>());
191 } 191 }
192 for (u32 i = 0; i < command_header->num_buf_a_descriptors; ++i) { 192 for (u32 i = 0; i < command_header->num_buf_a_descriptors; ++i) {
193 buffer_a_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>()); 193 buffer_a_descriptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
194 } 194 }
195 for (u32 i = 0; i < command_header->num_buf_b_descriptors; ++i) { 195 for (u32 i = 0; i < command_header->num_buf_b_descriptors; ++i) {
196 buffer_b_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>()); 196 buffer_b_descriptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
197 } 197 }
198 for (u32 i = 0; i < command_header->num_buf_w_descriptors; ++i) { 198 for (u32 i = 0; i < command_header->num_buf_w_descriptors; ++i) {
199 buffer_w_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>()); 199 buffer_w_descriptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
200 } 200 }
201 201
202 const auto buffer_c_offset = rp.GetCurrentOffset() + command_header->data_size; 202 const auto buffer_c_offset = rp.GetCurrentOffset() + command_header->data_size;
@@ -246,7 +246,7 @@ void HLERequestContext::ParseCommandBuffer(u32_le* src_cmdbuf, bool incoming) {
246 IPC::CommandHeader::BufferDescriptorCFlag::InlineDescriptor) { 246 IPC::CommandHeader::BufferDescriptorCFlag::InlineDescriptor) {
247 if (command_header->buf_c_descriptor_flags == 247 if (command_header->buf_c_descriptor_flags ==
248 IPC::CommandHeader::BufferDescriptorCFlag::OneDescriptor) { 248 IPC::CommandHeader::BufferDescriptorCFlag::OneDescriptor) {
249 buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>()); 249 buffer_c_descriptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>());
250 } else { 250 } else {
251 u32 num_buf_c_descriptors = 251 u32 num_buf_c_descriptors =
252 static_cast<u32>(command_header->buf_c_descriptor_flags.Value()) - 2; 252 static_cast<u32>(command_header->buf_c_descriptor_flags.Value()) - 2;
@@ -256,7 +256,7 @@ void HLERequestContext::ParseCommandBuffer(u32_le* src_cmdbuf, bool incoming) {
256 ASSERT(num_buf_c_descriptors < 14); 256 ASSERT(num_buf_c_descriptors < 14);
257 257
258 for (u32 i = 0; i < num_buf_c_descriptors; ++i) { 258 for (u32 i = 0; i < num_buf_c_descriptors; ++i) {
259 buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>()); 259 buffer_c_descriptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>());
260 } 260 }
261 } 261 }
262 } 262 }
diff --git a/src/core/hle/service/hle_ipc.h b/src/core/hle/service/hle_ipc.h
index 40d86943e..440737db5 100644
--- a/src/core/hle/service/hle_ipc.h
+++ b/src/core/hle/service/hle_ipc.h
@@ -232,19 +232,19 @@ public:
232 } 232 }
233 233
234 [[nodiscard]] const std::vector<IPC::BufferDescriptorX>& BufferDescriptorX() const { 234 [[nodiscard]] const std::vector<IPC::BufferDescriptorX>& BufferDescriptorX() const {
235 return buffer_x_desciptors; 235 return buffer_x_descriptors;
236 } 236 }
237 237
238 [[nodiscard]] const std::vector<IPC::BufferDescriptorABW>& BufferDescriptorA() const { 238 [[nodiscard]] const std::vector<IPC::BufferDescriptorABW>& BufferDescriptorA() const {
239 return buffer_a_desciptors; 239 return buffer_a_descriptors;
240 } 240 }
241 241
242 [[nodiscard]] const std::vector<IPC::BufferDescriptorABW>& BufferDescriptorB() const { 242 [[nodiscard]] const std::vector<IPC::BufferDescriptorABW>& BufferDescriptorB() const {
243 return buffer_b_desciptors; 243 return buffer_b_descriptors;
244 } 244 }
245 245
246 [[nodiscard]] const std::vector<IPC::BufferDescriptorC>& BufferDescriptorC() const { 246 [[nodiscard]] const std::vector<IPC::BufferDescriptorC>& BufferDescriptorC() const {
247 return buffer_c_desciptors; 247 return buffer_c_descriptors;
248 } 248 }
249 249
250 [[nodiscard]] const IPC::DomainMessageHeader& GetDomainMessageHeader() const { 250 [[nodiscard]] const IPC::DomainMessageHeader& GetDomainMessageHeader() const {
@@ -406,11 +406,11 @@ private:
406 std::optional<IPC::HandleDescriptorHeader> handle_descriptor_header; 406 std::optional<IPC::HandleDescriptorHeader> handle_descriptor_header;
407 std::optional<IPC::DataPayloadHeader> data_payload_header; 407 std::optional<IPC::DataPayloadHeader> data_payload_header;
408 std::optional<IPC::DomainMessageHeader> domain_message_header; 408 std::optional<IPC::DomainMessageHeader> domain_message_header;
409 std::vector<IPC::BufferDescriptorX> buffer_x_desciptors; 409 std::vector<IPC::BufferDescriptorX> buffer_x_descriptors;
410 std::vector<IPC::BufferDescriptorABW> buffer_a_desciptors; 410 std::vector<IPC::BufferDescriptorABW> buffer_a_descriptors;
411 std::vector<IPC::BufferDescriptorABW> buffer_b_desciptors; 411 std::vector<IPC::BufferDescriptorABW> buffer_b_descriptors;
412 std::vector<IPC::BufferDescriptorABW> buffer_w_desciptors; 412 std::vector<IPC::BufferDescriptorABW> buffer_w_descriptors;
413 std::vector<IPC::BufferDescriptorC> buffer_c_desciptors; 413 std::vector<IPC::BufferDescriptorC> buffer_c_descriptors;
414 414
415 u32_le command{}; 415 u32_le command{};
416 u64 pid{}; 416 u64 pid{};
diff --git a/src/core/hle/service/nfc/common/amiibo_crypto.cpp b/src/core/hle/service/nfc/common/amiibo_crypto.cpp
index 9556e9193..4274a92c9 100644
--- a/src/core/hle/service/nfc/common/amiibo_crypto.cpp
+++ b/src/core/hle/service/nfc/common/amiibo_crypto.cpp
@@ -19,7 +19,7 @@ namespace Service::NFP::AmiiboCrypto {
19bool IsAmiiboValid(const EncryptedNTAG215File& ntag_file) { 19bool IsAmiiboValid(const EncryptedNTAG215File& ntag_file) {
20 const auto& amiibo_data = ntag_file.user_memory; 20 const auto& amiibo_data = ntag_file.user_memory;
21 LOG_DEBUG(Service_NFP, "uuid_lock=0x{0:x}", ntag_file.static_lock); 21 LOG_DEBUG(Service_NFP, "uuid_lock=0x{0:x}", ntag_file.static_lock);
22 LOG_DEBUG(Service_NFP, "compability_container=0x{0:x}", ntag_file.compability_container); 22 LOG_DEBUG(Service_NFP, "compatibility_container=0x{0:x}", ntag_file.compatibility_container);
23 LOG_DEBUG(Service_NFP, "write_count={}", static_cast<u16>(amiibo_data.write_counter)); 23 LOG_DEBUG(Service_NFP, "write_count={}", static_cast<u16>(amiibo_data.write_counter));
24 24
25 LOG_DEBUG(Service_NFP, "character_id=0x{0:x}", amiibo_data.model_info.character_id); 25 LOG_DEBUG(Service_NFP, "character_id=0x{0:x}", amiibo_data.model_info.character_id);
@@ -49,7 +49,7 @@ bool IsAmiiboValid(const EncryptedNTAG215File& ntag_file) {
49 if (ntag_file.static_lock != 0xE00F) { 49 if (ntag_file.static_lock != 0xE00F) {
50 return false; 50 return false;
51 } 51 }
52 if (ntag_file.compability_container != 0xEEFF10F1U) { 52 if (ntag_file.compatibility_container != 0xEEFF10F1U) {
53 return false; 53 return false;
54 } 54 }
55 if (amiibo_data.model_info.tag_type != NFC::PackedTagType::Type2) { 55 if (amiibo_data.model_info.tag_type != NFC::PackedTagType::Type2) {
@@ -78,7 +78,7 @@ NTAG215File NfcDataToEncodedData(const EncryptedNTAG215File& nfc_data) {
78 encoded_data.uid_crc_check2 = nfc_data.uuid_crc_check2; 78 encoded_data.uid_crc_check2 = nfc_data.uuid_crc_check2;
79 encoded_data.internal_number = nfc_data.internal_number; 79 encoded_data.internal_number = nfc_data.internal_number;
80 encoded_data.static_lock = nfc_data.static_lock; 80 encoded_data.static_lock = nfc_data.static_lock;
81 encoded_data.compability_container = nfc_data.compability_container; 81 encoded_data.compatibility_container = nfc_data.compatibility_container;
82 encoded_data.hmac_data = nfc_data.user_memory.hmac_data; 82 encoded_data.hmac_data = nfc_data.user_memory.hmac_data;
83 encoded_data.constant_value = nfc_data.user_memory.constant_value; 83 encoded_data.constant_value = nfc_data.user_memory.constant_value;
84 encoded_data.write_counter = nfc_data.user_memory.write_counter; 84 encoded_data.write_counter = nfc_data.user_memory.write_counter;
@@ -112,7 +112,7 @@ EncryptedNTAG215File EncodedDataToNfcData(const NTAG215File& encoded_data) {
112 nfc_data.uuid_crc_check2 = encoded_data.uid_crc_check2; 112 nfc_data.uuid_crc_check2 = encoded_data.uid_crc_check2;
113 nfc_data.internal_number = encoded_data.internal_number; 113 nfc_data.internal_number = encoded_data.internal_number;
114 nfc_data.static_lock = encoded_data.static_lock; 114 nfc_data.static_lock = encoded_data.static_lock;
115 nfc_data.compability_container = encoded_data.compability_container; 115 nfc_data.compatibility_container = encoded_data.compatibility_container;
116 nfc_data.user_memory.hmac_data = encoded_data.hmac_data; 116 nfc_data.user_memory.hmac_data = encoded_data.hmac_data;
117 nfc_data.user_memory.constant_value = encoded_data.constant_value; 117 nfc_data.user_memory.constant_value = encoded_data.constant_value;
118 nfc_data.user_memory.write_counter = encoded_data.write_counter; 118 nfc_data.user_memory.write_counter = encoded_data.write_counter;
@@ -257,7 +257,7 @@ void Cipher(const DerivedKeys& keys, const NTAG215File& in_data, NTAG215File& ou
257 out_data.uid_crc_check2 = in_data.uid_crc_check2; 257 out_data.uid_crc_check2 = in_data.uid_crc_check2;
258 out_data.internal_number = in_data.internal_number; 258 out_data.internal_number = in_data.internal_number;
259 out_data.static_lock = in_data.static_lock; 259 out_data.static_lock = in_data.static_lock;
260 out_data.compability_container = in_data.compability_container; 260 out_data.compatibility_container = in_data.compatibility_container;
261 261
262 out_data.constant_value = in_data.constant_value; 262 out_data.constant_value = in_data.constant_value;
263 out_data.write_counter = in_data.write_counter; 263 out_data.write_counter = in_data.write_counter;
diff --git a/src/core/hle/service/nfc/common/device.cpp b/src/core/hle/service/nfc/common/device.cpp
index b37fb6da3..31cc87acc 100644
--- a/src/core/hle/service/nfc/common/device.cpp
+++ b/src/core/hle/service/nfc/common/device.cpp
@@ -75,7 +75,7 @@ void NfcDevice::NpadUpdate(Core::HID::ControllerTriggerType type) {
75 return; 75 return;
76 } 76 }
77 77
78 if (!is_initalized) { 78 if (!is_initialized) {
79 return; 79 return;
80 } 80 }
81 81
@@ -207,7 +207,7 @@ void NfcDevice::Initialize() {
207 return; 207 return;
208 } 208 }
209 209
210 is_initalized = npad_device->AddNfcHandle(); 210 is_initialized = npad_device->AddNfcHandle();
211} 211}
212 212
213void NfcDevice::Finalize() { 213void NfcDevice::Finalize() {
@@ -226,7 +226,7 @@ void NfcDevice::Finalize() {
226 } 226 }
227 227
228 device_state = DeviceState::Unavailable; 228 device_state = DeviceState::Unavailable;
229 is_initalized = false; 229 is_initialized = false;
230} 230}
231 231
232Result NfcDevice::StartDetection(NfcProtocol allowed_protocol) { 232Result NfcDevice::StartDetection(NfcProtocol allowed_protocol) {
diff --git a/src/core/hle/service/nfc/common/device.h b/src/core/hle/service/nfc/common/device.h
index d8efe25ec..15f9b25da 100644
--- a/src/core/hle/service/nfc/common/device.h
+++ b/src/core/hle/service/nfc/common/device.h
@@ -126,7 +126,7 @@ private:
126 Kernel::KEvent* deactivate_event = nullptr; 126 Kernel::KEvent* deactivate_event = nullptr;
127 Kernel::KEvent* availability_change_event = nullptr; 127 Kernel::KEvent* availability_change_event = nullptr;
128 128
129 bool is_initalized{}; 129 bool is_initialized{};
130 NfcProtocol allowed_protocols{}; 130 NfcProtocol allowed_protocols{};
131 DeviceState device_state{DeviceState::Unavailable}; 131 DeviceState device_state{DeviceState::Unavailable};
132 132
diff --git a/src/core/hle/service/nfp/nfp_types.h b/src/core/hle/service/nfp/nfp_types.h
index f96d21220..2505eb551 100644
--- a/src/core/hle/service/nfp/nfp_types.h
+++ b/src/core/hle/service/nfp/nfp_types.h
@@ -243,12 +243,12 @@ static_assert(sizeof(EncryptedAmiiboFile) == 0x1F8, "AmiiboFile is an invalid si
243struct NTAG215File { 243struct NTAG215File {
244 u8 uid_crc_check2; 244 u8 uid_crc_check2;
245 u8 internal_number; 245 u8 internal_number;
246 u16 static_lock; // Set defined pages as read only 246 u16 static_lock; // Set defined pages as read only
247 u32 compability_container; // Defines available memory 247 u32 compatibility_container; // Defines available memory
248 HashData hmac_data; // Hash 248 HashData hmac_data; // Hash
249 u8 constant_value; // Must be A5 249 u8 constant_value; // Must be A5
250 u16_be write_counter; // Number of times the amiibo has been written? 250 u16_be write_counter; // Number of times the amiibo has been written?
251 u8 amiibo_version; // Amiibo file version 251 u8 amiibo_version; // Amiibo file version
252 AmiiboSettings settings; 252 AmiiboSettings settings;
253 Service::Mii::Ver3StoreData owner_mii; // Mii data 253 Service::Mii::Ver3StoreData owner_mii; // Mii data
254 u64_be application_id; // Game id 254 u64_be application_id; // Game id
@@ -278,7 +278,7 @@ struct EncryptedNTAG215File {
278 u8 uuid_crc_check2; 278 u8 uuid_crc_check2;
279 u8 internal_number; 279 u8 internal_number;
280 u16 static_lock; // Set defined pages as read only 280 u16 static_lock; // Set defined pages as read only
281 u32 compability_container; // Defines available memory 281 u32 compatibility_container; // Defines available memory
282 EncryptedAmiiboFile user_memory; // Writable data 282 EncryptedAmiiboFile user_memory; // Writable data
283 u32 dynamic_lock; // Dynamic lock 283 u32 dynamic_lock; // Dynamic lock
284 u32 CFG0; // Defines memory protected by password 284 u32 CFG0; // Defines memory protected by password
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
index 932997e75..79a21683d 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
@@ -90,7 +90,7 @@ private:
90 u64_le align; 90 u64_le align;
91 }; 91 };
92 }; 92 };
93 static_assert(sizeof(IoctlAllocSpace) == 24, "IoctlInitalizeEx is incorrect size"); 93 static_assert(sizeof(IoctlAllocSpace) == 24, "IoctlInitializeEx is incorrect size");
94 94
95 struct IoctlFreeSpace { 95 struct IoctlFreeSpace {
96 u64_le offset{}; 96 u64_le offset{};
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
index 61a2df121..3e0c96456 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
@@ -15,7 +15,7 @@ namespace Service::Nvidia::Devices {
15nvhost_ctrl_gpu::nvhost_ctrl_gpu(Core::System& system_, EventInterface& events_interface_) 15nvhost_ctrl_gpu::nvhost_ctrl_gpu(Core::System& system_, EventInterface& events_interface_)
16 : nvdevice{system_}, events_interface{events_interface_} { 16 : nvdevice{system_}, events_interface{events_interface_} {
17 error_notifier_event = events_interface.CreateEvent("CtrlGpuErrorNotifier"); 17 error_notifier_event = events_interface.CreateEvent("CtrlGpuErrorNotifier");
18 unknown_event = events_interface.CreateEvent("CtrlGpuUknownEvent"); 18 unknown_event = events_interface.CreateEvent("CtrlGpuUnknownEvent");
19} 19}
20nvhost_ctrl_gpu::~nvhost_ctrl_gpu() { 20nvhost_ctrl_gpu::~nvhost_ctrl_gpu() {
21 events_interface.FreeEvent(error_notifier_event); 21 events_interface.FreeEvent(error_notifier_event);
diff --git a/src/core/hle/service/nvdrv/nvdata.h b/src/core/hle/service/nvdrv/nvdata.h
index 0e2f47075..38f35e79f 100644
--- a/src/core/hle/service/nvdrv/nvdata.h
+++ b/src/core/hle/service/nvdrv/nvdata.h
@@ -51,7 +51,7 @@ enum class NvResult : u32 {
51 DispNoDisplaysAttached = 0x20003, 51 DispNoDisplaysAttached = 0x20003,
52 DispModeNotSupported = 0x20004, 52 DispModeNotSupported = 0x20004,
53 DispNotFound = 0x20005, 53 DispNotFound = 0x20005,
54 DispAttachDissallowed = 0x20006, 54 DispAttachDisallowed = 0x20006,
55 DispTypeNotSupported = 0x20007, 55 DispTypeNotSupported = 0x20007,
56 DispAuthenticationFailed = 0x20008, 56 DispAuthenticationFailed = 0x20008,
57 DispNotAttached = 0x20009, 57 DispNotAttached = 0x20009,
diff --git a/src/core/hle/service/pcv/pcv.cpp b/src/core/hle/service/pcv/pcv.cpp
index c13ffa6f6..3d0f2aeb7 100644
--- a/src/core/hle/service/pcv/pcv.cpp
+++ b/src/core/hle/service/pcv/pcv.cpp
@@ -54,8 +54,8 @@ public:
54 54
55class IClkrstSession final : public ServiceFramework<IClkrstSession> { 55class IClkrstSession final : public ServiceFramework<IClkrstSession> {
56public: 56public:
57 explicit IClkrstSession(Core::System& system_, DeviceCode deivce_code_) 57 explicit IClkrstSession(Core::System& system_, DeviceCode device_code_)
58 : ServiceFramework{system_, "IClkrstSession"}, deivce_code(deivce_code_) { 58 : ServiceFramework{system_, "IClkrstSession"}, device_code(device_code_) {
59 // clang-format off 59 // clang-format off
60 static const FunctionInfo functions[] = { 60 static const FunctionInfo functions[] = {
61 {0, nullptr, "SetClockEnabled"}, 61 {0, nullptr, "SetClockEnabled"},
@@ -93,7 +93,7 @@ private:
93 rb.Push<u32>(clock_rate); 93 rb.Push<u32>(clock_rate);
94 } 94 }
95 95
96 DeviceCode deivce_code; 96 DeviceCode device_code;
97 u32 clock_rate{}; 97 u32 clock_rate{};
98}; 98};
99 99
@@ -118,9 +118,9 @@ private:
118 void OpenSession(HLERequestContext& ctx) { 118 void OpenSession(HLERequestContext& ctx) {
119 IPC::RequestParser rp{ctx}; 119 IPC::RequestParser rp{ctx};
120 const auto device_code = static_cast<DeviceCode>(rp.Pop<u32>()); 120 const auto device_code = static_cast<DeviceCode>(rp.Pop<u32>());
121 const auto unkonwn_input = rp.Pop<u32>(); 121 const auto unknown_input = rp.Pop<u32>();
122 122
123 LOG_DEBUG(Service_PCV, "called, device_code={}, input={}", device_code, unkonwn_input); 123 LOG_DEBUG(Service_PCV, "called, device_code={}, input={}", device_code, unknown_input);
124 124
125 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 125 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
126 rb.Push(ResultSuccess); 126 rb.Push(ResultSuccess);
diff --git a/src/core/hle/service/set/system_settings.cpp b/src/core/hle/service/set/system_settings.cpp
index 2723417ad..5977429b2 100644
--- a/src/core/hle/service/set/system_settings.cpp
+++ b/src/core/hle/service/set/system_settings.cpp
@@ -28,7 +28,7 @@ SystemSettings DefaultSystemSettings() {
28 .cmu_mode = CmuMode::None, 28 .cmu_mode = CmuMode::None,
29 .tv_underscan = {}, 29 .tv_underscan = {},
30 .tv_gama = 1.0f, 30 .tv_gama = 1.0f,
31 .constrast_ratio = 0.5f, 31 .contrast_ratio = 0.5f,
32 }; 32 };
33 33
34 settings.initial_launch_settings_packed = { 34 settings.initial_launch_settings_packed = {
diff --git a/src/core/hle/service/set/system_settings.h b/src/core/hle/service/set/system_settings.h
index ded2906ad..6ec9e71e7 100644
--- a/src/core/hle/service/set/system_settings.h
+++ b/src/core/hle/service/set/system_settings.h
@@ -208,7 +208,7 @@ struct TvSettings {
208 CmuMode cmu_mode; 208 CmuMode cmu_mode;
209 u32 tv_underscan; 209 u32 tv_underscan;
210 f32 tv_gama; 210 f32 tv_gama;
211 f32 constrast_ratio; 211 f32 contrast_ratio;
212}; 212};
213static_assert(sizeof(TvSettings) == 0x20, "TvSettings is an invalid size"); 213static_assert(sizeof(TvSettings) == 0x20, "TvSettings is an invalid size");
214 214
@@ -341,7 +341,7 @@ struct SystemSettings {
341 std::array<u8, 0x3C> reserved_09934; 341 std::array<u8, 0x3C> reserved_09934;
342 342
343 // nn::settings::system::ErrorReportSharePermission 343 // nn::settings::system::ErrorReportSharePermission
344 ErrorReportSharePermission error_report_share_permssion; 344 ErrorReportSharePermission error_report_share_permission;
345 345
346 std::array<u8, 0x3C> reserved_09974; 346 std::array<u8, 0x3C> reserved_09974;
347 347
diff --git a/src/core/hle/service/set/system_settings_server.cpp b/src/core/hle/service/set/system_settings_server.cpp
index f7ad6193e..af9348522 100644
--- a/src/core/hle/service/set/system_settings_server.cpp
+++ b/src/core/hle/service/set/system_settings_server.cpp
@@ -721,10 +721,10 @@ void ISystemSettingsServer::SetTvSettings(HLERequestContext& ctx) {
721 SetSaveNeeded(); 721 SetSaveNeeded();
722 722
723 LOG_INFO(Service_SET, 723 LOG_INFO(Service_SET,
724 "called, flags={}, cmu_mode={}, constrast_ratio={}, hdmi_content_type={}, " 724 "called, flags={}, cmu_mode={}, contrast_ratio={}, hdmi_content_type={}, "
725 "rgb_range={}, tv_gama={}, tv_resolution={}, tv_underscan={}", 725 "rgb_range={}, tv_gama={}, tv_resolution={}, tv_underscan={}",
726 m_system_settings.tv_settings.flags.raw, m_system_settings.tv_settings.cmu_mode, 726 m_system_settings.tv_settings.flags.raw, m_system_settings.tv_settings.cmu_mode,
727 m_system_settings.tv_settings.constrast_ratio, 727 m_system_settings.tv_settings.contrast_ratio,
728 m_system_settings.tv_settings.hdmi_content_type, 728 m_system_settings.tv_settings.hdmi_content_type,
729 m_system_settings.tv_settings.rgb_range, m_system_settings.tv_settings.tv_gama, 729 m_system_settings.tv_settings.rgb_range, m_system_settings.tv_settings.tv_gama,
730 m_system_settings.tv_settings.tv_resolution, 730 m_system_settings.tv_settings.tv_resolution,
@@ -870,10 +870,10 @@ void ISystemSettingsServer::GetInitialLaunchSettings(HLERequestContext& ctx) {
870 870
871void ISystemSettingsServer::SetInitialLaunchSettings(HLERequestContext& ctx) { 871void ISystemSettingsServer::SetInitialLaunchSettings(HLERequestContext& ctx) {
872 IPC::RequestParser rp{ctx}; 872 IPC::RequestParser rp{ctx};
873 auto inital_launch_settings = rp.PopRaw<InitialLaunchSettings>(); 873 auto initial_launch_settings = rp.PopRaw<InitialLaunchSettings>();
874 874
875 m_system_settings.initial_launch_settings_packed.flags = inital_launch_settings.flags; 875 m_system_settings.initial_launch_settings_packed.flags = initial_launch_settings.flags;
876 m_system_settings.initial_launch_settings_packed.timestamp = inital_launch_settings.timestamp; 876 m_system_settings.initial_launch_settings_packed.timestamp = initial_launch_settings.timestamp;
877 SetSaveNeeded(); 877 SetSaveNeeded();
878 878
879 LOG_INFO(Service_SET, "called, flags={}, timestamp={}", 879 LOG_INFO(Service_SET, "called, flags={}, timestamp={}",