change FileExists parameter to const
This commit is contained in:
parent
537ca7f2d9
commit
c913bbb589
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue