Removing unnecessary switch statements in fopen methods.
Merge branch 'fix-9969-take-two' of https://github.com/th3fallen/core into fix-9969-take-two