/[pcsx2_0.9.7]/trunk/plugins/GSdx/GS.cpp
ViewVC logotype

Diff of /trunk/plugins/GSdx/GS.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/plugins/GSdx/GS.cpp	2010/12/23 11:48:33	279
+++ trunk/plugins/GSdx/GS.cpp	2010/12/23 12:02:12	280
@@ -27,6 +27,7 @@
 #include "GSRendererNull.h"
 #include "GSSettingsDlg.h"
 
+
 #define PS2E_LT_GS 0x01
 #define PS2E_GS_VERSION 0x0006
 #define PS2E_X86 0x01   // 32 bit
@@ -472,9 +473,22 @@
 	s_gs->GetLastTag(tag);
 }
 
-EXPORT_C GSgetTitleInfo(char dest[128])
+
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#endif
+
+EXPORT_C GSgetTitleInfo2(char* dest, size_t length)
 {
-	//s_gs->GetWindowTitle
+	if (!s_gs->m_GStitleInfoBuffer[0])
+		strcpy(dest, "GSdx");
+	else
+	{
+		EnterCriticalSection(&s_gs->m_pGSsetTitle_Crit);
+		snprintf(dest, length-1, "GSdx | %s", s_gs->m_GStitleInfoBuffer);
+		dest[length-1] = 0;		// just in case!
+		LeaveCriticalSection(&s_gs->m_pGSsetTitle_Crit);
+	}
 }
 
 EXPORT_C GSsetFrameSkip(int frameskip)

 

  ViewVC Help
Powered by ViewVC 1.1.22