Redone most of the code for gamefw linux project.