@@ -1526,12 +1526,17 @@ void game_cl_mp::SendCollectedData(u8 const* buffer, u32 buffer_size, u32 uncomp
15261526 upload_memory_writer.pointer (), upload_memory_writer.size (), sending_cb, uncompressed_size);
15271527};
15281528
1529- #ifndef LINUX // FIXME!!!
1529+ #ifdef WINDOWS
15301530void game_cl_mp::generate_file_name (string_path& file_name, LPCSTR file_suffix, SYSTEMTIME const & date_time)
15311531{
15321532 xr_sprintf (file_name, " %02d%02d%02d-%02d%02d%02d_%s" , date_time.wYear % 100 , date_time.wMonth , date_time.wDay ,
15331533 date_time.wHour , date_time.wMinute , date_time.wSecond , file_suffix);
15341534}
1535+ #else
1536+ void game_cl_mp::generate_file_name (string_path& file_name, LPCSTR file_suffix, time_t & date_time)
1537+ {
1538+ xr_sprintf (file_name, " %s_%s" , ctime (date_time), file_suffix);
1539+ }
15351540#endif
15361541
15371542LPCSTR game_cl_mp::make_file_name (LPCSTR session_id, string_path& dest)
@@ -1575,11 +1580,14 @@ void game_cl_mp::PrepareToReceiveFile(
15751580 string_path screen_shot_fn;
15761581 LPCSTR dest_file_name = NULL ;
15771582 STRCONCAT (dest_file_name, make_file_name (client_session_id.c_str (), screen_shot_fn));
1578- #ifndef LINUX // FIXME!!!
1583+ #ifdef WINDOWS // FIXME!!!
15791584 SYSTEMTIME date_time;
15801585 GetLocalTime (&date_time);
1581- generate_file_name (screen_shot_fn, dest_file_name, date_time);
1586+ #else
1587+ time_t date_time;
1588+ time (&date_time);
15821589#endif
1590+ generate_file_name (screen_shot_fn, dest_file_name, date_time);
15831591
15841592 fr_callback_binder* tmp_binder = get_receiver_cb_binder ();
15851593 if (!tmp_binder)
0 commit comments