summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/File.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-06 22:00:54 +0200
committerMattes D <github@xoft.cz>2015-04-06 22:00:54 +0200
commit6952f2295a4ba95f75fe10f2ed8c23ed304dd59a (patch)
tree60a5e5dc389fc8cc23c89ce1eb6103297207429d /src/OSSupport/File.h
parentFixed crash on exit introduced with Windows Service capability. (diff)
downloadcuberite-6952f2295a4ba95f75fe10f2ed8c23ed304dd59a.tar
cuberite-6952f2295a4ba95f75fe10f2ed8c23ed304dd59a.tar.gz
cuberite-6952f2295a4ba95f75fe10f2ed8c23ed304dd59a.tar.bz2
cuberite-6952f2295a4ba95f75fe10f2ed8c23ed304dd59a.tar.lz
cuberite-6952f2295a4ba95f75fe10f2ed8c23ed304dd59a.tar.xz
cuberite-6952f2295a4ba95f75fe10f2ed8c23ed304dd59a.tar.zst
cuberite-6952f2295a4ba95f75fe10f2ed8c23ed304dd59a.zip
Diffstat (limited to '')
-rw-r--r--src/OSSupport/File.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/OSSupport/File.h b/src/OSSupport/File.h
index ac6d1ab21..1cf5c71d7 100644
--- a/src/OSSupport/File.h
+++ b/src/OSSupport/File.h
@@ -127,6 +127,10 @@ public:
/** Returns the entire contents of the specified file as a string. Returns empty string on error. */
static AString ReadWholeFile(const AString & a_FileName);
+ /** Returns a_FileName with its extension changed to a_NewExt.
+ a_FileName may contain path specification. */
+ static AString ChangeFileExt(const AString & a_FileName, const AString & a_NewExt);
+
// tolua_end
/** Returns the list of all items in the specified folder (files, folders, nix pipes, whatever's there). */