Commit bb447f97 authored by GnoStiC's avatar GnoStiC

puae 2.3.1

parent e1900939
#include <QtGui/QApplication>
#include <QThread>
#include "puae_bridge.h"
#include "puae_mainwindow.h"
//#include "ui_puae_mainwindow.h"
extern "C" {
#include "gui.h"
#include "options.h"
}
/*
*
*
*/
/*class MyThread : public QThread {
public:
virtual void run();
};
void MyThread::run()
{
QApplication a(NULL, NULL);
puae_MainWindow w;
w.show();
a.exec();
}
*/
int gui_init (void)
{
// MyThread *QT_GUI_Thread=new MyThread;
// QT_GUI_Thread->start();
return 0;
}
void gui_exit (void)
{
}
int gui_update (void)
{
}
void gui_display (int shortcut)
{
if (shortcut == -1) {
QApplication *pApp = new QApplication(NULL,NULL);
puae_MainWindow wptr;
wptr.show();
pApp->exec();
}
}
extern "C" void gui_message (const char *format,...)
{
}
void gui_fps (int fps, int idle)
{
}
void gui_handle_events (void)
{
}
void gui_led (int num, int on)
{
}
void gui_flicker_led (int led, int unitnum, int status)
{
}
void gui_gameport_axis_change (int port, int axis, int state, int max)
{
}
void gui_gameport_button_change (int port, int button, int onoff)
{
}
void gui_disk_image_change (int unitnum, const TCHAR *name, bool writeprotected)
{
}
void gui_filename (int num, const char *name)
{
}
#ifndef PUAE_BRIDGE_H
#define PUAE_BRIDGE_H
#include <stdio.h>
#define TCHAR char
typedef unsigned char uae_u8;
typedef signed char uae_s8;
typedef unsigned int uae_u16;
typedef int uae_s16;
typedef unsigned long uae_u32;
typedef long uae_s32;
#define MAX_DPATH 512
#define STATIC_INLINE static __inline__
#endif // PUAE_BRIDGE_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment