diff options
| author | 2023-03-11 22:10:38 -0500 | |
|---|---|---|
| committer | 2023-03-12 11:33:01 -0400 | |
| commit | 600f325d87e42f856da58c42a5280f098ebb6e8c (patch) | |
| tree | 75c4fe48af55186a4e420e94a1d7e1bfd92e4ec0 /src/core/hle | |
| parent | general: use codespell to identify spelling mistakes (diff) | |
| download | yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.gz yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.xz yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.zip | |
general: fix spelling mistakes
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/kernel/k_process.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/k_process.h | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc/svc_event.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc/svc_session.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/acc/profile_manager.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/hid/controllers/gesture.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/hid/irsensor/image_transfer_processor.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/nfp/amiibo_crypto.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/nfp/amiibo_crypto.h | 2 | ||||
| -rw-r--r-- | src/core/hle/service/ns/iplatform_service_manager.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/nvdrv/devices/nvdevice.h | 2 | ||||
| -rw-r--r-- | src/core/hle/service/nvdrv/devices/nvmap.cpp | 2 |
14 files changed, 16 insertions, 16 deletions
diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cpp index d44f6e921..74a04aa66 100644 --- a/src/core/hle/kernel/k_process.cpp +++ b/src/core/hle/kernel/k_process.cpp | |||
| @@ -363,7 +363,7 @@ Result KProcess::LoadFromMetadata(const FileSys::ProgramMetadata& metadata, std: | |||
| 363 | code_size + system_resource_size); | 363 | code_size + system_resource_size); |
| 364 | R_RETURN(ResultLimitReached); | 364 | R_RETURN(ResultLimitReached); |
| 365 | } | 365 | } |
| 366 | // Initialize proces address space | 366 | // Initialize process address space |
| 367 | if (const Result result{page_table.InitializeForProcess( | 367 | if (const Result result{page_table.InitializeForProcess( |
| 368 | metadata.GetAddressSpaceType(), false, false, false, KMemoryManager::Pool::Application, | 368 | metadata.GetAddressSpaceType(), false, false, false, KMemoryManager::Pool::Application, |
| 369 | 0x8000000, code_size, &kernel.GetAppSystemResource(), resource_limit)}; | 369 | 0x8000000, code_size, &kernel.GetAppSystemResource(), resource_limit)}; |
diff --git a/src/core/hle/kernel/k_process.h b/src/core/hle/kernel/k_process.h index 549809000..bd9b9f876 100644 --- a/src/core/hle/kernel/k_process.h +++ b/src/core/hle/kernel/k_process.h | |||
| @@ -235,7 +235,7 @@ public: | |||
| 235 | total_process_running_time_ticks += ticks; | 235 | total_process_running_time_ticks += ticks; |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | /// Gets the process schedule count, used for thread yelding | 238 | /// Gets the process schedule count, used for thread yielding |
| 239 | s64 GetScheduledCount() const { | 239 | s64 GetScheduledCount() const { |
| 240 | return schedule_count; | 240 | return schedule_count; |
| 241 | } | 241 | } |
diff --git a/src/core/hle/kernel/svc/svc_event.cpp b/src/core/hle/kernel/svc/svc_event.cpp index a948493e8..8692b00f2 100644 --- a/src/core/hle/kernel/svc/svc_event.cpp +++ b/src/core/hle/kernel/svc/svc_event.cpp | |||
| @@ -85,7 +85,7 @@ Result CreateEvent(Core::System& system, Handle* out_write, Handle* out_read) { | |||
| 85 | // Add the event to the handle table. | 85 | // Add the event to the handle table. |
| 86 | R_TRY(handle_table.Add(out_write, event)); | 86 | R_TRY(handle_table.Add(out_write, event)); |
| 87 | 87 | ||
| 88 | // Ensure that we maintaing a clean handle state on exit. | 88 | // Ensure that we maintain a clean handle state on exit. |
| 89 | auto handle_guard = SCOPE_GUARD({ handle_table.Remove(*out_write); }); | 89 | auto handle_guard = SCOPE_GUARD({ handle_table.Remove(*out_write); }); |
| 90 | 90 | ||
| 91 | // Add the readable event to the handle table. | 91 | // Add the readable event to the handle table. |
diff --git a/src/core/hle/kernel/svc/svc_session.cpp b/src/core/hle/kernel/svc/svc_session.cpp index 00fd1605e..6dd242dcf 100644 --- a/src/core/hle/kernel/svc/svc_session.cpp +++ b/src/core/hle/kernel/svc/svc_session.cpp | |||
| @@ -81,7 +81,7 @@ Result CreateSession(Core::System& system, Handle* out_server, Handle* out_clien | |||
| 81 | const auto result = handle_table.Add(out_client, &session->GetClientSession()); | 81 | const auto result = handle_table.Add(out_client, &session->GetClientSession()); |
| 82 | 82 | ||
| 83 | if (!R_SUCCEEDED(result)) { | 83 | if (!R_SUCCEEDED(result)) { |
| 84 | // Ensure that we maintaing a clean handle state on exit. | 84 | // Ensure that we maintain a clean handle state on exit. |
| 85 | handle_table.Remove(*out_server); | 85 | handle_table.Remove(*out_server); |
| 86 | } | 86 | } |
| 87 | 87 | ||
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index 120282aa4..6c29cb613 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp | |||
| @@ -789,7 +789,7 @@ Result Module::Interface::InitializeApplicationInfoBase() { | |||
| 789 | } | 789 | } |
| 790 | 790 | ||
| 791 | LOG_WARNING(Service_ACC, "ApplicationInfo init required"); | 791 | LOG_WARNING(Service_ACC, "ApplicationInfo init required"); |
| 792 | // TODO(ogniK): Actual initalization here | 792 | // TODO(ogniK): Actual initialization here |
| 793 | 793 | ||
| 794 | return ResultSuccess; | 794 | return ResultSuccess; |
| 795 | } | 795 | } |
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp index 97f7c6688..63fd5bfd6 100644 --- a/src/core/hle/service/acc/profile_manager.cpp +++ b/src/core/hle/service/acc/profile_manager.cpp | |||
| @@ -287,7 +287,7 @@ void ProfileManager::StoreOpenedUsers() { | |||
| 287 | }); | 287 | }); |
| 288 | } | 288 | } |
| 289 | 289 | ||
| 290 | /// Return the users profile base and the unknown arbitary data. | 290 | /// Return the users profile base and the unknown arbitrary data. |
| 291 | bool ProfileManager::GetProfileBaseAndData(std::optional<std::size_t> index, ProfileBase& profile, | 291 | bool ProfileManager::GetProfileBaseAndData(std::optional<std::size_t> index, ProfileBase& profile, |
| 292 | UserData& data) const { | 292 | UserData& data) const { |
| 293 | if (GetProfileBase(index, profile)) { | 293 | if (GetProfileBase(index, profile)) { |
| @@ -297,13 +297,13 @@ bool ProfileManager::GetProfileBaseAndData(std::optional<std::size_t> index, Pro | |||
| 297 | return false; | 297 | return false; |
| 298 | } | 298 | } |
| 299 | 299 | ||
| 300 | /// Return the users profile base and the unknown arbitary data. | 300 | /// Return the users profile base and the unknown arbitrary data. |
| 301 | bool ProfileManager::GetProfileBaseAndData(UUID uuid, ProfileBase& profile, UserData& data) const { | 301 | bool ProfileManager::GetProfileBaseAndData(UUID uuid, ProfileBase& profile, UserData& data) const { |
| 302 | const auto idx = GetUserIndex(uuid); | 302 | const auto idx = GetUserIndex(uuid); |
| 303 | return GetProfileBaseAndData(idx, profile, data); | 303 | return GetProfileBaseAndData(idx, profile, data); |
| 304 | } | 304 | } |
| 305 | 305 | ||
| 306 | /// Return the users profile base and the unknown arbitary data. | 306 | /// Return the users profile base and the unknown arbitrary data. |
| 307 | bool ProfileManager::GetProfileBaseAndData(const ProfileInfo& user, ProfileBase& profile, | 307 | bool ProfileManager::GetProfileBaseAndData(const ProfileInfo& user, ProfileBase& profile, |
| 308 | UserData& data) const { | 308 | UserData& data) const { |
| 309 | return GetProfileBaseAndData(user.user_uuid, profile, data); | 309 | return GetProfileBaseAndData(user.user_uuid, profile, data); |
diff --git a/src/core/hle/service/hid/controllers/gesture.cpp b/src/core/hle/service/hid/controllers/gesture.cpp index de0090cc5..03432f7cb 100644 --- a/src/core/hle/service/hid/controllers/gesture.cpp +++ b/src/core/hle/service/hid/controllers/gesture.cpp | |||
| @@ -55,7 +55,7 @@ void Controller_Gesture::OnUpdate(const Core::Timing::CoreTiming& core_timing) { | |||
| 55 | static_cast<f32>(shared_memory->gesture_lifo.timestamp - last_update_timestamp) / | 55 | static_cast<f32>(shared_memory->gesture_lifo.timestamp - last_update_timestamp) / |
| 56 | (1000 * 1000 * 1000); | 56 | (1000 * 1000 * 1000); |
| 57 | 57 | ||
| 58 | // Only update if necesary | 58 | // Only update if necessary |
| 59 | if (!ShouldUpdateGesture(gesture, time_difference)) { | 59 | if (!ShouldUpdateGesture(gesture, time_difference)) { |
| 60 | return; | 60 | return; |
| 61 | } | 61 | } |
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 56c7275df..4529ad643 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -690,7 +690,7 @@ void Hid::ResetSixAxisSensorFusionParameters(HLERequestContext& ctx) { | |||
| 690 | 690 | ||
| 691 | const auto parameters{rp.PopRaw<Parameters>()}; | 691 | const auto parameters{rp.PopRaw<Parameters>()}; |
| 692 | 692 | ||
| 693 | // Since these parameters are unknow just use what HW outputs | 693 | // Since these parameters are unknown just use what HW outputs |
| 694 | const Core::HID::SixAxisSensorFusionParameters fusion_parameters{ | 694 | const Core::HID::SixAxisSensorFusionParameters fusion_parameters{ |
| 695 | .parameter1 = 0.03f, | 695 | .parameter1 = 0.03f, |
| 696 | .parameter2 = 0.4f, | 696 | .parameter2 = 0.4f, |
diff --git a/src/core/hle/service/hid/irsensor/image_transfer_processor.cpp b/src/core/hle/service/hid/irsensor/image_transfer_processor.cpp index bc896a1e3..a268750cd 100644 --- a/src/core/hle/service/hid/irsensor/image_transfer_processor.cpp +++ b/src/core/hle/service/hid/irsensor/image_transfer_processor.cpp | |||
| @@ -51,7 +51,7 @@ void ImageTransferProcessor::OnControllerUpdate(Core::HID::ControllerTriggerType | |||
| 51 | 51 | ||
| 52 | const auto camera_data = npad_device->GetCamera(); | 52 | const auto camera_data = npad_device->GetCamera(); |
| 53 | 53 | ||
| 54 | // This indicates how much ambient light is precent | 54 | // This indicates how much ambient light is present |
| 55 | processor_state.ambient_noise_level = Core::IrSensor::CameraAmbientNoiseLevel::Low; | 55 | processor_state.ambient_noise_level = Core::IrSensor::CameraAmbientNoiseLevel::Low; |
| 56 | processor_state.sampling_number = camera_data.sample; | 56 | processor_state.sampling_number = camera_data.sample; |
| 57 | 57 | ||
diff --git a/src/core/hle/service/nfp/amiibo_crypto.cpp b/src/core/hle/service/nfp/amiibo_crypto.cpp index ddf04b1d7..ad73edbda 100644 --- a/src/core/hle/service/nfp/amiibo_crypto.cpp +++ b/src/core/hle/service/nfp/amiibo_crypto.cpp | |||
| @@ -137,7 +137,7 @@ EncryptedNTAG215File EncodedDataToNfcData(const NTAG215File& encoded_data) { | |||
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | u32 GetTagPassword(const TagUuid& uuid) { | 139 | u32 GetTagPassword(const TagUuid& uuid) { |
| 140 | // Verifiy that the generated password is correct | 140 | // Verify that the generated password is correct |
| 141 | u32 password = 0xAA ^ (uuid.uid[1] ^ uuid.uid[3]); | 141 | u32 password = 0xAA ^ (uuid.uid[1] ^ uuid.uid[3]); |
| 142 | password &= (0x55 ^ (uuid.uid[2] ^ uuid.uid[4])) << 8; | 142 | password &= (0x55 ^ (uuid.uid[2] ^ uuid.uid[4])) << 8; |
| 143 | password &= (0xAA ^ (uuid.uid[3] ^ uuid.uid[5])) << 16; | 143 | password &= (0xAA ^ (uuid.uid[3] ^ uuid.uid[5])) << 16; |
diff --git a/src/core/hle/service/nfp/amiibo_crypto.h b/src/core/hle/service/nfp/amiibo_crypto.h index 1fa61174e..c9fd67a39 100644 --- a/src/core/hle/service/nfp/amiibo_crypto.h +++ b/src/core/hle/service/nfp/amiibo_crypto.h | |||
| @@ -94,7 +94,7 @@ bool LoadKeys(InternalKey& locked_secret, InternalKey& unfixed_info); | |||
| 94 | /// Returns true if key_retail.bin exist | 94 | /// Returns true if key_retail.bin exist |
| 95 | bool IsKeyAvailable(); | 95 | bool IsKeyAvailable(); |
| 96 | 96 | ||
| 97 | /// Decodes encripted amiibo data returns true if output is valid | 97 | /// Decodes encrypted amiibo data returns true if output is valid |
| 98 | bool DecodeAmiibo(const EncryptedNTAG215File& encrypted_tag_data, NTAG215File& tag_data); | 98 | bool DecodeAmiibo(const EncryptedNTAG215File& encrypted_tag_data, NTAG215File& tag_data); |
| 99 | 99 | ||
| 100 | /// Encodes plain amiibo data returns true if output is valid | 100 | /// Encodes plain amiibo data returns true if output is valid |
diff --git a/src/core/hle/service/ns/iplatform_service_manager.cpp b/src/core/hle/service/ns/iplatform_service_manager.cpp index cd2705881..6c2f5e70b 100644 --- a/src/core/hle/service/ns/iplatform_service_manager.cpp +++ b/src/core/hle/service/ns/iplatform_service_manager.cpp | |||
| @@ -119,7 +119,7 @@ struct IPlatformServiceManager::Impl { | |||
| 119 | break; | 119 | break; |
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | // Derive key withing inverse xor | 122 | // Derive key within inverse xor |
| 123 | const u32 KEY = GetU32Swapped(input.data() + cur_offset) ^ EXPECTED_MAGIC; | 123 | const u32 KEY = GetU32Swapped(input.data() + cur_offset) ^ EXPECTED_MAGIC; |
| 124 | const u32 SIZE = GetU32Swapped(input.data() + cur_offset + 4) ^ KEY; | 124 | const u32 SIZE = GetU32Swapped(input.data() + cur_offset + 4) ^ KEY; |
| 125 | shared_font_regions.push_back(FontRegion{cur_offset + 8, SIZE}); | 125 | shared_font_regions.push_back(FontRegion{cur_offset + 8, SIZE}); |
diff --git a/src/core/hle/service/nvdrv/devices/nvdevice.h b/src/core/hle/service/nvdrv/devices/nvdevice.h index c562e04d2..ab1f30f9e 100644 --- a/src/core/hle/service/nvdrv/devices/nvdevice.h +++ b/src/core/hle/service/nvdrv/devices/nvdevice.h | |||
| @@ -59,7 +59,7 @@ public: | |||
| 59 | std::vector<u8>& output, std::vector<u8>& inline_output) = 0; | 59 | std::vector<u8>& output, std::vector<u8>& inline_output) = 0; |
| 60 | 60 | ||
| 61 | /** | 61 | /** |
| 62 | * Called once a device is openned | 62 | * Called once a device is opened |
| 63 | * @param fd The device fd | 63 | * @param fd The device fd |
| 64 | */ | 64 | */ |
| 65 | virtual void OnOpen(DeviceFD fd) = 0; | 65 | virtual void OnOpen(DeviceFD fd) = 0; |
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cpp index 277afe0b4..07417f045 100644 --- a/src/core/hle/service/nvdrv/devices/nvmap.cpp +++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp | |||
| @@ -264,7 +264,7 @@ NvResult nvmap::IocFree(std::span<const u8> input, std::vector<u8>& output) { | |||
| 264 | params.flags.raw = 0; | 264 | params.flags.raw = 0; |
| 265 | params.flags.map_uncached.Assign(freeInfo->was_uncached); | 265 | params.flags.map_uncached.Assign(freeInfo->was_uncached); |
| 266 | } else { | 266 | } else { |
| 267 | // This is possible when there's internel dups or other duplicates. | 267 | // This is possible when there's internal dups or other duplicates. |
| 268 | } | 268 | } |
| 269 | 269 | ||
| 270 | std::memcpy(output.data(), ¶ms, sizeof(params)); | 270 | std::memcpy(output.data(), ¶ms, sizeof(params)); |