mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
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;
|
u8 csum = 0;
|
||||||
for (int i = 0; i < 12; i++)
|
for (int i = 0; i < 12; i++)
|
||||||
{
|
{
|
||||||
|
@ -79,7 +79,7 @@ union SRAM {
|
|||||||
};
|
};
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
void InitSRAM();
|
void InitSRAM();
|
||||||
void SetCardFlashID(u8* buffer, u8 card_index);
|
void SetCardFlashID(const u8* buffer, u8 card_index);
|
||||||
void FixSRAMChecksums();
|
void FixSRAMChecksums();
|
||||||
|
|
||||||
extern SRAM sram_dump;
|
extern SRAM sram_dump;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user