@ThreadSafe public class API extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
assignPassword(String password)
Assigns a password for most crucial emuLib operations.
|
void |
clearAll(String password) |
DebugTable |
getDebugTable()
Gets debug table from emuStudio.
|
static API |
getInstance()
Get singleton instance of this API object.
|
void |
setDebugTable(DebugTable debugTable,
String password)
Set debug table.
|
static boolean |
testPassword(Long hashCode) |
static void |
testPassword(String password)
Determines if given password matches with password already set-up by emuStudio.
|
public static API getInstance()
public void clearAll(String password) throws InvalidPasswordException
InvalidPasswordExceptionpublic static boolean assignPassword(String password)
password - emuStudio hash string, the "password".public static void testPassword(String password) throws InvalidPasswordException
password - The passwordInvalidPasswordException - thrown if password is wrong or trustedInstance is not trustedpublic static boolean testPassword(Long hashCode)
public void setDebugTable(DebugTable debugTable, String password) throws InvalidPasswordException
debugTable - The debug tablepassword - password that was assigned to the emuLib. It prevents
from misuse of this method by other plug-ins.InvalidPasswordException - if the password do not match with the password set by emuStudiopublic DebugTable getDebugTable()
Copyright © 2017. All rights reserved.