mirror of
https://github.com/mupen64plus/mupen64plus-oldsvn.git
synced 2025-04-02 10:52:35 -04:00
70 lines
2.7 KiB
C
70 lines
2.7 KiB
C
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
* Mupen64plus - main.h *
|
|
* Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
|
|
* Copyright (C) 2002 Blight *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU General Public License *
|
|
* along with this program; if not, write to the *
|
|
* Free Software Foundation, Inc., *
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
#ifndef __MAIN_H__
|
|
#define __MAIN_H__
|
|
|
|
#include <SDL.h>
|
|
#include <SDL_thread.h>
|
|
|
|
/* globals */
|
|
extern int g_Noask;
|
|
extern int g_NoaskParam;
|
|
extern int g_MemHasBeenBSwapped;
|
|
extern int g_TakeScreenshot;
|
|
extern int g_OsdEnabled;
|
|
extern int g_Fullscreen;
|
|
extern int g_EmulatorRunning;
|
|
extern SDL_Thread* g_EmulationThread;
|
|
extern SDL_Thread* g_RomCacheThread;
|
|
extern char* g_GfxPlugin;
|
|
extern char* g_AudioPlugin;
|
|
extern char* g_InputPlugin;
|
|
extern char* g_RspPlugin;
|
|
|
|
char* get_configpath(void);
|
|
char* get_installpath(void);
|
|
char* get_savespath(void);
|
|
char* get_iconspath(void);
|
|
char* get_iconpath(const char *iconfile);
|
|
int gui_enabled(void);
|
|
|
|
void new_frame();
|
|
void new_vi();
|
|
|
|
void startEmulation(void);
|
|
void stopEmulation(void);
|
|
int pauseContinueEmulation(void);
|
|
|
|
void main_pause(void);
|
|
void main_advance_one(void);
|
|
void main_speedup(int percent);
|
|
void main_speeddown(int percent);
|
|
void main_draw_volume_osd(void);
|
|
|
|
void take_next_screenshot(void);
|
|
void main_message(unsigned int console, unsigned int statusbar, unsigned int osd, unsigned int osd_corner, const char* format, ...);
|
|
void error_message(const char* format, ...);
|
|
|
|
int sdl_event_filter(const SDL_Event *event);
|
|
|
|
#endif /* __MAIN_H__ */
|
|
|