diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-15 20:23:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-15 20:23:23 +0300 |
commit | d90995fb5b7c208e8387def44e740391c74b7e7f (patch) | |
tree | b8833072b30c914d3786ef8cbcda23af4a519cb3 /src/dirs.cpp | |
parent | 6f563da51719ed152c477ee0098416264bfc9a51 (diff) | |
download | manaverse-d90995fb5b7c208e8387def44e740391c74b7e7f.tar.gz manaverse-d90995fb5b7c208e8387def44e740391c74b7e7f.tar.bz2 manaverse-d90995fb5b7c208e8387def44e740391c74b7e7f.tar.xz manaverse-d90995fb5b7c208e8387def44e740391c74b7e7f.zip |
Fix screenshots path in nacl.
Diffstat (limited to 'src/dirs.cpp')
-rw-r--r-- | src/dirs.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dirs.cpp b/src/dirs.cpp index 7dc53803b..f1c9e9550 100644 --- a/src/dirs.cpp +++ b/src/dirs.cpp @@ -537,6 +537,9 @@ void Dirs::initScreenshotDir() } else if (settings.screenshotDir.empty()) { +#ifdef __native_client__ + settings.screenshotDir = _nacl_dir + "/screenshots/"; +#else // __native_client__ settings.screenshotDir = decodeBase64String( config.getStringValue("screenshotDirectory3")); if (settings.screenshotDir.empty()) @@ -552,9 +555,9 @@ void Dirs::initScreenshotDir() _("Error: %s doesn't exist and can't be created! " "Exiting."), settings.screenshotDir.c_str())); } -#else +#else // ANDROID settings.screenshotDir = getPicturesDir(); -#endif +#endif // ANDROID if (config.getBoolValue("useScreenshotDirectorySuffix")) { const std::string configScreenshotSuffix = @@ -569,6 +572,7 @@ void Dirs::initScreenshotDir() config.setValue("screenshotDirectory3", encodeBase64String(settings.screenshotDir)); } +#endif // __native_client__ } logger->log("screenshotDirectory: " + settings.screenshotDir); } |