0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-22 23:55:47 +00:00

Fix hex number type ambiguity

Fixes cutscenes in Super Mario Sunshine
This commit is contained in:
Isaac Marovitz 2024-07-29 01:25:27 +01:00 committed by Isaac Marovitz
parent 7490afbdc3
commit d07f6ed38e

View file

@ -76,7 +76,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
return value.ToString(CultureInfo.InvariantCulture); return value.ToString(CultureInfo.InvariantCulture);
} }
return "0x" + value.ToString("X", CultureInfo.InvariantCulture); return $"as_type<int>(0x{value.ToString("X", CultureInfo.InvariantCulture)})";
} }
public static string FormatUint(uint value) public static string FormatUint(uint value)
@ -86,7 +86,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
return value.ToString(CultureInfo.InvariantCulture) + "u"; return value.ToString(CultureInfo.InvariantCulture) + "u";
} }
return "0x" + value.ToString("X", CultureInfo.InvariantCulture) + "u"; return $"as_type<uint>(0x{value.ToString("X", CultureInfo.InvariantCulture)})";
} }
} }
} }