From f0e0e3d0fdcb81b82fb2d554f2350f9ea135b0e9 Mon Sep 17 00:00:00 2001 From: "SND\\edgbla_cp" Date: Sun, 2 Jan 2011 21:17:12 +0000 Subject: Visual vibration interface. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@61703 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/Plugin.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'macosx/Plugin.c') diff --git a/macosx/Plugin.c b/macosx/Plugin.c index f8c902ef..c5c450d2 100644 --- a/macosx/Plugin.c +++ b/macosx/Plugin.c @@ -77,11 +77,11 @@ int _OpenPlugins() { //signal(SIGPIPE, SignalExit); GPU_clearDynarec(clearDynarec); - + pathUrl = CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTR("gpuPeopsSoftX.cfg"), NULL, NULL); if (pathUrl) CFURLGetFileSystemRepresentation(pathUrl, true, path, 1024); - + ret = CDR_open(); if (ret < 0) { SysMessage(_("Error Opening CDR Plugin")); return -1; } ret = SPU_open(); @@ -92,8 +92,10 @@ int _OpenPlugins() { GPU_registerCallback(GPUbusy); ret = PAD1_open(&gpuDisp); if (ret < 0) { SysMessage(_("Error Opening PAD1 Plugin")); return -1; } + PAD1_registerVibration(GPU_visualVibration); ret = PAD2_open(&gpuDisp); if (ret < 0) { SysMessage(_("Error Opening PAD2 Plugin")); return -1; } + PAD2_registerVibration(GPU_visualVibration); return 0; } @@ -106,7 +108,7 @@ int OpenPlugins() { LoadMcds(Config.Mcd1, Config.Mcd2); if (LoadPlugins() == -1) return -1; } - return ret; + return ret; } void ClosePlugins() { -- cgit v1.2.3