aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/helpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sludge/helpers.cpp')
-rw-r--r--engines/sludge/helpers.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/sludge/helpers.cpp b/engines/sludge/helpers.cpp
index 30d50943ac..60a29af4c6 100644
--- a/engines/sludge/helpers.cpp
+++ b/engines/sludge/helpers.cpp
@@ -22,18 +22,19 @@
#include "allfiles.h"
#include "helpers.h"
+#include "common/file.h"
+
namespace Sludge {
bool fileExists(const char *file) {
bool retval = false;
-#if ALLOW_FILE
- FILE *tester;
- tester = fopen(file, "rb");
- if (tester) {
+
+ Common::File tester;
+ if (tester.open(file)) {
retval = true;
- fclose(tester);
+ tester.close();
}
-#endif
+
return retval;
}