Play-/Source/ui_android/java/com/virtualapplications/play/BootablesInterop.java

27 lines
1 KiB
Java
Raw Permalink Normal View History

2017-11-17 18:48:56 -05:00
package com.virtualapplications.play;
public class BootablesInterop
{
static
{
System.loadLibrary("Play");
}
// changes to SORT_* order should also be reflected in
// NavigationDrawerFragment.onActivityCreated adapter string list
public static final int SORT_RECENT = 0;
public static final int SORT_NONE = 1;
public static final int SORT_HOMEBREW = 2;
public static native void scanBootables(String[] rootDirectories);
2019-01-06 00:14:08 +00:00
public static native void fullScanBootables(String[] rootDirectories);
2019-01-06 13:44:16 +00:00
public static native Bootable[] getBootables(int sortingMethod);
public static native boolean tryRegisterBootable(String bootablePath);
2017-11-17 18:48:56 -05:00
public static native void setLastBootedTime(String bootablePath, long lastBootedTime);
2021-08-04 13:47:28 -04:00
public static native boolean IsBootableExecutablePath(String bootablePath);
public static native boolean DoesBootableExist(String bootablePath);
public static native void UnregisterBootable(String bootablePath);
public static native void fetchGameTitles();
public static native void PurgeInexistingFiles();
2017-11-17 18:48:56 -05:00
}