HDRemaster support: Simplify/tidy the code

Thanks to @unknownbrackets for the suggestions.

Will conflict with https://github.com/hrydgard/ppsspp/pull/2674. I received no answer in regards to including those changes in this pullrq, so this is just a heads up.