From c913bbb58980a513fc529b8e2f4fec623985a735 Mon Sep 17 00:00:00 2001 From: ChrisMiuchiz Date: Tue, 15 Oct 2019 17:31:36 -0400 Subject: [PATCH] change FileExists parameter to const --- CubeModLauncher/main.cpp | 2 +- CubeModLauncher/main.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CubeModLauncher/main.cpp b/CubeModLauncher/main.cpp index afa089f..d9cc518 100644 --- a/CubeModLauncher/main.cpp +++ b/CubeModLauncher/main.cpp @@ -9,7 +9,7 @@ char* MODLOADER_DLL = "CubeModLoader.dll"; using namespace std; -bool FileExists(char* fileName) { +bool FileExists(const char* fileName) { DWORD dwAttrib = GetFileAttributes(fileName); return (dwAttrib != INVALID_FILE_ATTRIBUTES && !(dwAttrib & FILE_ATTRIBUTE_DIRECTORY)); } diff --git a/CubeModLauncher/main.h b/CubeModLauncher/main.h index b204edf..689df4a 100644 --- a/CubeModLauncher/main.h +++ b/CubeModLauncher/main.h @@ -1,7 +1,7 @@ #ifndef MAIN_H_INCLUDED #define MAIN_H_INCLUDED -bool FileExists(char* fileName); +bool FileExists(const char* fileName); int Bail(int result); int main(int argc, char** argv);