Sram: Correct constness of SetCardFlashID parameter
This commit is contained in:
parent
5161351ca3
commit
902a0ccedf
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue