Is it possible to save data to %Appdata% directory?


#1

Hey, I’m working on saving data from a custom editor and by my game. Is it possible to save to %appdata% or haxe only allows to save in the application internally? I’ve searched quite a bunch and couldn’t find if that was an option. All the info is only regarding internal file system.

Thank you!


#2

You can obtain the value with Sys.getEnv(“AppData”) and save it there using sys.io.File.saveBytes
This will only work using “system” targets (HashLink, NodeJS)