tec icon indicating copy to clipboard operation
tec copied to clipboard

OS-specific code should be separated into different files

Open milesrout opened this issue 8 years ago • 2 comments

Instead of the maze of #ifdefs in filesystem.cpp, for example, there should be the following:

filesystem.hpp         - the header defining the FilePath class
filesystem.cpp         - the implementation of everything OS-independent
filesystem-win32.cpp   - the implementation of everything Win32-specific
filesystem-unix.cpp    - the implementation of everything that is common to both Linux and macOS
filesystem-macos.cpp   - the implementation of everything macOS-specific
filesystem-linux.cpp   - the implementation of everything Linux-specific

milesrout avatar Jan 02 '17 00:01 milesrout

Is this relevant and needed to get the game done?

adam4813 avatar Nov 19 '19 07:11 adam4813

Can't get the game done if the code is a mess

milesrout avatar Nov 19 '19 10:11 milesrout