mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-23 07:55:27 +00:00
Fix false hex in title on switch error
This commit is contained in:
parent
b6f8f3b256
commit
3f3a242d0d
|
@ -50,8 +50,8 @@ class Err:
|
||||||
# Removing any chance of hex having to go to the awful guessing game we wil have to do soon
|
# Removing any chance of hex having to go to the awful guessing game we wil have to do soon
|
||||||
elif err in switch_known_errcodes:
|
elif err in switch_known_errcodes:
|
||||||
err_description = switch_known_errcodes[err]
|
err_description = switch_known_errcodes[err]
|
||||||
err = err[2:]
|
serr = err[2:]
|
||||||
errcode = int(err, 16)
|
errcode = int(serr, 16)
|
||||||
module = errcode & 0x1FF
|
module = errcode & 0x1FF
|
||||||
desc = (errcode >> 9) & 0x3FFF
|
desc = (errcode >> 9) & 0x3FFF
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ class Err:
|
||||||
if desc >= errcode_range[0] and desc <= errcode_range[1]:
|
if desc >= errcode_range[0] and desc <= errcode_range[1]:
|
||||||
err_description = errcode_range[2]
|
err_description = errcode_range[2]
|
||||||
else:
|
else:
|
||||||
err_description = "It seems like your error code is unknown. You should report relevant details to <@141532589725974528> so it can be added to the bot."
|
err_description = "AAAAA It seems like your error code is unknown. You should report relevant details to <@141532589725974528> so it can be added to the bot."
|
||||||
|
|
||||||
if module in switch_modules:
|
if module in switch_modules:
|
||||||
err_module = switch_modules[module]
|
err_module = switch_modules[module]
|
||||||
|
|
Loading…
Reference in a new issue