Hopefully fixed the file name of the saved screenshots.

This commit is contained in:
OBattler
2017-05-06 22:44:45 +02:00
parent 9f99dbcfae
commit 1d93801019

View File

@@ -702,7 +702,7 @@ void take_screenshot()
if (vid_api == 1)
{
wcsftime(screenshot_fn_partial, 2048, L"screenshots\\%Y%m%d_%H%M%S.png", info);
append_filename(screenshot_fn, pcempath, screenshot_fn_partial, 4095);
append_filename_w(screenshot_fn, pcempath, screenshot_fn_partial, 4095);
if (video_fullscreen)
{
d3d_fs_take_screenshot(screenshot_fn);
@@ -715,8 +715,8 @@ void take_screenshot()
}
else if (vid_api == 0)
{
strftime(screenshot_fn_partial, 1024, "screenshots\\%Y%m%d_%H%M%S.bmp", info);
append_filename(screenshot_fn, pcempath, screenshot_fn_partial, 4095);
wcsftime(screenshot_fn_partial, 2048, L"screenshots\\%Y%m%d_%H%M%S.bmp", info);
append_filename_w(screenshot_fn, pcempath, screenshot_fn_partial, 4095);
if (video_fullscreen)
{
ddraw_fs_take_screenshot(screenshot_fn);