mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
MusicMod: Prepare to fix the MusicMod build
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3505 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
64
Externals/MusicMod/Player/Src/GenPlugin.h
vendored
Normal file
64
Externals/MusicMod/Player/Src/GenPlugin.h
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Plainamp, Open source Winamp core
|
||||
//
|
||||
// Copyright <20> 2005 Sebastian Pipping <webmaster@hartwork.org>
|
||||
//
|
||||
// --> http://www.hartwork.org
|
||||
//
|
||||
// This source code is released under the GNU General Public License (GPL).
|
||||
// See GPL.txt for details. Any non-GPL usage is strictly forbidden.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#ifndef PA_GEN_PLUGIN_H
|
||||
#define PA_GEN_PLUGIN_H
|
||||
|
||||
|
||||
|
||||
#include "Global.h"
|
||||
#include "Plugin.h"
|
||||
#include "Winamp/Gen.h"
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
|
||||
typedef winampGeneralPurposePlugin * ( * WINAMP_GEN_GETTER )( void );
|
||||
|
||||
|
||||
|
||||
class GenPlugin;
|
||||
|
||||
extern vector <GenPlugin *> gen_plugins;
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// Winamp general purpose plugin wrapper
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
class GenPlugin : public Plugin
|
||||
{
|
||||
public:
|
||||
GenPlugin( TCHAR * szDllpath, bool bKeepLoaded );
|
||||
|
||||
bool Load();
|
||||
bool Unload();
|
||||
|
||||
TCHAR * GetTypeString() { return TEXT( "General" ); }
|
||||
int GetTypeStringLen() { return 7; }
|
||||
PluginType GetType() { return PLUGIN_TYPE_GEN; }
|
||||
|
||||
inline bool IsActive() { return IsLoaded(); }
|
||||
|
||||
bool Config();
|
||||
|
||||
inline bool AllowRuntimeUnload() { return ( iHookerIndex == -1 ) || ( iHookerIndex == iWndprocHookCounter - 1 ); }
|
||||
|
||||
private:
|
||||
winampGeneralPurposePlugin * plugin;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // PA_GEN_PLUGIN_H
|
Reference in New Issue
Block a user