mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 14:49:22 +00:00
Sram: Correct constness of SetCardFlashID parameter
This commit is contained in:
parent
5161351ca3
commit
902a0ccedf
2 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue