Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning

Cirno's yell is pretty loud. This is unfortunately the program working as intended.

❄️Baka Daemon

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.

How does she work?

  1. Cirno initializes herself:
    • She utilizes wWinMain to 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.
  2. 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.
  3. 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, or th06e.exe and if it is running:
      • Cirno is satisfied.
      • She goes back to sleep.
    • If Cirno cannot find any of those processes, she will use CreateProcess to launch one of the following in the directory Baka Daemon is placed in (in order of highest to lowest priority):
      • th06 (thpatch-en).exe
      • vpatch.exe
      • 東方紅魔郷.exe
      • th06e.exe
      • th06.exe
    • Whether she finds your Touhou executable or not, she will call you an idiot for not having the game open (deservingly).

Requirements

Usage

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.

FAQ

...Why?

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.

Can I just have a tray icon without the constant Touhou 6 pop-up?

No.

Well, if you fork this repository and remove that feature, then I guess.

License

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.

About

A Win32 background application that randomly launches Touhou 6 at intervals of 9 to 19 seconds. Developed with C++ and some cryofrozen English beef.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages