mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-19 22:43:32 +00:00
REMOVE: license verification and BuyGame btns/screens
This commit is contained in:
@@ -68,9 +68,6 @@ public:
|
||||
|
||||
_methodGetDateString(0),
|
||||
|
||||
_methodCheckLicense(0),
|
||||
_methodHasBuyButton(0),
|
||||
_methodBuyGame(0),
|
||||
_methodVibrate(0),
|
||||
_methodSupportsTouchscreen(0),
|
||||
_methodSetIsPowerVR(0),
|
||||
@@ -147,10 +144,6 @@ public:
|
||||
|
||||
_methodGetDateString = env->GetMethodID( _activityClass, "getDateString", "(I)Ljava/lang/String;");
|
||||
|
||||
_methodCheckLicense = env->GetMethodID( _activityClass, "checkLicense", "()I");
|
||||
_methodHasBuyButton = env->GetMethodID( _activityClass, "hasBuyButtonWhenInvalidLicense", "()Z");
|
||||
_methodBuyGame = env->GetMethodID( _activityClass, "buyGame", "()V");
|
||||
|
||||
_methodVibrate = env->GetMethodID( _activityClass, "vibrate", "(I)V");
|
||||
_methodSupportsTouchscreen = env->GetMethodID( _activityClass, "supportsTouchscreen", "()Z");
|
||||
_methodSetIsPowerVR = env->GetMethodID( _activityClass, "setIsPowerVR", "(Z)V");
|
||||
@@ -473,36 +466,6 @@ public:
|
||||
return out;
|
||||
}
|
||||
|
||||
int checkLicense() {
|
||||
if (!_isInited) return -2;
|
||||
if (!_methodCheckLicense) return -2;
|
||||
|
||||
JVMAttacher ta(_vm);
|
||||
JNIEnv* env = ta.getEnv();
|
||||
|
||||
return env->CallIntMethod(instance, _methodCheckLicense);
|
||||
}
|
||||
|
||||
bool hasBuyButtonWhenInvalidLicense() {
|
||||
if (!_isInited) return false;
|
||||
if (!_methodHasBuyButton) return false;
|
||||
|
||||
JVMAttacher ta(_vm);
|
||||
JNIEnv* env = ta.getEnv();
|
||||
|
||||
return JNI_TRUE == env->CallBooleanMethod(instance, _methodHasBuyButton);
|
||||
}
|
||||
|
||||
void buyGame() {
|
||||
if (!_isInited) return;
|
||||
if (!_methodBuyGame) return;
|
||||
|
||||
JVMAttacher ta(_vm);
|
||||
JNIEnv* env = ta.getEnv();
|
||||
|
||||
env->CallVoidMethod(instance, _methodBuyGame);
|
||||
}
|
||||
|
||||
virtual void finish() {
|
||||
if (!_isInited) return;
|
||||
if (!_methodFinish) return;
|
||||
@@ -644,10 +607,6 @@ private:
|
||||
|
||||
jmethodID _methodGetDateString;
|
||||
|
||||
jmethodID _methodCheckLicense;
|
||||
jmethodID _methodHasBuyButton;
|
||||
jmethodID _methodBuyGame;
|
||||
|
||||
jmethodID _getScreenWidth;
|
||||
jmethodID _getScreenHeight;
|
||||
jmethodID _methodGetPixelsPerMillimeter;
|
||||
|
||||
Reference in New Issue
Block a user