mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
Custom path support (#1333)
also including: * getting rid of shitty strings * all new, cleaner ROM handling code * base for DSi savestates * GBA slot addons (for now, memory cart)
This commit is contained in:
@ -52,7 +52,7 @@ void _inittable()
|
||||
}
|
||||
}
|
||||
|
||||
u32 CRC32(u8 *data, int len)
|
||||
u32 CRC32(u8 *data, int len, u32 start)
|
||||
{
|
||||
if (!tableinited)
|
||||
{
|
||||
@ -60,7 +60,7 @@ u32 CRC32(u8 *data, int len)
|
||||
tableinited = true;
|
||||
}
|
||||
|
||||
u32 crc = 0xFFFFFFFF;
|
||||
u32 crc = start ^ 0xFFFFFFFF;
|
||||
|
||||
while (len--)
|
||||
crc = (crc >> 8) ^ crctable[(crc & 0xFF) ^ *data++];
|
||||
|
Reference in New Issue
Block a user