Capture Card Viewer
===================

A low-latency viewer for a USB capture card (video + audio passthrough), with a
Steam-style overlay and a Lua modding system.

Requirements
------------
  - Windows 10/11, 64-bit. No installation and no runtime downloads needed --
    just run the .exe.
  - A USB video capture device (one that appears to Windows as a "camera").

Running
-------
  Double-click ModdableCaptureCardProvider.exe. Keep the "addons" folder next to
  the .exe. On first use the app creates "screenshots" and "data" folders
  beside it. Only one copy runs at a time -- a second one tells you so and
  closes, since the capture device is exclusive anyway.

Choosing your capture device
----------------------------
  At startup the app lists every camera/capture device and picks one
  automatically. If it grabs the wrong one (e.g. your webcam), start it with the
  device number or part of its name as an argument:

      ModdableCaptureCardProvider.exe 1
      ModdableCaptureCardProvider.exe Elgato

Controls
--------
  Shift + Tab    Open / close the overlay
  P              Save a screenshot (into the "screenshots" folder)
  Esc            Close the overlay (or quit when the overlay is closed)

In the overlay
--------------
  Options        Window mode (Windowed / Fullscreen / Borderless with a display
                 picker; changes auto-revert after 15s unless you keep them),
                 plus a Developer console toggle.
  Account        Sign in with your dasmaffin.com account. The app and the site
                 are one thing: signing in here is what lets you publish mods
                 there, and your session is remembered between runs (encrypted
                 to your Windows account -- the file is useless anywhere else).
  Upload a mod   Package any addon folder and publish it to dasmaffin.com.
                 Needs a sign-in; downloading mods from the site never does.
  + New note     A sticky note -- click it and type. [P] pins it so it stays on
                 screen while you play; [x] deletes it.
  Cartridges     Mods that register games appear as cartridges along the bottom.
                 Only the selected game's mods run; hovering a cartridge shows
                 its mods and their settings.

Modding
-------
  Addons live in the "addons" folder, one per subfolder:
  addons/<name>/lua/autorun/*.lua. See docs/api.html for the full Lua reference,
  including the worker API for running mod code on other cores.
