From 00ee155176ee1b191b8d0d9efbd82e43787265c1 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Wed, 1 Apr 2020 21:58:02 +0100 Subject: [PATCH] Fixes and a comment --- src/Backends/Platform/SDL2.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Backends/Platform/SDL2.cpp b/src/Backends/Platform/SDL2.cpp index 8d8ed4f1..b24deb70 100644 --- a/src/Backends/Platform/SDL2.cpp +++ b/src/Backends/Platform/SDL2.cpp @@ -1,5 +1,9 @@ #include "../Platform.h" +#include +#include +#include + #include "SDL.h" #include "../Rendering.h" @@ -57,6 +61,7 @@ void PlatformBackend_PostWindowCreation(void) BOOL PlatformBackend_GetBasePath(char *string_buffer) { char *base_path = SDL_GetBasePath(); + // Trim the trailing '/' size_t base_path_length = strlen(base_path); base_path[base_path_length - 1] = '\0'; strcpy(string_buffer, base_path);