summaryrefslogtreecommitdiff
path: root/macosx/plugins
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-03-03 19:50:59 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-03-03 19:50:59 +0000
commit5660e3f37355999b2877ffbdde86794f2ea2e33d (patch)
tree33764b49f92b35b2111895d3cb30b997cdfe3306 /macosx/plugins
parentbc21097f4380f1b62ace949f1f766ceacbcc7c59 (diff)
downloadpcsxr-5660e3f37355999b2877ffbdde86794f2ea2e33d.tar.gz
OS X fiddling
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@89254 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins')
-rw-r--r--macosx/plugins/DFSound/Resorces/Shared/hu.lproj/Localizable.strings1
-rw-r--r--macosx/plugins/DFSound/Resorces/Shared/zh-Hans.lproj/Localizable.strings18
-rw-r--r--macosx/plugins/DFXVideo/macsrc/GL2Code.m4
-rw-r--r--macosx/plugins/DFXVideo/macsrc/GL3Code.m2
-rwxr-xr-xmacosx/plugins/DFXVideo/macsrc/PluginGLView.h2
-rwxr-xr-xmacosx/plugins/DFXVideo/macsrc/PluginGLView.m15
6 files changed, 23 insertions, 19 deletions
diff --git a/macosx/plugins/DFSound/Resorces/Shared/hu.lproj/Localizable.strings b/macosx/plugins/DFSound/Resorces/Shared/hu.lproj/Localizable.strings
index bc79acfb..27a18673 100644
--- a/macosx/plugins/DFSound/Resorces/Shared/hu.lproj/Localizable.strings
+++ b/macosx/plugins/DFSound/Resorces/Shared/hu.lproj/Localizable.strings
@@ -12,6 +12,7 @@
"OpenAL Sound" = "OpenAL hang";
"Mac OS X Sound" = "Mac OS X hang";
"P.E.Op.S. Sound Driver V1.7\nCoded by Pete Bernert and the P.E.Op.S. team\n" = "P.E.Op.S. Sound Driver V1.7\nFejlesztő Pete Bernert és a P.E.Op.S. team\n";
+
/*Unknown/not found value */
//"(Unknown)" = "(Unknown)";
diff --git a/macosx/plugins/DFSound/Resorces/Shared/zh-Hans.lproj/Localizable.strings b/macosx/plugins/DFSound/Resorces/Shared/zh-Hans.lproj/Localizable.strings
index 5bd7beeb..09bfa3dc 100644
--- a/macosx/plugins/DFSound/Resorces/Shared/zh-Hans.lproj/Localizable.strings
+++ b/macosx/plugins/DFSound/Resorces/Shared/zh-Hans.lproj/Localizable.strings
@@ -16,19 +16,19 @@
//"(Unknown)" = "(Unknown)";
/* Interpolation Values */
-"(No Interpolation)" = "(No Interpolation)";
+//"(No Interpolation)" = "(No Interpolation)";
"(Simple Interpolation)" = "(简易增益)";
-"(Gaussian Interpolation)" = "(Gaussian Interpolation)";
-"(Cubic Interpolation)" = "(Cubic Interpolation)";
+//"(Gaussian Interpolation)" = "(Gaussian Interpolation)";
+//"(Cubic Interpolation)" = "(Cubic Interpolation)";
/* Reverb Values */
-"(No Reverb)" = "(No Reverb)";
+//"(No Reverb)" = "(No Reverb)";
"(Simple Reverb)" = "(简易混响)";
-"(PSX Reverb)" = "(PSX Reverb)";
+//"(PSX Reverb)" = "(PSX Reverb)";
/* Volume Values */
-"(Muted)" = "(Muted)";
-"(Low)" = "(Low)";
-"(Medium)" = "(Medium)";
+//"(Muted)" = "(Muted)";
+//"(Low)" = "(Low)";
+//"(Medium)" = "(Medium)";
"(Loud)" = "(高音)";
-"(Loudest)" = "(Loudest)";
+//"(Loudest)" = "(Loudest)";
diff --git a/macosx/plugins/DFXVideo/macsrc/GL2Code.m b/macosx/plugins/DFXVideo/macsrc/GL2Code.m
index 427575c0..729af742 100644
--- a/macosx/plugins/DFXVideo/macsrc/GL2Code.m
+++ b/macosx/plugins/DFXVideo/macsrc/GL2Code.m
@@ -156,10 +156,6 @@ static int mylog2(int val)
[NSOpenGLContext clearCurrentContext];
[glLock unlock];
-
- if (image_base)
- free(image_base);
-
}
- (void)reshapeGL2
diff --git a/macosx/plugins/DFXVideo/macsrc/GL3Code.m b/macosx/plugins/DFXVideo/macsrc/GL3Code.m
index 0e8ec435..039de9a0 100644
--- a/macosx/plugins/DFXVideo/macsrc/GL3Code.m
+++ b/macosx/plugins/DFXVideo/macsrc/GL3Code.m
@@ -117,7 +117,7 @@ static int mylog2(int val)
}
/* chargement du code source */
- src = [self loadSource:filename];
+ src = [PluginGLView loadSource:filename];
if(src == NULL)
{
/* theoriquement, la fonction LoadSource a deja affiche un message
diff --git a/macosx/plugins/DFXVideo/macsrc/PluginGLView.h b/macosx/plugins/DFXVideo/macsrc/PluginGLView.h
index 4400c2c8..a8667b11 100755
--- a/macosx/plugins/DFXVideo/macsrc/PluginGLView.h
+++ b/macosx/plugins/DFXVideo/macsrc/PluginGLView.h
@@ -75,7 +75,7 @@ static inline void RunOnMainThreadSync(dispatch_block_t block)
- (void)swapBuffer;
- (void)clearBuffer:(BOOL)display;
- (void)loadTextures:(GLboolean)first;
-- (char*)loadSource:(NSURL *)filename;
++ (char*)loadSource:(NSURL *)filename;
void printProgramInfoLog(GLuint obj);
@end
diff --git a/macosx/plugins/DFXVideo/macsrc/PluginGLView.m b/macosx/plugins/DFXVideo/macsrc/PluginGLView.m
index c157e499..a3dda640 100755
--- a/macosx/plugins/DFXVideo/macsrc/PluginGLView.m
+++ b/macosx/plugins/DFXVideo/macsrc/PluginGLView.m
@@ -57,6 +57,10 @@ extern time_t tStart;
} else if (oglProfile == NSOpenGLProfileVersion3_2Core) {
[self cleanupGL3];
}
+
+ if (image_base) {
+ free(image_base);
+ }
}
- (BOOL)isOpaque
@@ -174,16 +178,19 @@ extern time_t tStart;
}
}
-- (char*)loadSource:(NSURL *)filename
++ (char*)loadSource:(NSURL *)filename
{
//Since we're passing Cocoa NSURLs, let's use Cocoa's methods
if (filename == nil) {
return NULL;
}
- NSMutableData *shaderData = [NSMutableData dataWithContentsOfURL:filename];
+
+ NSUInteger len;
+ NSMutableData *shaderData = [[NSMutableData alloc] initWithContentsOfURL:filename];
[shaderData appendBytes:"\0" length:1];
- char *shaderText = malloc([shaderData length]);
- [shaderData getBytes:shaderText length:[shaderData length]];
+ len = [shaderData length];
+ char *shaderText = malloc(len);
+ [shaderData getBytes:shaderText length:len];
return shaderText;
}