2015-10-26 00:42:13 -04:00
|
|
|
#include <glib.h>
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
#include "gcn64.h"
|
|
|
|
#include "gcn64lib.h"
|
|
|
|
#include "gcn64ctl_gui_mpkedit.h"
|
|
|
|
|
|
|
|
#define GET_ELEMENT(TYPE, ELEMENT) (TYPE *)gtk_builder_get_object(app->builder, #ELEMENT)
|
|
|
|
#define GET_UI_ELEMENT(TYPE, ELEMENT) TYPE *ELEMENT = GET_ELEMENT(TYPE, ELEMENT)
|
|
|
|
|
2015-11-03 21:28:15 -05:00
|
|
|
void errorPopup(struct application *app, const char *message);
|
2015-10-26 08:31:40 -04:00
|
|
|
|
2015-10-26 00:42:13 -04:00
|
|
|
struct application {
|
|
|
|
GtkBuilder *builder;
|
|
|
|
GtkWindow *mainwindow;
|
|
|
|
|
|
|
|
gcn64_hdl_t current_adapter_handle;
|
|
|
|
struct gcn64_info current_adapter_info;
|
|
|
|
GThread *updater_thread;
|
|
|
|
|
|
|
|
const char *update_status;
|
|
|
|
const char *updateHexFile;
|
|
|
|
int update_percent;
|
|
|
|
int update_dialog_response;
|
|
|
|
|
|
|
|
struct mpkedit_data *mpke;
|
2015-11-03 21:28:15 -05:00
|
|
|
int stop_reading_mempak;
|
2015-11-03 23:52:54 -05:00
|
|
|
int inhibit_periodic_updates;
|
2015-10-26 00:42:13 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|