From e5d32f58d374797887b978ca5332303efa57e5ad Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sun, 13 Mar 2022 12:29:20 -0700 Subject: [PATCH] Remove Windows build protections --- src/Main.cpp | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/src/Main.cpp b/src/Main.cpp index ce78189..8654fdb 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -15,9 +15,7 @@ #include #include #include -#if __linux__ - #include -#endif +#include #include #include @@ -113,17 +111,13 @@ int main() PLAYFIELD_Y + ((float)GRID_HEIGHT * TILE_SIZE / 2) - (float)paused_texture_size.y / 2 ); - #if __linux__ - // https://stackoverflow.com/a/478088 - const char *homedir; - if ((homedir = getenv("HOME")) == NULL) { - homedir = getpwuid(getuid())->pw_dir; - } - std::string highscore_file_path = homedir; - highscore_file_path += "/.septadrop"; - #else - std::string highscore_file_path = ".septadrop"; - #endif + // https://stackoverflow.com/a/478088 + const char *homedir; + if ((homedir = getenv("HOME")) == NULL) { + homedir = getpwuid(getuid())->pw_dir; + } + std::string highscore_file_path = homedir; + highscore_file_path += "/.septadrop"; if (!std::filesystem::exists(highscore_file_path)) { std::ofstream highscore_file(highscore_file_path);