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);