mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Change the name to Glaurung clone
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
e5cc6f6b85
commit
01dd46a309
1 changed files with 3 additions and 3 deletions
|
@ -71,19 +71,19 @@ void dbg_print_hit_rate() {
|
||||||
const std::string engine_name() {
|
const std::string engine_name() {
|
||||||
|
|
||||||
if (EngineVersion.empty())
|
if (EngineVersion.empty())
|
||||||
{
|
{
|
||||||
std::string date(__DATE__); // From compiler, format is "Sep 21 2008"
|
std::string date(__DATE__); // From compiler, format is "Sep 21 2008"
|
||||||
std::string months("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec");
|
std::string months("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec");
|
||||||
|
|
||||||
size_t mon = 1 + months.find(date.substr(0, 3)) / 4;
|
size_t mon = 1 + months.find(date.substr(0, 3)) / 4;
|
||||||
|
|
||||||
std::stringstream s;
|
std::stringstream s;
|
||||||
s << "Glaurung " << date.substr(date.length() - 2) << std::setfill('0')
|
s << "Glaurung clone " << date.substr(date.length() - 2) << std::setfill('0')
|
||||||
<< std::setw(2) << mon << date.substr(4, 2);
|
<< std::setw(2) << mon << date.substr(4, 2);
|
||||||
|
|
||||||
return s.str();
|
return s.str();
|
||||||
} else
|
} else
|
||||||
return "Glaurung " + EngineVersion;
|
return "Glaurung clone " + EngineVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue