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/game.cpp | |
parent | 6f563da51719ed152c477ee0098416264bfc9a51 (diff) | |
download | manaplus-d90995fb5b7c208e8387def44e740391c74b7e7f.tar.gz manaplus-d90995fb5b7c208e8387def44e740391c74b7e7f.tar.bz2 manaplus-d90995fb5b7c208e8387def44e740391c74b7e7f.tar.xz manaplus-d90995fb5b7c208e8387def44e740391c74b7e7f.zip |
Fix screenshots path in nacl.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index a00caadfa..4fd84cfcb 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -562,7 +562,10 @@ bool Game::saveScreenshot(SDL_Surface *const screenshot) const std::string fileNameStr = filename.str(); const bool success = ImageWriter::writePNG(screenshot, fileNameStr); #ifdef __native_client__ - naclPostMessage("copy-from-persistent", fileNameStr); + std::string nacScreenshotlDir = fileNameStr; + cutFirst(nacScreenshotlDir, "/persistent"); + naclPostMessage("copy-from-persistent", nacScreenshotlDir); + logger->log("nacl screenshot path: " + nacScreenshotlDir); #endif if (success) { |