Skip to content

Instantly share code, notes, and snippets.

@Dvergar
Created December 5, 2016 12:10
Show Gist options
  • Select an option

  • Save Dvergar/2acb52b6611fd918b77cd54eb925e5d5 to your computer and use it in GitHub Desktop.

Select an option

Save Dvergar/2acb52b6611fd918b77cd54eb925e5d5 to your computer and use it in GitHub Desktop.
Luxe reminder

Saving stuff

  • Crossplatform key-value store (string) : Luxe.IO.string_save / Luxe.IO.string_loadtest

    See luxeengine/support#6

  • Path to save to : Luxe.IO.app_path_prefs.

    Returns the app specific path to write safely into across all platforms (i.e AppData, Application Support, the iOS documents path and so on). The path is devised from your org/app name combo, i.e <folder>/com.luxeengine/appname/ .

    Note : You might need to set WRITE_EXTERNAL_STORAGE to your Android manifest.

  • Save trigger : Luxe.snow.io.data_save

    if you have issues with the haxe file or sys api's on android, try Luxe.snow.io.data_save - this uses the SDL RWops stuff that handles the intricacies (read: madness) of android file handling.

Source : Grabbed from my experiences and direct quotes from sven on the Luxe support gitter chat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment