hrydgard/ppsspp — pull request #5588 by unknownbrackets (2014-03-02 09:23:16+00:00)
Title: Workaround bug in Kurohyou 2 (uninitialized data)

The game calls scePsmfGetEPWithTimestamp(), but without any chapters. This means nothing is written to its pointer. But it takes the value there anyway.

It happens that the value there is 0, but only because something wrote it to the stack before the call. It seems like scePsmfVerifyPsmf() is the one writing it, since it has a different value shortly before that call.

So, as a workaround, just write some 0s into the stack. Games without bugs should not care. Hard to predict what will happen to another buggy game.

Also, correct some error codes per brief tests.

-[Unknown]