Browse Source

Use gConfig.pszSavePath instead of PAL_SCREENSHOT_PREFIX

LouYihua 7 years ago
parent
commit
75252368d6
2 changed files with 2 additions and 6 deletions
  1. 0 4
      common.h
  2. 2 2
      video.c

+ 0 - 4
common.h

@@ -192,10 +192,6 @@ typedef const WCHAR        *LPCWSTR;
 # define PAL_CONFIG_PREFIX PAL_PREFIX
 #endif
 
-#ifndef PAL_SCREENSHOT_PREFIX
-# define PAL_SCREENSHOT_PREFIX PAL_SAVE_PREFIX
-#endif
-
 #ifndef PAL_HAS_NATIVEMIDI
 # define PAL_HAS_NATIVEMIDI  0
 #endif

+ 2 - 2
video.c

@@ -766,13 +766,13 @@ VIDEO_SaveScreenshot(
 #ifdef _WIN32
 	SYSTEMTIME st;
 	GetLocalTime(&st);
-	sprintf(filename, "%s%04d%02d%02d%02d%02d%02d%03d.bmp", PAL_SCREENSHOT_PREFIX, st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond, st.wMilliseconds);
+	sprintf(filename, "%s%04d%02d%02d%02d%02d%02d%03d.bmp", gConfig.pszSavePath, st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond, st.wMilliseconds);
 #else
 	struct timeval tv;
 	struct tm *ptm;
 	gettimeofday(&tv, NULL);
 	ptm = localtime(&tv.tv_sec);
-	sprintf(filename, "%s%04d%02d%02d%02d%02d%02d%03d.bmp", PAL_SCREENSHOT_PREFIX, ptm->tm_year + 1900, ptm->tm_mon, ptm->tm_mday, ptm->tm_hour, ptm->tm_min, ptm->tm_sec, (int)(tv.tv_usec / 1000));
+	sprintf(filename, "%s%04d%02d%02d%02d%02d%02d%03d.bmp", gConfig.pszSavePath, ptm->tm_year + 1900, ptm->tm_mon, ptm->tm_mday, ptm->tm_hour, ptm->tm_min, ptm->tm_sec, (int)(tv.tv_usec / 1000));
 #endif
 	
 	//