change FileExists parameter to const

This commit is contained in:
ChrisMiuchiz 2019-10-15 17:31:36 -04:00
parent 537ca7f2d9
commit c913bbb589
2 changed files with 2 additions and 2 deletions

View File

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

View File

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