diff options
| author | SND\dario86_cp <SND\dario86_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-03-12 18:54:28 +0000 |
|---|---|---|
| committer | SND\dario86_cp <SND\dario86_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-03-12 18:54:28 +0000 |
| commit | a58cfdac407bc1d8fedc11acd924b275ba28cc51 (patch) | |
| tree | b4c2e08c34ef1bfe0ba947ef8eed931c9a43fc0e /plugins/bladesio1 | |
| parent | 9bdd06684bcc627c06ddcf4c406f6b48f0dfe389 (diff) | |
| download | pcsxr-a58cfdac407bc1d8fedc11acd924b275ba28cc51.tar.gz | |
Commited patch in issue #8171 (by darktjm).
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@64524 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/bladesio1')
| -rw-r--r-- | plugins/bladesio1/settings.c | 6 | ||||
| -rw-r--r-- | plugins/bladesio1/sio1.h | 12 |
2 files changed, 5 insertions, 13 deletions
diff --git a/plugins/bladesio1/settings.c b/plugins/bladesio1/settings.c index b560bf2b..f7628440 100644 --- a/plugins/bladesio1/settings.c +++ b/plugins/bladesio1/settings.c @@ -38,7 +38,8 @@ void settingsRead() file = fopen( configName, "rb" ); if( file ) { - fread( &settings, 1, sizeof(settings), file ); + if(fread( &settings, sizeof(settings), 1, file ) != 1) + perror(configName); fclose( file ); } else @@ -56,7 +57,8 @@ void settingsWrite() file = fopen( configName, "wb" ); if( file ) { - fwrite( &settings, 1, sizeof(settings), file ); + if(fwrite( &settings, sizeof(settings), 1, file ) != 1) + perror(configName); fclose( file ); } } diff --git a/plugins/bladesio1/sio1.h b/plugins/bladesio1/sio1.h index 973adb28..727e48ea 100644 --- a/plugins/bladesio1/sio1.h +++ b/plugins/bladesio1/sio1.h @@ -24,17 +24,7 @@ /******************************************************************************/ -#ifdef ENABLE_NLS -#include <libintl.h> -#include <locale.h> -#define _(x) gettext(x) -#define N_(x) (x) -#else -#define _(x) (x) -#define N_(x) (x) -#endif - -#define CALLBACK +#include "psemu_plugin_defs.h" extern Settings settings; |
