Advertisement
taarna23

SavesInLocalData.js

Feb 3rd, 2016 (edited)
4,140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=============================================================================
  2. // SavesInLocalData.js
  3. //=============================================================================
  4.  
  5. /*:
  6.  * @plugindesc Causes desktop save files to be saved in/loaded from local application directories rather than alongside game data.
  7.  * @author Catball Games/Carrie Cygielnik
  8.  *
  9.  * @help This plugin does not provide plugin commands.
  10.  */
  11.  
  12. (function() {
  13.     StorageManager.localFileDirectoryPath = function() {
  14.         var gui = require('nw.gui');
  15.         var win = nw.Window.get();
  16.  
  17.         var base = gui.App.dataPath + "\\" + window.$dataSystem.gameTitle + "\\";
  18.         return path.join(base, 'save/');
  19.     };
  20. }) ();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement