Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ryujinx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tartifless
Ryujinx
Commits
699e1962
Unverified
Commit
699e1962
authored
2 months ago
by
Marco Carvalho
Committed by
GitHub
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Prefer 'Convert.ToHexString' over call chains based on 'BitConverter.ToString' (#428) [ci-skip]
Co-authored-by:
Evan Husted
<
greem@greemdev.net
>
parent
e486b902
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Ryujinx.HLE/HOS/Services/Nfc/AmiiboDecryption/AmiiboBinReader.cs
+6
-6
6 additions, 6 deletions
....HLE/HOS/Services/Nfc/AmiiboDecryption/AmiiboBinReader.cs
with
6 additions
and
6 deletions
src/Ryujinx.HLE/HOS/Services/Nfc/AmiiboDecryption/AmiiboBinReader.cs
+
6
−
6
View file @
699e1962
...
...
@@ -114,10 +114,10 @@ namespace Ryujinx.HLE.HOS.Services.Nfc.AmiiboDecryption
}
}
string
usedCharacterStr
=
Bit
Convert
er
.
ToString
(
usedCharacter
)
.
Replace
(
"-"
,
""
)
;
string
variationStr
=
Bit
Convert
er
.
ToString
(
variation
)
.
Replace
(
"-"
,
""
)
;
string
amiiboIDStr
=
Bit
Convert
er
.
ToString
(
amiiboID
)
.
Replace
(
"-"
,
""
)
;
string
setIDStr
=
Bit
Convert
er
.
ToString
(
setID
)
.
Replace
(
"-"
,
""
)
;
string
usedCharacterStr
=
Convert
.
To
Hex
String
(
usedCharacter
);
string
variationStr
=
Convert
.
To
Hex
String
(
variation
);
string
amiiboIDStr
=
Convert
.
To
Hex
String
(
amiiboID
);
string
setIDStr
=
Convert
.
To
Hex
String
(
setID
);
string
head
=
usedCharacterStr
+
variationStr
;
string
tail
=
amiiboIDStr
+
setIDStr
+
"02"
;
string
finalID
=
head
+
tail
;
...
...
@@ -289,8 +289,8 @@ namespace Ryujinx.HLE.HOS.Services.Nfc.AmiiboDecryption
private
static
void
LogFinalData
(
byte
[]
titleId
,
byte
[]
appId
,
string
head
,
string
tail
,
string
finalID
,
string
nickName
,
DateTime
initDateTime
,
DateTime
writeDateTime
,
ushort
settingsValue
,
ushort
writeCounterValue
,
byte
[]
applicationAreas
)
{
Logger
.
Debug
?.
Print
(
LogClass
.
ServiceNfp
,
$"Title ID: 0x
{
Bit
Convert
er
.
ToString
(
titleId
)
.
Replace
(
"-"
,
""
)
}
"
);
Logger
.
Debug
?.
Print
(
LogClass
.
ServiceNfp
,
$"Application Program ID: 0x
{
Bit
Convert
er
.
ToString
(
appId
)
.
Replace
(
"-"
,
""
)
}
"
);
Logger
.
Debug
?.
Print
(
LogClass
.
ServiceNfp
,
$"Title ID: 0x
{
Convert
.
To
Hex
String
(
titleId
)}
"
);
Logger
.
Debug
?.
Print
(
LogClass
.
ServiceNfp
,
$"Application Program ID: 0x
{
Convert
.
To
Hex
String
(
appId
)}
"
);
Logger
.
Debug
?.
Print
(
LogClass
.
ServiceNfp
,
$"Head:
{
head
}
"
);
Logger
.
Debug
?.
Print
(
LogClass
.
ServiceNfp
,
$"Tail:
{
tail
}
"
);
Logger
.
Debug
?.
Print
(
LogClass
.
ServiceNfp
,
$"Final ID:
{
finalID
}
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment