yoyofr / modizer

iOS chiptune/module player
http://yoyofr.blogspot.com/p/modizer.html
132 stars 45 forks source link

Refactor dumb file loading code #5

Closed mistydemeo closed 12 years ago

mistydemeo commented 12 years ago

This commit replaces the set of nested if statements responsible for loading songs in dumb with a much more concise version. This doesn't change the behaviour at all - it just enhances readability.

I tested on a few songs (s3m, mod) and it works as normal. I didn't test every format dumb supports, but I don't think there should be a problem with the others.

mistydemeo commented 12 years ago

Oops, I introduced a small bug. I've updated the commit, so now the behaviour is identical. ;)