mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
コメント追加
Klockwork: 符号なしの値と 0 との比較は常に true となります. git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@95 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
21c838b20c
commit
bbbb3258b2
@ -278,7 +278,7 @@ void GetSaveDataDirectoryRoot()
|
|||||||
for (s32 i = 6; i < 8; ++i)
|
for (s32 i = 6; i < 8; ++i)
|
||||||
{
|
{
|
||||||
bit32 n = (rootHash[k] >> ((7 - i) * 4)) & 0xf;
|
bit32 n = (rootHash[k] >> ((7 - i) * 4)) & 0xf;
|
||||||
NN_TASSERT_(0 <= n && n < 16);
|
NN_TASSERT_(n < 16);
|
||||||
rootStr[i - 6 + k * 2] = static_cast<char> (n < 10 ? '0' + n : 'a' + (n - 10));
|
rootStr[i - 6 + k * 2] = static_cast<char> (n < 10 ? '0' + n : 'a' + (n - 10));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -183,7 +183,7 @@ void InitializeSimplePlayer()
|
|||||||
|
|
||||||
void PlaySound(u8 index)
|
void PlaySound(u8 index)
|
||||||
{
|
{
|
||||||
NN_ASSERT(0 <= index <= nFiles);
|
NN_ASSERT(index <= nFiles);
|
||||||
|
|
||||||
while(!s_SoundThreadInitialized)
|
while(!s_SoundThreadInitialized)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -50,6 +50,7 @@ struct VerDef
|
|||||||
nn::pl::CTR::NetworkUpdateVersion nup;
|
nn::pl::CTR::NetworkUpdateVersion nup;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// TODO:リージョン追加時に範囲外アクセスにならないよう注意
|
||||||
const nn::ProgramId cCupVerId[] =
|
const nn::ProgramId cCupVerId[] =
|
||||||
{
|
{
|
||||||
nn::pl::CTR::SHAREDDATA_TITLEID_CUP_VERSION_JP,
|
nn::pl::CTR::SHAREDDATA_TITLEID_CUP_VERSION_JP,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user