1
0
Fork 0

dialog_about: only include build date with credit (#45)

The build date is largely irrelevant and prevents reproducible builds.
Make it optional.
This commit is contained in:
Martin Herkt 2017-05-22 16:43:30 +02:00 committed by Thomas Goyne
parent dd67db47cb
commit 8d3ad9ff68
2 changed files with 6 additions and 4 deletions

View File

@ -120,7 +120,10 @@ void ShowAboutDialog(wxWindow *parent) {
" FFTW - Copyright (c) Matteo Frigo, Massachusetts Institute of Technology;\n"
#endif
+ _("\nSee the help file for full credits.\n")
+ fmt_tl("Built by %s on %s.", GetAegisubBuildCredit(), GetAegisubBuildTime());
#ifdef BUILD_CREDIT
+ fmt_tl("Built by %s on %s.", GetAegisubBuildCredit(), GetAegisubBuildTime())
#endif
;
// Replace copyright symbol
wxChar copySymbol = 0xA9;

View File

@ -55,17 +55,16 @@ const char *GetAegisubShortVersionString() {
return BUILD_GIT_VERSION_STRING DEBUG_SUFFIX;
}
#ifdef BUILD_CREDIT
const char *GetAegisubBuildTime() {
return __DATE__ " " __TIME__;
}
const char *GetAegisubBuildCredit() {
#ifdef BUILD_CREDIT
return BUILD_CREDIT;
#else
return "";
#endif
}
#endif
bool GetIsOfficialRelease() {
return false;