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 | |
| 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')
30 files changed, 44 insertions, 44 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 4a1372d15..bd2082fd6 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -358,7 +358,7 @@ struct System::Impl { | |||
| 358 | void ShutdownMainProcess() { | 358 | void ShutdownMainProcess() { |
| 359 | SetShuttingDown(true); | 359 | SetShuttingDown(true); |
| 360 | 360 | ||
| 361 | // Log last frame performance stats if game was loded | 361 | // Log last frame performance stats if game was loaded |
| 362 | if (perf_stats) { | 362 | if (perf_stats) { |
| 363 | const auto perf_results = GetAndResetPerfStats(); | 363 | const auto perf_results = GetAndResetPerfStats(); |
| 364 | constexpr auto performance = Common::Telemetry::FieldType::Performance; | 364 | constexpr auto performance = Common::Telemetry::FieldType::Performance; |
diff --git a/src/core/core.h b/src/core/core.h index 91e78672e..5843696d4 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -146,7 +146,7 @@ public: | |||
| 146 | 146 | ||
| 147 | /** | 147 | /** |
| 148 | * Initializes the system | 148 | * Initializes the system |
| 149 | * This function will initialize core functionaility used for system emulation | 149 | * This function will initialize core functionality used for system emulation |
| 150 | */ | 150 | */ |
| 151 | void Initialize(); | 151 | void Initialize(); |
| 152 | 152 | ||
diff --git a/src/core/core_timing.h b/src/core/core_timing.h index 4b89c0c39..e7c4a949f 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h | |||
| @@ -150,7 +150,7 @@ private: | |||
| 150 | // The queue is a min-heap using std::make_heap/push_heap/pop_heap. | 150 | // The queue is a min-heap using std::make_heap/push_heap/pop_heap. |
| 151 | // We don't use std::priority_queue because we need to be able to serialize, unserialize and | 151 | // We don't use std::priority_queue because we need to be able to serialize, unserialize and |
| 152 | // erase arbitrary events (RemoveEvent()) regardless of the queue order. These aren't | 152 | // erase arbitrary events (RemoveEvent()) regardless of the queue order. These aren't |
| 153 | // accomodated by the standard adaptor class. | 153 | // accommodated by the standard adaptor class. |
| 154 | std::vector<Event> event_queue; | 154 | std::vector<Event> event_queue; |
| 155 | u64 event_fifo_id = 0; | 155 | u64 event_fifo_id = 0; |
| 156 | 156 | ||
diff --git a/src/core/crypto/ctr_encryption_layer.h b/src/core/crypto/ctr_encryption_layer.h index 77f08d776..d85ad8f78 100644 --- a/src/core/crypto/ctr_encryption_layer.h +++ b/src/core/crypto/ctr_encryption_layer.h | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | namespace Core::Crypto { | 12 | namespace Core::Crypto { |
| 13 | 13 | ||
| 14 | // Sits on top of a VirtualFile and provides CTR-mode AES decription. | 14 | // Sits on top of a VirtualFile and provides CTR-mode AES description. |
| 15 | class CTREncryptionLayer : public EncryptionLayer { | 15 | class CTREncryptionLayer : public EncryptionLayer { |
| 16 | public: | 16 | public: |
| 17 | using IVData = std::array<u8, 16>; | 17 | using IVData = std::array<u8, 16>; |
diff --git a/src/core/crypto/key_manager.h b/src/core/crypto/key_manager.h index dbf9ebfe4..673cec463 100644 --- a/src/core/crypto/key_manager.h +++ b/src/core/crypto/key_manager.h | |||
| @@ -249,7 +249,7 @@ public: | |||
| 249 | 249 | ||
| 250 | static bool KeyFileExists(bool title); | 250 | static bool KeyFileExists(bool title); |
| 251 | 251 | ||
| 252 | // Call before using the sd seed to attempt to derive it if it dosen't exist. Needs system | 252 | // Call before using the sd seed to attempt to derive it if it doesn't exist. Needs system |
| 253 | // save 8*43 and the private file to exist. | 253 | // save 8*43 and the private file to exist. |
| 254 | void DeriveSDSeedLazy(); | 254 | void DeriveSDSeedLazy(); |
| 255 | 255 | ||
diff --git a/src/core/crypto/xts_encryption_layer.h b/src/core/crypto/xts_encryption_layer.h index 735e660cb..68b5643b1 100644 --- a/src/core/crypto/xts_encryption_layer.h +++ b/src/core/crypto/xts_encryption_layer.h | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | 9 | ||
| 10 | namespace Core::Crypto { | 10 | namespace Core::Crypto { |
| 11 | 11 | ||
| 12 | // Sits on top of a VirtualFile and provides XTS-mode AES decription. | 12 | // Sits on top of a VirtualFile and provides XTS-mode AES description. |
| 13 | class XTSEncryptionLayer : public EncryptionLayer { | 13 | class XTSEncryptionLayer : public EncryptionLayer { |
| 14 | public: | 14 | public: |
| 15 | XTSEncryptionLayer(FileSys::VirtualFile base, Key256 key); | 15 | XTSEncryptionLayer(FileSys::VirtualFile base, Key256 key); |
diff --git a/src/core/file_sys/content_archive.h b/src/core/file_sys/content_archive.h index 7fdc45ea7..20f524f80 100644 --- a/src/core/file_sys/content_archive.h +++ b/src/core/file_sys/content_archive.h | |||
| @@ -93,7 +93,7 @@ inline bool IsDirectoryLogoPartition(const VirtualDir& pfs) { | |||
| 93 | pfs->GetFile("StartupMovie.gif") != nullptr; | 93 | pfs->GetFile("StartupMovie.gif") != nullptr; |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | // An implementation of VfsDirectory that represents a Nintendo Content Archive (NCA) conatiner. | 96 | // An implementation of VfsDirectory that represents a Nintendo Content Archive (NCA) container. |
| 97 | // After construction, use GetStatus to determine if the file is valid and ready to be used. | 97 | // After construction, use GetStatus to determine if the file is valid and ready to be used. |
| 98 | class NCA : public ReadOnlyVfsDirectory { | 98 | class NCA : public ReadOnlyVfsDirectory { |
| 99 | public: | 99 | public: |
diff --git a/src/core/file_sys/registered_cache.h b/src/core/file_sys/registered_cache.h index 587f8cae8..bd7f53eaf 100644 --- a/src/core/file_sys/registered_cache.h +++ b/src/core/file_sys/registered_cache.h | |||
| @@ -162,7 +162,7 @@ public: | |||
| 162 | InstallResult InstallEntry(const NSP& nsp, bool overwrite_if_exists = false, | 162 | InstallResult InstallEntry(const NSP& nsp, bool overwrite_if_exists = false, |
| 163 | const VfsCopyFunction& copy = &VfsRawCopy); | 163 | const VfsCopyFunction& copy = &VfsRawCopy); |
| 164 | 164 | ||
| 165 | // Due to the fact that we must use Meta-type NCAs to determine the existance of files, this | 165 | // Due to the fact that we must use Meta-type NCAs to determine the existence of files, this |
| 166 | // poses quite a challenge. Instead of creating a new meta NCA for this file, yuzu will create a | 166 | // poses quite a challenge. Instead of creating a new meta NCA for this file, yuzu will create a |
| 167 | // dir inside the NAND called 'yuzu_meta' and store the raw CNMT there. | 167 | // dir inside the NAND called 'yuzu_meta' and store the raw CNMT there. |
| 168 | // TODO(DarkLordZach): Author real meta-type NCAs and install those. | 168 | // TODO(DarkLordZach): Author real meta-type NCAs and install those. |
diff --git a/src/core/file_sys/vfs.h b/src/core/file_sys/vfs.h index 8fc1738a4..a93e21f67 100644 --- a/src/core/file_sys/vfs.h +++ b/src/core/file_sys/vfs.h | |||
| @@ -45,7 +45,7 @@ public: | |||
| 45 | // Return whether or not the user has write permission on this filesystem. | 45 | // Return whether or not the user has write permission on this filesystem. |
| 46 | virtual bool IsWritable() const; | 46 | virtual bool IsWritable() const; |
| 47 | 47 | ||
| 48 | // Determine if the entry at path is non-existant, a file, or a directory. | 48 | // Determine if the entry at path is non-existent, a file, or a directory. |
| 49 | virtual VfsEntryType GetEntryType(std::string_view path) const; | 49 | virtual VfsEntryType GetEntryType(std::string_view path) const; |
| 50 | 50 | ||
| 51 | // Opens the file with path relative to root. If it doesn't exist, returns nullptr. | 51 | // Opens the file with path relative to root. If it doesn't exist, returns nullptr. |
| @@ -58,7 +58,7 @@ public: | |||
| 58 | // Moves the file from old_path to new_path, returning the moved file on success and nullptr on | 58 | // Moves the file from old_path to new_path, returning the moved file on success and nullptr on |
| 59 | // failure. | 59 | // failure. |
| 60 | virtual VirtualFile MoveFile(std::string_view old_path, std::string_view new_path); | 60 | virtual VirtualFile MoveFile(std::string_view old_path, std::string_view new_path); |
| 61 | // Deletes the file with path relative to root, returing true on success. | 61 | // Deletes the file with path relative to root, returning true on success. |
| 62 | virtual bool DeleteFile(std::string_view path); | 62 | virtual bool DeleteFile(std::string_view path); |
| 63 | 63 | ||
| 64 | // Opens the directory with path relative to root. If it doesn't exist, returns nullptr. | 64 | // Opens the directory with path relative to root. If it doesn't exist, returns nullptr. |
| @@ -71,7 +71,7 @@ public: | |||
| 71 | // Moves the directory from old_path to new_path, returning the moved directory on success and | 71 | // Moves the directory from old_path to new_path, returning the moved directory on success and |
| 72 | // nullptr on failure. | 72 | // nullptr on failure. |
| 73 | virtual VirtualDir MoveDirectory(std::string_view old_path, std::string_view new_path); | 73 | virtual VirtualDir MoveDirectory(std::string_view old_path, std::string_view new_path); |
| 74 | // Deletes the directory with path relative to root, returing true on success. | 74 | // Deletes the directory with path relative to root, returning true on success. |
| 75 | virtual bool DeleteDirectory(std::string_view path); | 75 | virtual bool DeleteDirectory(std::string_view path); |
| 76 | 76 | ||
| 77 | protected: | 77 | protected: |
| @@ -144,7 +144,7 @@ public: | |||
| 144 | return Read(reinterpret_cast<u8*>(data), sizeof(T), offset); | 144 | return Read(reinterpret_cast<u8*>(data), sizeof(T), offset); |
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | // Writes exactly one byte to offset in file and retuns whether or not the byte was written | 147 | // Writes exactly one byte to offset in file and returns whether or not the byte was written |
| 148 | // successfully. | 148 | // successfully. |
| 149 | virtual bool WriteByte(u8 data, std::size_t offset = 0); | 149 | virtual bool WriteByte(u8 data, std::size_t offset = 0); |
| 150 | // Writes a vector of bytes to offset in file and returns the number of bytes successfully | 150 | // Writes a vector of bytes to offset in file and returns the number of bytes successfully |
| @@ -191,13 +191,13 @@ public: | |||
| 191 | VfsDirectory() = default; | 191 | VfsDirectory() = default; |
| 192 | virtual ~VfsDirectory(); | 192 | virtual ~VfsDirectory(); |
| 193 | 193 | ||
| 194 | // Retrives the file located at path as if the current directory was root. Returns nullptr if | 194 | // Retrieves the file located at path as if the current directory was root. Returns nullptr if |
| 195 | // not found. | 195 | // not found. |
| 196 | virtual VirtualFile GetFileRelative(std::string_view path) const; | 196 | virtual VirtualFile GetFileRelative(std::string_view path) const; |
| 197 | // Calls GetFileRelative(path) on the root of the current directory. | 197 | // Calls GetFileRelative(path) on the root of the current directory. |
| 198 | virtual VirtualFile GetFileAbsolute(std::string_view path) const; | 198 | virtual VirtualFile GetFileAbsolute(std::string_view path) const; |
| 199 | 199 | ||
| 200 | // Retrives the directory located at path as if the current directory was root. Returns nullptr | 200 | // Retrieves the directory located at path as if the current directory was root. Returns nullptr |
| 201 | // if not found. | 201 | // if not found. |
| 202 | virtual VirtualDir GetDirectoryRelative(std::string_view path) const; | 202 | virtual VirtualDir GetDirectoryRelative(std::string_view path) const; |
| 203 | // Calls GetDirectoryRelative(path) on the root of the current directory. | 203 | // Calls GetDirectoryRelative(path) on the root of the current directory. |
| @@ -205,7 +205,7 @@ public: | |||
| 205 | 205 | ||
| 206 | // Returns a vector containing all of the files in this directory. | 206 | // Returns a vector containing all of the files in this directory. |
| 207 | virtual std::vector<VirtualFile> GetFiles() const = 0; | 207 | virtual std::vector<VirtualFile> GetFiles() const = 0; |
| 208 | // Returns the file with filename matching name. Returns nullptr if directory dosen't have a | 208 | // Returns the file with filename matching name. Returns nullptr if directory doesn't have a |
| 209 | // file with name. | 209 | // file with name. |
| 210 | virtual VirtualFile GetFile(std::string_view name) const; | 210 | virtual VirtualFile GetFile(std::string_view name) const; |
| 211 | 211 | ||
| @@ -214,7 +214,7 @@ public: | |||
| 214 | 214 | ||
| 215 | // Returns a vector containing all of the subdirectories in this directory. | 215 | // Returns a vector containing all of the subdirectories in this directory. |
| 216 | virtual std::vector<VirtualDir> GetSubdirectories() const = 0; | 216 | virtual std::vector<VirtualDir> GetSubdirectories() const = 0; |
| 217 | // Returns the directory with name matching name. Returns nullptr if directory dosen't have a | 217 | // Returns the directory with name matching name. Returns nullptr if directory doesn't have a |
| 218 | // directory with name. | 218 | // directory with name. |
| 219 | virtual VirtualDir GetSubdirectory(std::string_view name) const; | 219 | virtual VirtualDir GetSubdirectory(std::string_view name) const; |
| 220 | 220 | ||
diff --git a/src/core/file_sys/vfs_real.h b/src/core/file_sys/vfs_real.h index acde1ac89..b92c84316 100644 --- a/src/core/file_sys/vfs_real.h +++ b/src/core/file_sys/vfs_real.h | |||
| @@ -38,7 +38,7 @@ private: | |||
| 38 | boost::container::flat_map<std::string, std::weak_ptr<Common::FS::IOFile>> cache; | 38 | boost::container::flat_map<std::string, std::weak_ptr<Common::FS::IOFile>> cache; |
| 39 | }; | 39 | }; |
| 40 | 40 | ||
| 41 | // An implmentation of VfsFile that represents a file on the user's computer. | 41 | // An implementation of VfsFile that represents a file on the user's computer. |
| 42 | class RealVfsFile : public VfsFile { | 42 | class RealVfsFile : public VfsFile { |
| 43 | friend class RealVfsDirectory; | 43 | friend class RealVfsDirectory; |
| 44 | friend class RealVfsFilesystem; | 44 | friend class RealVfsFilesystem; |
diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h index cf85ba29e..1093800f6 100644 --- a/src/core/frontend/emu_window.h +++ b/src/core/frontend/emu_window.h | |||
| @@ -205,7 +205,7 @@ protected: | |||
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | /** | 207 | /** |
| 208 | * Converts a screen postion into the equivalent touchscreen position. | 208 | * Converts a screen position into the equivalent touchscreen position. |
| 209 | */ | 209 | */ |
| 210 | std::pair<f32, f32> MapToTouchScreen(u32 framebuffer_x, u32 framebuffer_y) const; | 210 | std::pair<f32, f32> MapToTouchScreen(u32 framebuffer_x, u32 framebuffer_y) const; |
| 211 | 211 | ||
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index a9da465a2..429655355 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h | |||
| @@ -132,7 +132,7 @@ struct ControllerStatus { | |||
| 132 | RingAnalogValue ring_analog_value{}; | 132 | RingAnalogValue ring_analog_value{}; |
| 133 | NfcValues nfc_values{}; | 133 | NfcValues nfc_values{}; |
| 134 | 134 | ||
| 135 | // Data for HID serices | 135 | // Data for HID services |
| 136 | HomeButtonState home_button_state{}; | 136 | HomeButtonState home_button_state{}; |
| 137 | CaptureButtonState capture_button_state{}; | 137 | CaptureButtonState capture_button_state{}; |
| 138 | NpadButtonState npad_button_state{}; | 138 | NpadButtonState npad_button_state{}; |
| @@ -357,7 +357,7 @@ public: | |||
| 357 | 357 | ||
| 358 | /** | 358 | /** |
| 359 | * Sends a small vibration to the output device | 359 | * Sends a small vibration to the output device |
| 360 | * @return true if SetVibration was successfull | 360 | * @return true if SetVibration was successful |
| 361 | */ | 361 | */ |
| 362 | bool IsVibrationEnabled(std::size_t device_index); | 362 | bool IsVibrationEnabled(std::size_t device_index); |
| 363 | 363 | ||
| @@ -373,7 +373,7 @@ public: | |||
| 373 | /** | 373 | /** |
| 374 | * Sets the desired camera format to be polled from a controller | 374 | * Sets the desired camera format to be polled from a controller |
| 375 | * @param camera_format size of each frame | 375 | * @param camera_format size of each frame |
| 376 | * @return true if SetCameraFormat was successfull | 376 | * @return true if SetCameraFormat was successful |
| 377 | */ | 377 | */ |
| 378 | bool SetCameraFormat(Core::IrSensor::ImageTransferProcessorFormat camera_format); | 378 | bool SetCameraFormat(Core::IrSensor::ImageTransferProcessorFormat camera_format); |
| 379 | 379 | ||
diff --git a/src/core/hid/emulated_devices.h b/src/core/hid/emulated_devices.h index caf2ca659..5eab693e4 100644 --- a/src/core/hid/emulated_devices.h +++ b/src/core/hid/emulated_devices.h | |||
| @@ -53,7 +53,7 @@ struct DeviceStatus { | |||
| 53 | MouseWheelValues mouse_wheel_values{}; | 53 | MouseWheelValues mouse_wheel_values{}; |
| 54 | MouseStickValue mouse_stick_value{}; | 54 | MouseStickValue mouse_stick_value{}; |
| 55 | 55 | ||
| 56 | // Data for HID serices | 56 | // Data for HID services |
| 57 | KeyboardKey keyboard_state{}; | 57 | KeyboardKey keyboard_state{}; |
| 58 | KeyboardModifier keyboard_moddifier_state{}; | 58 | KeyboardModifier keyboard_moddifier_state{}; |
| 59 | MouseButton mouse_button_state{}; | 59 | MouseButton mouse_button_state{}; |
| @@ -75,7 +75,7 @@ struct InterfaceUpdateCallback { | |||
| 75 | class EmulatedDevices { | 75 | class EmulatedDevices { |
| 76 | public: | 76 | public: |
| 77 | /** | 77 | /** |
| 78 | * Contains all input data related to external devices that aren't necesarily a controller | 78 | * Contains all input data related to external devices that aren't necessarily a controller |
| 79 | * This includes devices such as the keyboard or mouse | 79 | * This includes devices such as the keyboard or mouse |
| 80 | */ | 80 | */ |
| 81 | explicit EmulatedDevices(); | 81 | explicit EmulatedDevices(); |
diff --git a/src/core/hid/input_converter.cpp b/src/core/hid/input_converter.cpp index 3f7b8c090..7cee39a53 100644 --- a/src/core/hid/input_converter.cpp +++ b/src/core/hid/input_converter.cpp | |||
| @@ -328,7 +328,7 @@ void SanitizeAnalog(Common::Input::AnalogStatus& analog, bool clamp_value) { | |||
| 328 | // Apply center offset | 328 | // Apply center offset |
| 329 | raw_value -= properties.offset; | 329 | raw_value -= properties.offset; |
| 330 | 330 | ||
| 331 | // Set initial values to be formated | 331 | // Set initial values to be formatted |
| 332 | value = raw_value; | 332 | value = raw_value; |
| 333 | 333 | ||
| 334 | // Calculate vector size | 334 | // Calculate vector size |
| @@ -398,7 +398,7 @@ void SanitizeStick(Common::Input::AnalogStatus& analog_x, Common::Input::AnalogS | |||
| 398 | raw_x = properties_x.inverted ? -raw_x : raw_x; | 398 | raw_x = properties_x.inverted ? -raw_x : raw_x; |
| 399 | raw_y = properties_y.inverted ? -raw_y : raw_y; | 399 | raw_y = properties_y.inverted ? -raw_y : raw_y; |
| 400 | 400 | ||
| 401 | // Set initial values to be formated | 401 | // Set initial values to be formatted |
| 402 | x = raw_x; | 402 | x = raw_x; |
| 403 | y = raw_y; | 403 | y = raw_y; |
| 404 | 404 | ||
diff --git a/src/core/hid/motion_input.h b/src/core/hid/motion_input.h index e2c1bbf95..9f3fc1cf7 100644 --- a/src/core/hid/motion_input.h +++ b/src/core/hid/motion_input.h | |||
| @@ -84,7 +84,7 @@ private: | |||
| 84 | // Gyroscope vector measurement in radians/s. | 84 | // Gyroscope vector measurement in radians/s. |
| 85 | Common::Vec3f gyro; | 85 | Common::Vec3f gyro; |
| 86 | 86 | ||
| 87 | // Vector to be substracted from gyro measurements | 87 | // Vector to be subtracted from gyro measurements |
| 88 | Common::Vec3f gyro_bias; | 88 | Common::Vec3f gyro_bias; |
| 89 | 89 | ||
| 90 | // Minimum gyro amplitude to detect if the device is moving | 90 | // Minimum gyro amplitude to detect if the device is moving |
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)); |
diff --git a/src/core/internal_network/network.cpp b/src/core/internal_network/network.cpp index f85c73ca6..bf97b0ebc 100644 --- a/src/core/internal_network/network.cpp +++ b/src/core/internal_network/network.cpp | |||
| @@ -572,7 +572,7 @@ std::pair<s32, Errno> Socket::SendTo(u32 flags, std::span<const u8> message, | |||
| 572 | ASSERT(flags == 0); | 572 | ASSERT(flags == 0); |
| 573 | 573 | ||
| 574 | const sockaddr* to = nullptr; | 574 | const sockaddr* to = nullptr; |
| 575 | const int tolen = addr ? sizeof(sockaddr) : 0; | 575 | const int to_len = addr ? sizeof(sockaddr) : 0; |
| 576 | sockaddr host_addr_in; | 576 | sockaddr host_addr_in; |
| 577 | 577 | ||
| 578 | if (addr) { | 578 | if (addr) { |
| @@ -581,7 +581,7 @@ std::pair<s32, Errno> Socket::SendTo(u32 flags, std::span<const u8> message, | |||
| 581 | } | 581 | } |
| 582 | 582 | ||
| 583 | const auto result = sendto(fd, reinterpret_cast<const char*>(message.data()), | 583 | const auto result = sendto(fd, reinterpret_cast<const char*>(message.data()), |
| 584 | static_cast<int>(message.size()), 0, to, tolen); | 584 | static_cast<int>(message.size()), 0, to, to_len); |
| 585 | if (result != SOCKET_ERROR) { | 585 | if (result != SOCKET_ERROR) { |
| 586 | return {static_cast<s32>(result), Errno::SUCCESS}; | 586 | return {static_cast<s32>(result), Errno::SUCCESS}; |
| 587 | } | 587 | } |