mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Remove easter-egg
Every day can be x-mas day, how else can we be lovers? :)
This commit is contained in:
parent
69059d7b1b
commit
35605ee763
1 changed files with 3 additions and 11 deletions
|
|
@ -99,18 +99,10 @@ instantiate (const LV2_Descriptor* descriptor,
|
|||
self->synth = synth_alloc();
|
||||
synth_init(self->synth, rate);
|
||||
|
||||
#ifndef PLATFORM_WINDOWS // easter egg is for sane platforms with native support for localtime_r only
|
||||
if (!getenv("HEATHEN")) {
|
||||
struct tm date;
|
||||
time_t now;
|
||||
time(&now);
|
||||
localtime_r(&now, &date);
|
||||
if (getenv("ITSXMAS") || (date.tm_mon == 11 /*dec*/ && date.tm_mday == 25)) {
|
||||
if (getenv("ITSXMAS")) {
|
||||
printf("reasonable synth.lv2 says: happy holidays!\n");
|
||||
self->xmas = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return (LV2_Handle)self;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue