Skip to content

Add LocalTimeSnapshot, parsing helpers, and doc/path updates#229

Merged
themuffinator merged 1 commit into
mainfrom
muffdev
Jun 25, 2026
Merged

Add LocalTimeSnapshot, parsing helpers, and doc/path updates#229
themuffinator merged 1 commit into
mainfrom
muffdev

Conversation

@themuffinator

Copy link
Copy Markdown
Collaborator

Introduce a portable LocalTimeSnapshot in mm_util.h and replace direct localtime usage with snapshot-based APIs across several modules (timestamp/screenshot formatting, clock entity, debug logging) to improve portability and avoid duplicate calls. Add MM_TrimAsciiWhitespace and strengthen parsing helpers in mm_parse.h (std::string_view support, safer int/float/quoted parsing and embedded-null detection), and update mm_loc_parse.h to use string_view, trimmed/quoted body handling, and the new float parsing. Rename private Horde AdaptiveState members to camelCase for internal consistency. Update tests to cover trimming and parsing edge cases. Refresh various docs and changelog references to the new src/sgame/ tree and adjust in-doc source-path examples.

Introduce a portable LocalTimeSnapshot in mm_util.h and replace direct localtime usage with snapshot-based APIs across several modules (timestamp/screenshot formatting, clock entity, debug logging) to improve portability and avoid duplicate calls. Add MM_TrimAsciiWhitespace and strengthen parsing helpers in mm_parse.h (std::string_view support, safer int/float/quoted parsing and embedded-null detection), and update mm_loc_parse.h to use string_view, trimmed/quoted body handling, and the new float parsing. Rename private Horde AdaptiveState members to camelCase for internal consistency. Update tests to cover trimming and parsing edge cases. Refresh various docs and changelog references to the new src/sgame/ tree and adjust in-doc source-path examples.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f5472ea863

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/sgame/muffmode/mm_loc_parse.h
@themuffinator themuffinator merged commit 7782926 into main Jun 25, 2026
7 checks passed
@themuffinator themuffinator deleted the muffdev branch June 25, 2026 21:17
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.

1 participant