Sram: Correct constness of SetCardFlashID parameter

This commit is contained in:
Lioncash 2016-07-18 02:15:07 -04:00
parent 5161351ca3
commit 902a0ccedf
2 changed files with 3 additions and 3 deletions

View File

@ -58,9 +58,9 @@ void InitSRAM()
}
}
void SetCardFlashID(u8* buffer, u8 card_index)
void SetCardFlashID(const u8* buffer, u8 card_index)
{
u64 rand = Common::swap64(*(u64*)&(buffer[12]));
u64 rand = Common::swap64(&buffer[12]);
u8 csum = 0;
for (int i = 0; i < 12; i++)
{

View File

@ -79,7 +79,7 @@ union SRAM {
};
#pragma pack(pop)
void InitSRAM();
void SetCardFlashID(u8* buffer, u8 card_index);
void SetCardFlashID(const u8* buffer, u8 card_index);
void FixSRAMChecksums();
extern SRAM sram_dump;