summaryrefslogtreecommitdiff
path: root/lib/common/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/Utils.cpp')
-rw-r--r--lib/common/Utils.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/common/Utils.cpp b/lib/common/Utils.cpp
index f45ed26b..6f21330d 100644
--- a/lib/common/Utils.cpp
+++ b/lib/common/Utils.cpp
@@ -30,6 +30,11 @@
#include "MemLeakFindOn.h"
+std::string GetBoxBackupVersion()
+{
+ return BOX_VERSION;
+}
+
// --------------------------------------------------------------------------
//
// Function
@@ -156,15 +161,16 @@ void DumpStackBacktrace()
// --------------------------------------------------------------------------
//
// Function
-// Name: FileExists(const char *)
+// Name: FileExists(const std::string& rFilename)
// Purpose: Does a file exist?
// Created: 20/11/03
//
// --------------------------------------------------------------------------
-bool FileExists(const char *Filename, int64_t *pFileSize, bool TreatLinksAsNotExisting)
+bool FileExists(const std::string& rFilename, int64_t *pFileSize,
+ bool TreatLinksAsNotExisting)
{
EMU_STRUCT_STAT st;
- if(EMU_LSTAT(Filename, &st) != 0)
+ if(EMU_LSTAT(rFilename.c_str(), &st) != 0)
{
if(errno == ENOENT)
{