2016-06-05 01:32:57 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef ANDROID
|
|
|
|
|
|
|
|
#include <Project64-core/Plugins/PluginClass.h>
|
|
|
|
#include <jni.h>
|
|
|
|
|
2016-08-11 10:43:51 +00:00
|
|
|
class JavaBridge :
|
|
|
|
public RenderWindow
|
2016-06-05 01:32:57 +00:00
|
|
|
{
|
|
|
|
public:
|
2017-04-27 22:36:10 +00:00
|
|
|
JavaBridge(JavaVM* vm);
|
2016-06-05 01:32:57 +00:00
|
|
|
|
|
|
|
//Render window functions
|
2016-08-11 10:43:51 +00:00
|
|
|
void GfxThreadInit();
|
2016-06-05 01:32:57 +00:00
|
|
|
void GfxThreadDone();
|
|
|
|
void SwapWindow();
|
|
|
|
|
|
|
|
//Rom List
|
|
|
|
void RomListReset(void);
|
2017-04-27 22:36:10 +00:00
|
|
|
void RomListAddItem(const char * FullFileName, const char * FileName, const char * GoodName, uint32_t TextColor);
|
2016-06-05 01:32:57 +00:00
|
|
|
void RomListLoaded(void);
|
2016-11-21 07:02:12 +00:00
|
|
|
void RecentRomsUpdated(void);
|
2016-06-05 01:32:57 +00:00
|
|
|
|
|
|
|
//Notification
|
2016-07-09 21:28:30 +00:00
|
|
|
void DisplayError(const char * Message);
|
2016-09-17 01:43:32 +00:00
|
|
|
void DisplayMessage(const char * Message, int DisplayTime);
|
|
|
|
void DisplayMessage2(const char * Message);
|
2017-04-27 22:36:10 +00:00
|
|
|
void EmulationStarted(void);
|
2016-07-09 21:28:30 +00:00
|
|
|
void EmulationStopped(void);
|
2016-06-05 01:32:57 +00:00
|
|
|
|
|
|
|
private:
|
2016-08-11 10:43:51 +00:00
|
|
|
JavaBridge(void); // Disable default constructor
|
|
|
|
JavaBridge(const JavaBridge&); // Disable copy constructor
|
2016-06-05 01:32:57 +00:00
|
|
|
JavaBridge& operator=(const JavaBridge&); // Disable assignment
|
|
|
|
|
2016-08-11 10:43:51 +00:00
|
|
|
JavaVM* m_vm;
|
2016-06-05 01:32:57 +00:00
|
|
|
jclass m_GalleryActivityClass;
|
|
|
|
jclass m_NotifierClass;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|