Commit Graph
31 Commits
Author SHA1 Message Date
shweet 71b0ef683b Queue handed-over paths for the main loop, and stop listening on any exit
A path handed over before SDL started its event queue was lost (its event
failed to push). Paths now wait in a queue the main loop takes from, and an
event only wakes it. A peer that connects and stays silent times out instead
of holding the listener (and quitting) forever. Forwarded paths are made
absolute first, a forwarded launch no longer opens (and prunes) session logs,
and an exception no longer leaves the listening thread joinable at exit.

Also: a failed audio device open is tried again on the next play, a voice
without a stream isn't kept, subprocess checks _WIN32, and a Process can't be
copied (closing its pipe twice).
2026-11-22 19:43:33 -05:00
shweet 4b17e9b328 Read the settings file once, keeping Dear ImGui's section as it parses 2026-11-22 19:04:09 -05:00
shweet 03bbb93ba6 Replace glm with vec.h
Vec2, IVec2, Vec3, Vec4, IVec4 and a column-major Mat4, with glm's formulas, in one header.
Free functions are vec_ and mat4_ prefixed. The leaked using namespace glm is gone.
Render goldens still match.
2026-11-22 18:15:02 -05:00
shweet c38a3a9890 Sleep while idle
With no input for a second and nothing playing, recording, fading or being typed, the window redraws 20 times a second instead of 120, and wakes on the next event.
Idle CPU with a document open went from 5.6% to 1.7% of a core.
2026-11-22 17:46:36 -05:00
shweet d2c0e32ff5 Start the editor from main, and hand paths over with a small instance listener
Loader and State are folded into main.cpp. SDL_main gives Windows UTF-8 arguments.
instance.cpp replaces the Socket class. A later editor sends its paths and waits for the first to answer.
When something else holds the port, the editor now runs on its own instead of quietly exiting.
2026-11-22 17:40:24 -05:00
shweet 7afdf709c3 Format like smack-a-brother, and write comments as sentences
Four-space indents, braces on their own lines, and one-statement bodies without braces.
Semicolons in comments became full stops.
Designated initializers may leave fields out without a warning.
2026-11-22 17:30:03 -05:00
shweet 40f6b554b5 Initialize with = instead of braces, and drop const from local autos
Scalars get = 0, = false or = nullptr. Standard containers and strings rely on their constructors.
Other types get = {} or = value, and lists keep = {...}.
glm types are left alone until they're replaced.
2026-11-22 17:27:24 -05:00
shweet 666f65bf3a Remove namespaces, and make file-local helpers static
Names that only a namespace told apart get prefixes: TOOL_PAN, FONT_BOLD, ICON_FOLDER, COLOR_WHITE, path_to_utf8 and so on.
The OpenGL shader class is ShaderProgram, and its uniform ShaderUniform, beside the document's Shader and Uniform.
Free functions a member of the same name would hide are called through :: for now.
Two unused shader window helpers are gone.
2026-11-22 17:25:09 -05:00
shweet 7fb2c607c2 Flatten src into model, edit and ui, with .h headers
Resources and utilities sit directly in src. The ImGui windows, wizards, popups and helpers are in ui.
Headers that would shadow system ones are renamed: math_util, timestamp, subprocess, localization.
Includes are written from src.
2026-11-22 17:12:05 -05:00
shweetandClaude Opus 5.5 abb9f965d6 The CLI is a mode of anm2ed (anm2ed info|frame|render ...), not a separate binary
On Windows it attaches to the console it was started from, and gets UTF-8
arguments like the editor does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:34:36 -04:00
shweetandClaude Opus 5.5 8953101245 Stage 0: continuity test suite
- anm2ed_core static library (anm2 + non-UI util + log) shared by app and tests
- Logger is inert until session_open, so the core has no SDL dependency
- doctest suite: golden round-trips of 12 synthetic fixtures across every
  serialization preset, format and merge type; save/reload invariants
  (fixed point, hash stability, game view equals re-baked game view);
  operation goldens; env-gated private corpus run (ANM2ED_CORPUS)
- ANM2ED_UPDATE_GOLDEN=1 regenerates goldens; tests/MANUAL.md UI checklist

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 14:34:31 -04:00
shweet 5e27111b21 address log accumulation issue and non-ascii files load on program init 2026-08-13 21:40:28 -04:00
shweet e6a4065777 exception logger 2026-05-11 17:55:00 -04:00
shweet c11b404392 let's actually stage those changes... 2026-03-09 23:09:37 -04:00
shweet 54593e9b6e Anm2Ed 2.0................. 2025-11-13 22:58:45 -05:00
shweet defddd9de8 Anm2Ed 2.0........ 2025-11-13 22:57:13 -05:00
shweet a048a37b42 Anm2Ed 2.0... 2025-11-13 22:55:09 -05:00
shweet 07096c487b fuck git and fuck vs code 2025-11-11 11:25:46 -05:00
shweet 62cd94ca78 Big refactor, shuffling a lot of files around 2025-11-01 19:51:19 -04:00
shweet 5b0f9a39c4 Refactor... 2025-10-21 20:23:27 -04:00
shweet dbb6d13f34 refactor pt 1; getting each thing right and then will push to main 2025-09-19 17:57:48 -04:00
shweet b2cf67a823 Added fit, fixed the layer -1 bug finally, refactored here and there 2025-09-09 17:51:17 -04:00
shweet 3546f27655 Moved spritesheet texture handling to anm2 instead of resources; added undoing for spritesheet texture changes; refactoring 2025-08-27 00:28:41 -04:00
shweet afbaf2bc65 Additional logging + FFMpeg changes; ffmpeg output will be in the log now 2025-08-15 18:03:45 -04:00
shweet 8388fd5d99 logging 2025-08-15 17:17:11 -04:00
shweet 4029828d04 The Omega Update(TM) Part 5 (Finishing) 2025-08-14 21:39:17 -04:00
shweet ea3498692a The Omega Update(TM) Part 4 (Massive Refactor, Change All Frame Properties) 2025-08-14 00:25:35 -04:00
shweet fe8bdae9a8 The Update(TM), Part 1 2025-07-27 22:08:57 -04:00
shweet 30880c003d The Omega Refactor(TM) + Input Options 2025-06-30 21:29:59 -04:00
shweet 91190987ed basics 2025-06-19 05:29:06 -04:00
shweet 91d01a1441 first commit 2025-06-15 22:03:02 -04:00