Patch level :10.0
Files correlati : Ricompilazione Demo : [ ] Commento : corretta gestione della about_mask chiamata da Info quando non riesce a gettare l'estensione del programma (.exe) git-svn-id: svn://10.65.10.50/trunk@19781 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
74da0e0b9f
commit
ced033cbda
@ -290,10 +290,16 @@ TInfo_mask::TInfo_mask() : TProperty_sheet(TR("Informazioni"))
|
||||
if (main_app().get_version_info(year, release, tag, patch))
|
||||
versione.format("%d.%02d.%02d Patch %d", year, release, tag, patch);
|
||||
|
||||
const time_t mtime = xvt_fsys_file_attr(main_app().argv(0), XVT_FILE_ATTR_MTIME);
|
||||
const struct tm* data = localtime(&mtime);
|
||||
TString16 datamod; datamod.format("%02d-%02d-%04d", data->tm_mday, data->tm_mon+1, data->tm_year+1900);
|
||||
|
||||
TString16 datamod;
|
||||
TFilename cmdline = main_app().argv(0);
|
||||
cmdline.ext("exe");
|
||||
if (cmdline.exist())
|
||||
{
|
||||
const time_t mtime = xvt_fsys_file_attr(cmdline, XVT_FILE_ATTR_MTIME);
|
||||
const struct tm* data = localtime(&mtime);
|
||||
if (data != NULL)
|
||||
datamod.format("%02d-%02d-%04d", data->tm_mday, data->tm_mon+1, data->tm_year+1900);
|
||||
}
|
||||
TString80 stros, strwx, strcpu;
|
||||
xvt_sys_get_version(stros.get_buffer(), strwx.get_buffer(), stros.size());
|
||||
xvt_sys_get_host_name(strcpu.get_buffer(), strcpu.size());
|
||||
|
Loading…
x
Reference in New Issue
Block a user