equal
deleted
inserted
replaced
12 #include "player.h" |
12 #include "player.h" |
13 #include "screenshot.h" |
13 #include "screenshot.h" |
14 #include "variables.h" |
14 #include "variables.h" |
15 #include "date.h" |
15 #include "date.h" |
16 #include "helpers.hpp" |
16 #include "helpers.hpp" |
|
17 #include "fileio.h" |
17 |
18 |
18 char _screenshot_format_name[8]; |
19 char _screenshot_format_name[8]; |
19 uint _num_screenshot_formats; |
20 uint _num_screenshot_formats; |
20 uint _cur_screenshot_format; |
21 uint _cur_screenshot_format; |
21 ScreenshotType current_screenshot_type; |
22 ScreenshotType current_screenshot_type; |
503 SetDParam(1, p->name_2); |
504 SetDParam(1, p->name_2); |
504 SetDParam(2, _date); |
505 SetDParam(2, _date); |
505 GetString(_screenshot_name, STR_4004, lastof(_screenshot_name)); |
506 GetString(_screenshot_name, STR_4004, lastof(_screenshot_name)); |
506 } |
507 } |
507 |
508 |
|
509 SanitizeFilename(_screenshot_name); |
508 base = strchr(_screenshot_name, 0); |
510 base = strchr(_screenshot_name, 0); |
509 base[0] = '.'; strcpy(base + 1, ext); |
511 base[0] = '.'; strcpy(base + 1, ext); |
510 |
512 |
511 serial = 0; |
513 serial = 0; |
512 for (;;) { |
514 for (;;) { |