Warning
Cirno's yell is pretty loud. This is unfortunately the program working as intended.
A Win32 background application that randomly launches 東方紅魔郷 ~ the Embodiment of Scarlet Devil at intervals of 9 to 19 seconds. Developed primarily with C++ and some cryofrozen English beef.
- Cirno initializes herself:
- She utilizes
wWinMainto register a minimal, hidden Win32 window class for the sole purpose of recieving Windows messages and hosting the tray icon (using the standard Win32 notification APIs). - No UI ever appears, but Cirno has moved into your system tray.
- She utilizes
- Cirno goes to sleep:
- A detatched background thread is created and immediately starts running. This thread sleeps for a random interval between 9 and 19 seconds, then wakes up unpredictably.
- The process will not terminate on its own, and will continue to run unless you tell Cirno to go away in the tray menu.
- Cirno takes initiative:
- As soon as she wakes up, she takes a snapshot of all active system processes.
- She scans the list for
東方紅魔郷.exe,th06.exe, orth06e.exeand if it is running:- Cirno is satisfied.
- She goes back to sleep.
- If Cirno cannot find any of those processes, she will use
CreateProcessto launch one of the following in the directory Baka Daemon is placed in (in order of highest to lowest priority):th06 (thpatch-en).exevpatch.exe東方紅魔郷.exeth06e.exeth06.exe
- Whether she finds your Touhou executable or not, she will call you an idiot for not having the game open (deservingly).
- A copy of 東方紅魔郷 ~ the Embodiment of Scarlet Devil
- A Windows device that can run 東方紅魔郷 ~ the Embodiment of Scarlet Devil
Simply drop baka-daemon.exe into the same directory as your Touhou 6 executable and run.
If, for whatever reason, you decide you have had enough of Cirno calling you an idiot and forcing you to play Touhou 6, you can terminate the process through the program's tray menu by telling her to go away.
As an added bonus, you can also ask Cirno to launch Touhou 6 from the tray menu as well.
Initially, I intended to program an application that randomly launched the game directly into Stage 6 on Lunatic difficulty with no extra lives. Unfortunately, I forgot I wasn't experienced enough to reverse-engineer ZUN's glorious code, so I repurposed it into something that just serves as a minor annoyance.
At the end of the day, Baka Daemon is simply an excuse for me to experiment with C++ and whatever else this godforsaken program required. I do not recommend this for everyday use, unless you particularly enjoy having Cirno yell at you on occasion.
No.
Well, if you fork this repository and remove that feature, then I guess.
The application icon is a small, heavily modified image of Cirno from 東方輝針城 ~ Double Dealing Character, which is © ZUN / Team Shanghai Alice. It is used here for non-commercial fan purposes and is not covered by the MIT License.
All source code is licensed under the MIT License.