diff options
| author | John Peterson <jpeterson57@gmail.com> | 2009-01-03 01:38:44 +0000 |
|---|---|---|
| committer | John Peterson <jpeterson57@gmail.com> | 2009-01-03 01:38:44 +0000 |
| commit | 264056972d753e4018ea46472b5f657c75dc4b8a (patch) | |
| tree | 159d3d1f36877e6600ce1652da35a54b5c5a98ce /Branches/MusicMod/Player/Src/InputPlugin.cpp | |
| parent | 55db2299291707e837d49b9f34b8656b91d3ab14 (diff) | |
MusicMod: Added music modification, it currently only works in Windows
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1736 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Branches/MusicMod/Player/Src/InputPlugin.cpp')
| -rw-r--r-- | Branches/MusicMod/Player/Src/InputPlugin.cpp | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/Branches/MusicMod/Player/Src/InputPlugin.cpp b/Branches/MusicMod/Player/Src/InputPlugin.cpp index d6daa31cfe..649b0aa17c 100644 --- a/Branches/MusicMod/Player/Src/InputPlugin.cpp +++ b/Branches/MusicMod/Player/Src/InputPlugin.cpp @@ -9,6 +9,9 @@ // See GPL.txt for details. Any non-GPL usage is strictly forbidden.
////////////////////////////////////////////////////////////////////////////////
+// =======================================================================================
+#include "Global.h"
+// =======================================================================================
#include "InputPlugin.h"
#include "Console.h"
@@ -24,9 +27,8 @@ InputPlugin * active_input_plugin = NULL; // extern -////////////////////////////////////////////////////////////////////////////////
-//
-////////////////////////////////////////////////////////////////////////////////
+// =======================================================================================
+// The InputPlugin class is inherited from the Plugin class
InputPlugin::InputPlugin( TCHAR * szDllpath, bool bKeepLoaded ) : Plugin( szDllpath )
{
iHookerIndex = -1;
@@ -35,6 +37,8 @@ InputPlugin::InputPlugin( TCHAR * szDllpath, bool bKeepLoaded ) : Plugin( szDllp iFiltersLen = 0;
plugin = NULL;
+ wprintf("\InputPlugin::InputPlugin > Begin\n");
+
if( !Load() )
{
return;
@@ -65,6 +69,8 @@ InputPlugin::~InputPlugin() ////////////////////////////////////////////////////////////////////////////////
bool InputPlugin::Load()
{
+ printf("InputPlugin::Load() was called. IsLoaded: %i\n", IsLoaded());
+
if( IsLoaded() ) return true;
@@ -144,13 +150,15 @@ bool InputPlugin::Load() }
-
+#ifdef NOGUI
+ printf( "Loading <%s>, %s\n" , GetFilename(), szName );
+#else
TCHAR szBuffer[ 5000 ];
_stprintf( szBuffer, TEXT( "Loading <%s>, %s" ), GetFilename(), szName );
Console::Append( szBuffer );
+#endif
-
- Integrate();
+ Integrate(); // This function is just below
// Note: Plugins that use a wndproc hook need
@@ -226,10 +234,15 @@ bool InputPlugin::Integrate() // Append filter name
ToTchar( walk_out, start_display, len_display );
+
+// =======================================================================================
+// Print used filetypes
TCHAR szBuffer[ 5000 ];
*(walk_out + len_display) = TEXT( '\0' );
_stprintf( szBuffer, TEXT( " %s" ), walk_out );
Console::Append( szBuffer );
+ //printf( szBuffer, TEXT( " %s\n" ), walk_out );
+// =======================================================================================
walk_out += len_display;
// Convert and append extensions
@@ -312,6 +325,7 @@ bool InputPlugin::Unload() _stprintf( szBuffer, TEXT( "Unloading <%s>" ), GetFilename() );
Console::Append( szBuffer );
Console::Append( TEXT( " " ) );
+ printf( ">>>Unloading <%s>\n" , GetFilename() );
// Quit
if( plugin )
|
