padnull: Cleanup unnecessary stuff

There's already a SysMessage definition, so a second one is unnecessary.

Cleanup some headers as well. I wanted to remove the about box as well,
but that can wait.
This commit is contained in:
Jonathan Li 2015-11-25 19:03:55 +00:00
parent 31d6e05811
commit 4a73a157e1
6 changed files with 3 additions and 48 deletions

View File

@ -24,7 +24,6 @@ set(PadNullLinuxSources
# PadNull Linux headers
set(PadNullLinuxHeaders
Linux/Config.h
Linux/PadLinux.h)
# PadNull Windows sources

View File

@ -17,12 +17,10 @@
*/
#include <string>
using namespace std;
#include "Pad.h"
#include "Config.h"
extern string s_strIniPath;
extern std::string s_strIniPath;
PluginConf Ini;
EXPORT_C_(void) PADabout()

View File

@ -1,21 +0,0 @@
/* PadNull
* Copyright (C) 2004-2010 PCSX2 Team
*
* 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
*/
void SaveConf();
void LoadConf();
void SysMessage(char *fmt, ...);

View File

@ -28,12 +28,6 @@
#include "PadLinux.h"
#endif
/*#ifdef _MSC_VER
#define EXPORT_C_(type) extern "C" __declspec(dllexport) type CALLBACK
#else
#define EXPORT_C_(type) extern "C" type
#endif*/
#ifdef _MSC_VER
#define EXPORT_C_(type) extern "C" type CALLBACK
#else
@ -52,7 +46,6 @@ extern FILE *padLog;
extern keyEvent event;
extern void __Log(char *fmt, ...);
extern void SysMessage(char *fmt, ...);
extern void SaveConfig();
extern void LoadConfig();

View File

@ -13,12 +13,11 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __PADLINUX_H__
#define __PADLINUX_H__
#ifndef PADWIN_H
#define PADWIN_H
#include "../Pad.h"
#include <windows.h>
#include <windowsx.h>
void _PadUpdate(int pad);
s32 _PADOpen(void *pDsp);

View File

@ -13,26 +13,13 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <windows.h>
#include <windowsx.h>
#include "resource.h"
#include "../Pad.h"
HINSTANCE hInst;
void SysMessage(char *fmt, ...) {
va_list list;
char tmp[512];
va_start(list,fmt);
vsprintf(tmp,fmt,list);
va_end(list);
MessageBox(0, tmp, "Pad Plugin Msg", 0);
}
BOOL CALLBACK ConfigureDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam) {
switch(uMsg) {