mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 11:06:16 -08:00
Port the frame-copy helper to Windows: a WGL GlContext twin (hidden 1x1 window, 3.2 core context via wglCreateContextAttribsARB, post-1.1 GL entry points resolved through wglGetProcAddress with the same names so the shared render pipeline compiles unchanged), a QueryPerformanceCounter frame_shm_now_ns twin, and a CreateFileMapping/MapViewOfFile ShmRing twin behind the same FrameShmHeader layout. The stdio protocol keeps POSIX-style /impv-* names on every platform; the native sides derive the session-local Local\ mapping name. The reader addon gets the _WIN32 shm twin and compiles as C++ on Windows (MSVC's C mode has no <stdatomic.h>). binding.gyp grows the helper .exe target linking the vendored import library plus opengl32; the mpv DLL is already copied beside the exe by the runtime staging. cleanOutput also removes a stale iptvnator_mpv_helper.exe so a failed rebuild cannot leave the support probe pointing at a dead engine. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>