some devices may crash when using JNI callback in that way...
This commit is contained in:
chinosk
2024-06-24 22:09:25 +08:00
parent 9fede70bec
commit 91dea41ca2
4 changed files with 95 additions and 33 deletions
+3
View File
@@ -2,6 +2,7 @@
#define GAKUMAS_LOCALIFY_LOG_H
#include <string>
#include <jni.h>
namespace GakumasLocal::Log {
std::string StringFormat(const char* fmt, ...);
@@ -16,6 +17,8 @@ namespace GakumasLocal::Log {
void ShowToast(const char* text);
void ShowToastFmt(const char* fmt, ...);
void ToastLoop(JNIEnv *env, jclass clazz);
}
#endif //GAKUMAS_LOCALIFY_LOG_H