patch_screenshot_dir.diff
b/code/ryzom/client/src/interface_v3/action_handler_misc.cpp | ||
---|---|---|
596 | 596 |
{ |
597 | 597 |
CBitmap btm; |
598 | 598 |
getBuffer (btm); |
599 |
string filename = CFile::findNewFile ("screenshot.tga"); |
|
599 |
CFile::createDirectory("screenshots"); |
|
600 |
string filename = CFile::findNewFile ("screenshots/screenshot.tga"); |
|
600 | 601 |
COFile fs(filename); |
601 | 602 |
btm.writeTGA(fs, 24, false); |
602 | 603 |
nlinfo("Screenshot '%s' saved in tga format (%dx%d)", filename.c_str(), (int) ClientCfg.ScreenShotWidth, (int) ClientCfg.ScreenShotHeight); |
... | ... | |
607 | 608 |
{ |
608 | 609 |
CBitmap btm; |
609 | 610 |
getBuffer (btm); |
610 |
string filename = CFile::findNewFile ("screenshot.png"); |
|
611 |
CFile::createDirectory("screenshots"); |
|
612 |
string filename = CFile::findNewFile ("screenshots/screenshot.png"); |
|
611 | 613 |
COFile fs(filename); |
612 | 614 |
if (!btm.writePNG(fs, 24)) |
613 | 615 |
{ |
... | ... | |
626 | 628 |
{ |
627 | 629 |
CBitmap btm; |
628 | 630 |
getBuffer (btm); |
629 |
string filename = CFile::findNewFile ("screenshot.jpg"); |
|
631 |
CFile::createDirectory("screenshots"); |
|
632 |
string filename = CFile::findNewFile ("screenshots/screenshot.jpg"); |
|
630 | 633 |
COFile fs(filename); |
631 | 634 |
btm.writeJPG(fs); |
632 | 635 |
nlinfo("Screenshot '%s' saved in jpg format (%dx%d)", filename.c_str(), (int) ClientCfg.ScreenShotWidth, (int) ClientCfg.ScreenShotHeight); |