Repository navigation
Hematite 2026.12.2 brings Windows exception handling, the first real
homebrew target (RetroArch's UWP build, now past startup), WinRT basics and a
new look.
Still pre-alpha: no graphics, audio or controller support yet, so games
and real homebrew don't run. See the
roadmap.
Highlights
Exception handling
- Windows x64 structured exception handling (SEH):
- unwind tables,
RtlVirtualUnwind,RaiseExceptionwith the search and
unwind phases,RtlUnwindEx,RtlCaptureContext/RtlRestoreContext; - unhandled-exception and vectored handlers,
__C_specific_handler
(__try/__except/__finally).
- unwind tables,
- C++ exceptions built with GCC work: throwing across frames, destructors
during unwinding, rethrow,catch (...)and exceptions on other threads. - C++ exceptions with the Microsoft ABI work (
_CxxThrowException,
__CxxFrameHandler3): matching base classes, catching by value, reference
or pointer, rethrow, throwing from inside catch blocks, and correct
lifetimes for the thrown object. They're tested with programs built by
Clang for the MSVC target, without any Microsoft SDK. - Unhandled exceptions reach the title's filter, then end the process
with the exception code, as on Windows. - Debugging: a guest
abort()prints a backtrace, and
HEMATITE_TRACE_SEH=1traces dispatch frame by frame.
First real homebrew: RetroArch UWP
RetroArch's Xbox/UWP package is the first real target. Its imports went from
149 to 318 of 463 linked (235 implemented by Hematite, 83 by its bundled
ANGLE DLLs), and it now gets through C runtime and C++/CX startup.
Details:
docs/compatibility/retroarch-uwp.md.
Getting there added:
- Synchronization: condition variables,
InitOnceBeginInitialize/
Complete, interlocked lists, and thestd::mutex/std::condition_variable
runtime (_Mtx_*,_Cnd_*). - Files:
FindFirstFile/FindNextFilewith Windows wildcards, the UWP
*FromAppfile functions, directories, copy and move, and memory-mapped
files (file-backed and shared). - System: time conversion, version, power and memory status.
- C runtime: a Microsoft-compatible
sscanffamily,strtok, the*_s
string functions,strftime/mktime/localtime,rand(the same
sequence as Windows), and file-descriptor functions. - WinRT:
HSTRINGstrings,RoInitialize, error reporting and the first
C++/CX runtime entry points. - Threads:
ExitThread/_endthreadexfrom any depth,_beginthreadex
andsetjmp/longjmp.
DLLs shipped with titles
Libraries a title ships next to its executable now load, as on Windows:
- at start-up for the title's imports, or later through
LoadLibrary; - exports by name or ordinal, forwarders,
DllMain, per-DLL thread-local
storage and thread notifications; GetModuleHandle,GetProcAddressandGetModuleFileNameon them.
System and Microsoft runtime DLLs are never loaded from a package; Hematite's
own implementations answer for them. RetroArch's bundled ANGLE (libEGL,
libGLESv2) now loads, which, with the C++ exception work, brings it to 318 of 463 imports linked.
App and project
- New logo: a circle split by a symmetric "H". It's used in the app (tinted
to the accent color) and as the window icon. - Library:
- each package's own tile artwork;
- play history (last played, play time, last result and missing functions);
- grid or list view, and sorting by name, recent or compatibility.
- Controls: right-click menus, keyboard shortcuts, drag-and-drop, toasts
that fade out, a remembered window size, and saving the console to a file. - Docs:
- a project-style README;
- a developer guide (DEVELOPER.md);
- architecture notes for exceptions, and a compatibility section.
- License: the license file is now the verbatim GPL-3.0 text, so GitHub
detects it.
Verified with
27 automated tests run in CI on every push:
- unit tests for the printf and scanf engines,
HSTRING, wildcards and
calendar math; - end-to-end test programs covering the loader, the C runtime, startup-time
system functions (21 checks), C++ exceptions (also at a relocated address),
Microsoft-ABI C++ exceptions, unhandled exceptions, DLLs shipped with a title (also relocated), and
running from an.appxpackage.
Known limitations
- No graphics, audio, input or UWP app model yet.
- MSVC 2019's compressed exception tables (
__CxxFrameHandler4) aren't
supported yet, and neither are hardware exceptions such as access
violations. - Guest paths map straight onto host paths, and DLLs are never unloaded.
- Hematite is not a sandbox: titles run as native code with your
permissions.
Install
Requires x86-64 Linux with glibc 2.39 or newer and a Wayland or X11 desktop.
tar xf hematite-2026.12.2-linux-x86_64.tar.gz
cd hematite-2026.12.2-linux-x86_64
./hematite-guiBuild
| Commit | d5f5d33 |
| Built | 2026-12-02 on ubuntu-24.04 (glibc 2.39) |
| Toolchain | rustc 1.100.1 (20ddd0171 2026-11-25) |
hematite-2026.12.2-linux-x86_64.tar.gz SHA-256 |
9dc4e3400ca2f62ddb73ad27ed3de29ca84eb57920d45e6ae3d69ce163c47789 |