From 865eaca27d5ea0eb7f9ad93ad3d169d192080386 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 7 Feb 2022 00:36:48 +0100 Subject: Changed all file opening modes to be binary to have consistent newlines --- Stars45/KeyMap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Stars45/KeyMap.cpp') diff --git a/Stars45/KeyMap.cpp b/Stars45/KeyMap.cpp index c2e7cc1..1c21c15 100644 --- a/Stars45/KeyMap.cpp +++ b/Stars45/KeyMap.cpp @@ -600,7 +600,7 @@ int KeyMap::LoadKeyMap(const char* filename, int max_keys) { FILE* f; - fopen_s(&f, filename, "r"); + fopen_s(&f, filename, "rb"); if (!f) return nkeys; @@ -661,7 +661,7 @@ int KeyMap::SaveKeyMap(const char* filename, int max_keys) { FILE* f; - fopen_s(&f, filename, "w"); + fopen_s(&f, filename, "wb"); if (!f) return 0; for (int i = 0; i < nkeys; i++) { -- cgit v1.1