Author Topic: Is there anyway...?  (Read 1694 times)

the_pretzel2

  • Newbie
  • *
  • Posts: 1
    • View Profile
Is there anyway...?
« on: November 27, 2013, 04:26:17 am »
to make the save data go to a Flashdrive?

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1138
    • View Profile
Re: Is there anyway...?
« Reply #1 on: November 27, 2013, 12:02:22 pm »
Saved data automatically go to a subdirectory of the user's directory (see FileTools::get_base_write_dir()).

But from your Lua scripts, you can use the regular Lua file API to manipulate savegame files. Open the savegame file with sol.file.open() and then just copy its content wherever you want.