2 Skelton for retropc emulator
3 Author : Takeda.Toshiya
4 Port to Qt : K.Ohta <whatisthis.sowhat _at_ gmail.com>
7 [ win32 main ] -> [ Qt main ]
10 #ifndef _CSP_QT_MAIN_H
11 #define _CSP_QT_MAIN_H
21 //#include "sdl_cpuid.h"
22 #include "simd_types.h"
24 //#include "../../emu.h"
26 class META_MainWindow;
28 extern class META_MainWindow *rMainWindow;
31 extern std::string DLL_PREFIX cpp_homedir;
32 extern std::string DLL_PREFIX cpp_confdir;
33 extern std::string DLL_PREFIX my_procname;
34 extern std::string DLL_PREFIX sRssDir;
35 extern bool DLL_PREFIX now_menuloop;
37 extern const int DLL_PREFIX screen_mode_width[];
38 extern const int DLL_PREFIX screen_mode_height[];
44 #ifndef UPDATE_HISTORY
45 #define UPDATE_HISTORY(path, recent, list) { \
46 int no = MAX_HISTORY - 1; \
48 for(int i = 0; i < MAX_HISTORY; i++) { \
49 if(strcmp(recent[i], path) == 0) { \
56 strcpy(recent[MAX_HISTORY - 1], ""); \
58 for(int i = no; i > 0; i--) { \
59 strcpy(recent[i], recent[i - 1]); \
61 strcpy(recent[0], path); \
63 for(int i = 0; i < MAX_HISTORY; i++) { \
64 QString _tmps = QString::fromLocal8Bit(recent[i]); \
71 #define SETUP_HISTORY(recent, list) { \
73 for(int i = 0; i < MAX_HISTORY; i++) { \
74 QString _tmps = QString::fromLocal8Bit(recent[i]); \
80 extern _TCHAR* DLL_PREFIX get_parent_dir(_TCHAR* file);
81 extern void DLL_PREFIX Convert_CP932_to_UTF8(char *dst, char *src, int n_limit, int i_limit);
82 extern void DLL_PREFIX get_long_full_path_name(_TCHAR* src, _TCHAR* dst);
83 extern void DLL_PREFIX get_short_filename(_TCHAR *dst, _TCHAR *file, int maxlen);
86 //extern AGAR_CPUID *pCpuID;