De-header SNES games with headers submultiple of 512 bytes correctly

This commit is contained in:
Ilari Liusvaara 2017-08-30 19:06:51 +03:00
parent 4c6338888d
commit b5f3e543d8

View file

@ -26,8 +26,7 @@ namespace
uint64_t calculate_headersize(uint64_t f, uint64_t h)
{
if(!h) return 0;
if(f % (2 * h) == h) return h;
return 0;
return f % (2 * h);
}
void* thread_trampoline(hash* h)