Except you said you got the evil ending, which means you had to have played a majority of the game as a bad guy.
Unless you think killing civilians and wreaking havoc constitutes as 'good'.
Or unless you were just confused and when you said that you "suddenly turned evil" at the end, you actually got the good ending without realizing it.
But yeah, the moral choices were embarrassing.