Index: src/shared/Utils.h |
=================================================================== |
--- a/src/shared/Utils.h |
+++ b/src/shared/Utils.h |
@@ -5,7 +5,7 @@ |
#include <locale> |
#include <functional> |
#include <string> |
- |
+#include <memory> |
bool IsWindowsVistaOrLater(); |
@@ -25,4 +25,31 @@ |
return trimmed; |
} |
+class Location { |
+public: |
+ /** |
+ * Fully-qualified path to the file name of the engine executable. |
+ */ |
+ static std::wstring engine(); |
+ |
+ /** |
+ * Fully-qualified path to the locales/ directory. Ends in a backslash. |
+ */ |
+ static std::wstring locales_dir(); |
+ |
+ /** |
+ * Fully-qualified path to the html/ directory. Ends in a backslash. |
+ */ |
+ static std::wstring html_dir(); |
+ |
+ /** |
+ * Check that all the locations are known in the registry. |
+ * |
+ * While not a complete check of installation validity, this is a quick check to ensure that at least |
+ * all the relevant registry keys are present. Strictly speaking, this is a development-cycle function, |
+ * ensuring that the development environment is properly set up for testing. |
+ */ |
+ static bool all_known(); |
+}; |
+ |
#endif // UTILS_H |