# jisungdiaz447/nsp-box-switch-recompiler-pc architecture

> Architecture diagram of the GitHub repository jisungdiaz447/nsp-box-switch-recompiler-pc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jisungdiaz447/nsp-box-switch-recompiler-pc
- Repository: https://github.com/jisungdiaz447/nsp-box-switch-recompiler-pc

## Overview

The checked-in runtime is a small Windows C++ loop: it polls Insert/End hotkeys and exits when End clears its running flag; the header supplies configuration defaults. The README describes a much broader overlay, scanner, input, and profile product, but those capabilities are not visible in the sampled implementation. They are retained below as documented capabilities rather than asserted as implemented code. The README is the evidence for those claims; source evidence is limited to the two excerpted C++ files.

Main entry points: [`src/nsp_box_switch_recompiler_pc_core.cpp`](https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/blob/main/src/nsp_box_switch_recompiler_pc_core.cpp) (Windows runtime loop), [`include/nsp_box_switch_recompiler_pc_runtime.hpp`](https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/blob/main/include/nsp_box_switch_recompiler_pc_runtime.hpp) (Runtime defaults), [`src`](https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/tree/main/src) (Offset scanner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime"]
  node_core["Windows runtime loop"]
  node_hotkeys["Hotkey polling"]
  node_config["Runtime defaults"]
end

subgraph group_documented["README capabilities"]
  node_scanner["Offset scanner"]
  node_overlay["External overlay"]
  node_external_core["User-mode core"]
  node_input["Input smoothing"]
  node_profiles["JSON profiles"]
  node_panic["Panic unload"]
end

node_user(("User"))

node_user -->|"launches"| node_core
node_core -->|"polls"| node_hotkeys
node_core -.->|"configures"| node_config
node_user -->|"selects modules"| node_scanner
node_user -->|"selects modules"| node_overlay
node_user -->|"selects modules"| node_external_core
node_user -->|"selects modules"| node_input
node_user -->|"switches presets"| node_profiles
node_core -.->|"documents unload"| node_panic

click node_core "https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/blob/main/src/nsp_box_switch_recompiler_pc_core.cpp"
click node_hotkeys "https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/blob/main/src/nsp_box_switch_recompiler_pc_core.cpp"
click node_config "https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/blob/main/include/nsp_box_switch_recompiler_pc_runtime.hpp"
click node_scanner "https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/tree/main/src"
click node_overlay "https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/tree/main/src"
click node_external_core "https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/tree/main/src"
click node_input "https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/tree/main/src"
click node_profiles "https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/tree/main/src"
click node_panic "https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/tree/main/src"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_core,node_hotkeys,node_config,node_user toneBlue
class node_scanner,node_overlay,node_external_core,node_input,node_profiles,node_panic toneAmber
```

## Components

### Runtime

- [Windows runtime loop](https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/blob/main/src/nsp_box_switch_recompiler_pc_core.cpp): `src/nsp_box_switch_recompiler_pc_core.cpp`
- [Hotkey polling](https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/blob/main/src/nsp_box_switch_recompiler_pc_core.cpp): `src/nsp_box_switch_recompiler_pc_core.cpp`
- [Runtime defaults](https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/blob/main/include/nsp_box_switch_recompiler_pc_runtime.hpp): `include/nsp_box_switch_recompiler_pc_runtime.hpp`

### README capabilities

- [Offset scanner](https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/tree/main/src): `src`
- [External overlay](https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/tree/main/src): `src`
- [User-mode core](https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/tree/main/src): `src`
- [Input smoothing](https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/tree/main/src): `src`
- [JSON profiles](https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/tree/main/src): `src`
- [Panic unload](https://github.com/JisungDiaz447/nsp-box-switch-recompiler-pc/tree/main/src): `src`

### Other components

- **User**

## Connections

- User → Windows runtime loop: launches (evidence: `README.md`)
- Windows runtime loop → Hotkey polling: polls (evidence: `src/nsp_box_switch_recompiler_pc_core.cpp`)
- Windows runtime loop → Runtime defaults: configures (evidence: `src/nsp_box_switch_recompiler_pc_core.cpp`)
- User → Offset scanner: selects modules (evidence: `README.md`)
- User → External overlay: selects modules (evidence: `README.md`)
- User → User-mode core: selects modules (evidence: `README.md`)
- User → Input smoothing: selects modules (evidence: `README.md`)
- User → JSON profiles: switches presets (evidence: `README.md`)
- Windows runtime loop → Panic unload: documents unload (evidence: `README.md`)
