2025-08-02 19:28:30 +00:00
|
|
|
package funkin.external.android;
|
2025-07-10 13:26:01 +00:00
|
|
|
|
2025-08-02 19:32:48 +00:00
|
|
|
#if android
|
2025-07-10 13:26:01 +00:00
|
|
|
/**
|
|
|
|
* A Utility class to manage the Application's Data folder on Android.
|
|
|
|
*/
|
|
|
|
@:unreflective
|
|
|
|
class DataFolderUtil
|
|
|
|
{
|
2025-07-10 15:04:09 +00:00
|
|
|
/**
|
|
|
|
* Opens the data folder on an Android device using JNI.
|
|
|
|
*/
|
2025-07-10 13:26:01 +00:00
|
|
|
public static function openDataFolder():Void
|
|
|
|
{
|
2025-07-10 15:04:09 +00:00
|
|
|
final openDataFolderJNI:Null<Dynamic> = JNIUtil.createStaticMethod('funkin/util/DataFolderUtil', 'openDataFolder', '(I)V');
|
2025-07-10 13:26:01 +00:00
|
|
|
|
2025-07-10 15:04:09 +00:00
|
|
|
if (openDataFolderJNI != null)
|
|
|
|
{
|
|
|
|
openDataFolderJNI(CallbackUtil.DATA_FOLDER_CLOSED);
|
|
|
|
}
|
2025-07-10 13:26:01 +00:00
|
|
|
}
|
|
|
|
}
|
2025-08-02 19:32:48 +00:00
|
|
|
#end
|