Skip to content

feat: Remove dependency on original executable for circles palette data#28

Merged
maximilien-noal merged 1 commit into
mainfrom
fix/remove_exe_depedency
May 23, 2026
Merged

feat: Remove dependency on original executable for circles palette data#28
maximilien-noal merged 1 commit into
mainfrom
fix/remove_exe_depedency

Conversation

@maximilien-noal
Copy link
Copy Markdown
Member

No description provided.

@maximilien-noal maximilien-noal marked this pull request as ready for review May 23, 2026 22:26
Copilot AI review requested due to automatic review settings May 23, 2026 22:26
@maximilien-noal maximilien-noal self-assigned this May 23, 2026
@maximilien-noal maximilien-noal merged commit 895375a into main May 23, 2026
4 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the HnmPlayer runtime dependency on locating/reading the original LOGO.EXE in order to prime the circles palette animation state, by embedding the required palette state bytes directly in the player.

Changes:

  • Adds CirclesPaletteData.cs to hold embedded circles palette initialization data.
  • Updates HnmPlaybackEngine.InitializeCirclesPaletteAnimationState() to copy from embedded data and removes the FindOriginalExecutablePath(...) lookup/read path.
  • Updates HnmPlayer.csproj to compile the new source file.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
HnmPlayer/HnmPlayer.csproj Adds the new embedded-data source file to the explicit compile list.
HnmPlayer/HnmPlaybackEngine.cs Switches circles palette init from reading LOGO.EXE to using embedded data; removes exe discovery helper.
HnmPlayer/CirclesPaletteData.cs Introduces embedded circles palette table/step width (and a placeholder buffer) for standalone playback.

Comment on lines +6 to +8
public const ushort StepWidth = 1;
public static readonly byte[] Buffer = new byte[0xF0];
public static readonly byte[] Table = Convert.FromHexString(
Comment on lines +6 to +9
public const ushort StepWidth = 1;
public static readonly byte[] Buffer = new byte[0xF0];
public static readonly byte[] Table = Convert.FromHexString(
"28000001340089001F0000FF800091002D000001C50022003900C0FF00FF00002C0024FF000000FF5000000000000000" +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants