mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-12 19:19:57 +01:00
Fix hex number type ambiguity
Fixes cutscenes in Super Mario Sunshine
This commit is contained in:
parent
7490afbdc3
commit
d07f6ed38e
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
|
|||
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)
|
||||
|
@ -86,7 +86,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
|
|||
return value.ToString(CultureInfo.InvariantCulture) + "u";
|
||||
}
|
||||
|
||||
return "0x" + value.ToString("X", CultureInfo.InvariantCulture) + "u";
|
||||
return $"as_type<uint>(0x{value.ToString("X", CultureInfo.InvariantCulture)})";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue