(Glide64) Clean up code / dehardcode more magic numbers