mirror of
				https://github.com/ryujinx-mirror/ryujinx.git
				synced 2025-11-04 08:18:58 -06:00 
			
		
		
		
	chore: remove repetitive words (#6500)
Signed-off-by: standstaff <zhengxingru@yeah.net>
This commit is contained in:
		@@ -173,7 +173,7 @@ namespace Ryujinx.Graphics.Gpu.Memory
 | 
			
		||||
 | 
			
		||||
            ShrinkOverlapsBufferIfNeeded();
 | 
			
		||||
 | 
			
		||||
            // If the the range is not properly aligned for sparse mapping,
 | 
			
		||||
            // If the range is not properly aligned for sparse mapping,
 | 
			
		||||
            // let's just force it to a single range.
 | 
			
		||||
            // This might cause issues in some applications that uses sparse
 | 
			
		||||
            // mappings.
 | 
			
		||||
 
 | 
			
		||||
@@ -322,7 +322,7 @@ namespace Ryujinx.Graphics.Shader.Translation.Optimizations
 | 
			
		||||
            Operand lhs = operation.GetSource(0);
 | 
			
		||||
            Operand rhs = operation.GetSource(1);
 | 
			
		||||
 | 
			
		||||
            // Check LHS of the the main multiplication operation. We expect an input being multiplied by gl_FragCoord.w.
 | 
			
		||||
            // Check LHS of the main multiplication operation. We expect an input being multiplied by gl_FragCoord.w.
 | 
			
		||||
            if (lhs.AsgOp is not Operation attrMulOp || attrMulOp.Inst != (Instruction.FP32 | Instruction.Multiply))
 | 
			
		||||
            {
 | 
			
		||||
                return;
 | 
			
		||||
 
 | 
			
		||||
@@ -136,7 +136,7 @@ namespace Ryujinx.Graphics.Vulkan
 | 
			
		||||
        {
 | 
			
		||||
            instance.EnumeratePhysicalDevices(out var physicalDevices).ThrowOnError();
 | 
			
		||||
 | 
			
		||||
            // First we try to pick the the user preferred GPU.
 | 
			
		||||
            // First we try to pick the user preferred GPU.
 | 
			
		||||
            for (int i = 0; i < physicalDevices.Length; i++)
 | 
			
		||||
            {
 | 
			
		||||
                if (IsPreferredAndSuitableDevice(api, physicalDevices[i], surface, preferredGpuId))
 | 
			
		||||
 
 | 
			
		||||
@@ -466,7 +466,7 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
 | 
			
		||||
 | 
			
		||||
        private void DrawPadButton(IImageProcessingContext context, PointF point, Image icon, string label, bool pressed, bool enabled)
 | 
			
		||||
        {
 | 
			
		||||
            // Use relative positions so we can center the the entire drawing later.
 | 
			
		||||
            // Use relative positions so we can center the entire drawing later.
 | 
			
		||||
 | 
			
		||||
            float iconX = 0;
 | 
			
		||||
            float iconY = 0;
 | 
			
		||||
@@ -522,7 +522,7 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
 | 
			
		||||
        {
 | 
			
		||||
            var labelRectangle = MeasureString(ControllerToggleText, _labelsTextFont);
 | 
			
		||||
 | 
			
		||||
            // Use relative positions so we can center the the entire drawing later.
 | 
			
		||||
            // Use relative positions so we can center the entire drawing later.
 | 
			
		||||
 | 
			
		||||
            float keyWidth = _keyModeIcon.Width;
 | 
			
		||||
            float keyHeight = _keyModeIcon.Height;
 | 
			
		||||
 
 | 
			
		||||
@@ -174,7 +174,7 @@ namespace Ryujinx.Memory
 | 
			
		||||
        /// <param name="offset">Starting offset of the range being read</param>
 | 
			
		||||
        /// <param name="data">Span where the bytes being read will be copied to</param>
 | 
			
		||||
        /// <exception cref="ObjectDisposedException">Throw when the memory block has already been disposed</exception>
 | 
			
		||||
        /// <exception cref="InvalidMemoryRegionException">Throw when the memory region specified for the the data is out of range</exception>
 | 
			
		||||
        /// <exception cref="InvalidMemoryRegionException">Throw when the memory region specified for the data is out of range</exception>
 | 
			
		||||
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
 | 
			
		||||
        public void Read(ulong offset, Span<byte> data)
 | 
			
		||||
        {
 | 
			
		||||
@@ -188,7 +188,7 @@ namespace Ryujinx.Memory
 | 
			
		||||
        /// <param name="offset">Offset where the data is located</param>
 | 
			
		||||
        /// <returns>Data at the specified address</returns>
 | 
			
		||||
        /// <exception cref="ObjectDisposedException">Throw when the memory block has already been disposed</exception>
 | 
			
		||||
        /// <exception cref="InvalidMemoryRegionException">Throw when the memory region specified for the the data is out of range</exception>
 | 
			
		||||
        /// <exception cref="InvalidMemoryRegionException">Throw when the memory region specified for the data is out of range</exception>
 | 
			
		||||
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
 | 
			
		||||
        public T Read<T>(ulong offset) where T : unmanaged
 | 
			
		||||
        {
 | 
			
		||||
@@ -201,7 +201,7 @@ namespace Ryujinx.Memory
 | 
			
		||||
        /// <param name="offset">Starting offset of the range being written</param>
 | 
			
		||||
        /// <param name="data">Span where the bytes being written will be copied from</param>
 | 
			
		||||
        /// <exception cref="ObjectDisposedException">Throw when the memory block has already been disposed</exception>
 | 
			
		||||
        /// <exception cref="InvalidMemoryRegionException">Throw when the memory region specified for the the data is out of range</exception>
 | 
			
		||||
        /// <exception cref="InvalidMemoryRegionException">Throw when the memory region specified for the data is out of range</exception>
 | 
			
		||||
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
 | 
			
		||||
        public void Write(ulong offset, ReadOnlySpan<byte> data)
 | 
			
		||||
        {
 | 
			
		||||
@@ -215,7 +215,7 @@ namespace Ryujinx.Memory
 | 
			
		||||
        /// <param name="offset">Offset to write the data into</param>
 | 
			
		||||
        /// <param name="data">Data to be written</param>
 | 
			
		||||
        /// <exception cref="ObjectDisposedException">Throw when the memory block has already been disposed</exception>
 | 
			
		||||
        /// <exception cref="InvalidMemoryRegionException">Throw when the memory region specified for the the data is out of range</exception>
 | 
			
		||||
        /// <exception cref="InvalidMemoryRegionException">Throw when the memory region specified for the data is out of range</exception>
 | 
			
		||||
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
 | 
			
		||||
        public void Write<T>(ulong offset, T data) where T : unmanaged
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user