Skip to content

Feat: Misc Update#423

Merged
FlyAndNotDown merged 3 commits into
ExplosionEngine:masterfrom
FlyAndNotDown:master
Jun 20, 2026
Merged

Feat: Misc Update#423
FlyAndNotDown merged 3 commits into
ExplosionEngine:masterfrom
FlyAndNotDown:master

Conversation

@FlyAndNotDown

Copy link
Copy Markdown
Member

No description provided.

- drop the obsolete Windows long-path notice (qt recipe now ships
  prebuilt binaries, so the build tree no longer overflows)
- add Linux to the supported platform/toolchain/generator table
- list Google Benchmark under third party usage
- remove the sponsor section and bump the license year to 2026
Introduce Common/Result.h: a Result<T, E> holding either an Ok value or an
Err error, built via the Ok()/Err() helpers (Result<void, E> mirrors Rust's
Result<(), E>). Provides the usual accessors and combinators: Value/Error,
Unwrap/UnwrapErr, Expect/ExpectErr, UnwrapOr/UnwrapOrElse, Map/MapErr,
AndThen/OrElse and ToOptional.

Replace the ad-hoc std::pair<bool, ...> error results that were really
Result-shaped with it, and update all call sites and tests:
- MirrorTool::Parser    -> Result<MetaInfo, std::string>
- MirrorTool::Generator -> Result<void, std::string>
- Core::Cli::Parse      -> Result<void, std::string>
Change FileUtils::ReadTextFile/WriteTextFile/ReadJsonFile/WriteJsonFile to
return Result<..., std::string> so callers can handle IO failures instead of
the functions hard-asserting (or, for ReadJsonFile, silently passing a null
FILE* into rapidjson and crashing). ReadJsonFile now also reports fopen
failures and JSON parse errors as Err.

Update all call sites (Serialization, Render, Core, Runtime, Editor, Sample)
to the new signatures, and cover the error path with new FileTest cases.
@FlyAndNotDown FlyAndNotDown merged commit 3ff5218 into ExplosionEngine:master Jun 20, 2026
3 checks passed
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