Game Development Community

Android save export preference and execute

by Nora Ky · in Torque 2D Beginner · 08/29/2014 (8:40 pm) · 0 replies

I have been fix getUserDataDirectory() to use internal storage instead of cach directory.
The export preference is working :

export("$Prefs::Setting::*", getPrefsPath() @ "/setting.data", false );

But when i execute the source script it is error : in LogCat : Line: 1 - parse error.

if (isFile(getPrefsPath() @ "/setting.data"))
exec(getPrefsPath() @ "/setting.data");

What problem with android to execute source code?
Any other have some glue to execute source code in android without dso?