# sillyproductions/oh-so-silly architecture

> Architecture diagram of the GitHub repository sillyproductions/oh-so-silly, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sillyproductions/oh-so-silly
- Repository: https://github.com/sillyproductions/oh-so-silly

## Overview

##### Project type and purpose
- From the README (“my very awesome sillyware… hi this is malware that’s very silly … annoying :3”) and the presence of Windows‐style modules (keyboardhook.cpp/h, screenarea.cpp, protect.cpp, pinkhue.cpp, playresource.cpp, cats.cpp/h), we determine this is a desktop “prank” application targeting Windows. It hooks keyboard events, tints the screen, plays a sound, displays cat images and prevents easy termination.

##### File structure
- Top‐level files:
- CMakeLists.txt – CMake build configuration
- main.cpp – application entry point
- *.cpp / *.h pairs – feature modules
- Module breakdown by filename:
- keyboardhook.* – intercept keystrokes
- screenarea.* – manipulate portions of the display
- pinkhue.* – apply a pink hue filter to the screen
- playresource.* & resources/meow.wav – audio playback
- cats.* & resources/cats – image loading/display
- find.cpp – file‐system scanning
- protect.cpp – prevent process termination or window closing
- resources/ – static assets (images + audio)
- Build config: standard CMake workflow; produces a single executable.

##### README for additional insights
- Build instructions confirm CMake‐driven native build—no external servers or services.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Core Modules
    Main["SillyWare.exe"]:::core
    HookManager["Hook Manager"]:::core
    subgraph "Display Filter"
        ScreenArea["screenarea.cpp"]:::core
        PinkHue["pinkhue.cpp"]:::core
    end
    ResourceManager["Resource Manager"]:::resource
    AudioPlayer["Audio Player"]:::core
    FileScanner["File Scanner"]:::core
    ProtectionModule["Protection Module"]:::core

    %% Resources
    ResFolder[(cats folder)]:::resource
    MeowRes[(meow.wav)]:::resource

    %% External
    WinAPI[(WinAPI)]:::external

    %% Build
    BuildConfig["CMake Build"]:::core

    %% Connections
    Main --> HookManager
    Main --> ProtectionModule
    Main --> BuildConfig
    HookManager --> ScreenArea
    HookManager --> PinkHue
    HookManager --> ResourceManager
    HookManager --> AudioPlayer
    HookManager --> FileScanner
    ResourceManager --> ResFolder
    AudioPlayer --> MeowRes
    ScreenArea --> WinAPI
    PinkHue --> WinAPI
    ResourceManager --> WinAPI
    AudioPlayer --> WinAPI
    FileScanner --> WinAPI
    ProtectionModule -.-> HookManager
    ProtectionModule -.-> Main

    %% Click events
    click Main "https://github.com/sillyproductions/oh-so-silly/blob/master/main.cpp"
    click HookManager "https://github.com/sillyproductions/oh-so-silly/blob/master/keyboardhook.cpp"
    click ScreenArea "https://github.com/sillyproductions/oh-so-silly/blob/master/screenarea.cpp"
    click PinkHue "https://github.com/sillyproductions/oh-so-silly/blob/master/pinkhue.cpp"
    click ResourceManager "https://github.com/sillyproductions/oh-so-silly/blob/master/cats.cpp"
    click ResFolder "https://github.com/sillyproductions/oh-so-silly/tree/master/resources/cats"
    click AudioPlayer "https://github.com/sillyproductions/oh-so-silly/blob/master/playresource.cpp"
    click MeowRes "https://github.com/sillyproductions/oh-so-silly/blob/master/resources/meow.wav"
    click FileScanner "https://github.com/sillyproductions/oh-so-silly/blob/master/find.cpp"
    click ProtectionModule "https://github.com/sillyproductions/oh-so-silly/blob/master/protect.cpp"
    click BuildConfig "https://github.com/sillyproductions/oh-so-silly/blob/master/CMakeLists.txt"

    %% Styles
    classDef core fill:#ADD8E6,stroke:#000000
    classDef resource fill:#90EE90,stroke:#000000
    classDef external fill:#FFA500,stroke:#000000
```
