Remove easter-egg
Every day can be x-mas day, how else can we be lovers? :)
This commit is contained in:
@@ -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)) {
|
||||
printf("reasonable synth.lv2 says: happy holidays!\n");
|
||||
self->xmas = true;
|
||||
}
|
||||
if (getenv("ITSXMAS")) {
|
||||
printf("reasonable synth.lv2 says: happy holidays!\n");
|
||||
self->xmas = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
return (LV2_Handle)self;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user