Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Marsev <alex.marsev@gmail.com>2013-11-24 19:56:35 +0400
committerAlex Marsev <alex.marsev@gmail.com>2013-12-04 01:03:32 +0400
commit099c6fe2a2a4cefc7656060913b1ebc79e7d082e (patch)
tree292eedb0eefdfa16b80b7030316e53ed7a999611 /src/DSUtil/PathUtils.h
parent0e91b0ef7032dd25f8bd72fbb5782de81a5f4efe (diff)
Shaders: massive redesign
Diffstat (limited to 'src/DSUtil/PathUtils.h')
-rw-r--r--src/DSUtil/PathUtils.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/DSUtil/PathUtils.h b/src/DSUtil/PathUtils.h
new file mode 100644
index 000000000..1efadadea
--- /dev/null
+++ b/src/DSUtil/PathUtils.h
@@ -0,0 +1,40 @@
+/*
+ * (C) 2013 see Authors.txt
+ *
+ * This file is part of MPC-HC.
+ *
+ * MPC-HC is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * MPC-HC is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#pragma once
+
+namespace PathUtils
+{
+ CString BaseName(LPCTSTR path);
+ CString DirName(LPCTSTR path);
+ CString FileName(LPCTSTR path);
+ CString FileExt(LPCTSTR path);
+ CString GetModulePath(HMODULE hModule);
+ CString GetAfxModulePath(bool bWithModuleName = false);
+ CString GetProgramPath(bool bWithExeName = false);
+ CString CombinePaths(LPCTSTR dir, LPCTSTR path);
+ bool IsInDir(LPCTSTR path, LPCTSTR dir);
+ CString ToRelative(LPCTSTR dir, const LPCTSTR path, bool* pbRelative = nullptr);
+ bool IsRelative(LPCTSTR path);
+ bool Exists(LPCTSTR path);
+ bool IsFile(LPCTSTR path);
+ bool IsDir(LPCTSTR path);
+ bool CreateDirRecursive(LPCTSTR path);
+}