diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-11 03:26:21 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-11 03:26:21 +0000 |
| commit | 6420584693290cc119768491087a7fdf7ee487e4 (patch) | |
| tree | 15962a5ed8640094b3c98470533b42ef89a508a5 /macosx/PcsxrMemCardArray.m | |
| parent | 01055ead4cbd9c3ee64b8be3012cf064f55cd262 (diff) | |
| download | pcsxr-6420584693290cc119768491087a7fdf7ee487e4.tar.gz | |
Only print some NSLogs when debugging.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85969 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrMemCardArray.m')
| -rw-r--r-- | macosx/PcsxrMemCardArray.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/macosx/PcsxrMemCardArray.m b/macosx/PcsxrMemCardArray.m index 0f588371..99a1f492 100644 --- a/macosx/PcsxrMemCardArray.m +++ b/macosx/PcsxrMemCardArray.m @@ -257,7 +257,9 @@ static inline void ClearMemcardData(char *to, int dsti, char *str) - (int)memorySizeAtIndex:(int)idx { if (idx == [rawArray count]) { +#ifdef DEBUG NSLog(@"Trying to get an object one more than the length of the raw array. Perhaps you were trying to \"count\" the free blocks."); +#endif return [self freeBlocks]; } @@ -312,7 +314,9 @@ static inline void ClearMemcardData(char *to, int dsti, char *str) } if (slotnum == [rawArray count]) { +#ifdef DEBUG NSLog(@"Trying to get an object one more than the length of the raw array. Perhaps you were trying to \"delete\" the free blocks."); +#endif return; } |
