Repository navigation
Commit 4ade389
StArray
feat(runtime): introduce metadata provider layer with full type/member collection
Refactor runtime abstraction and harden stub generation:
- Add IRuntimeMetadataProvider abstraction with Mono/Il2Cpp implementations,
isolating all native metadata access behind one interface (collected-type
guarding, field snapshotting at collect time, safe enum-literal reads)
- Fix nested enum emission: enums inside types now generate as real managed
enums with exact member values (boxed-read chain replaces raw data pointer,
which returned wrong values on standalone mono)
- Mark operator/conversion overloads (op_*) as specialname so stubs support
`a + b` / `(int)a` syntax; include return type in operator signature keys
to keep same-name conversion overloads distinct
- Guard mono_thread_current() probe against SEH on non-attached threads
(Unity-embedded mono throws instead of returning NULL)
- Add NativeLibraryResolver: per-assembly DllImport resolver funnel with a
shared ResolveRequested event; redirect Mono P/Invokes through a
MONO_LIBRARY_NAME placeholder resolved at runtime
- RuntimeManager: detect loaded mono runtimes on Windows (monosgen/bdwgc
variants) and auto-configure library redirection; route libdl calls
through Native.DL
- ModLoader: load mod assemblies from bytes so DLLs are not locked on disk
(regenerating UnmanagedTypeAssembly no longer requires a restart)
- TestDxApp: add TestTypes fixture covering readonly/nested enums/interfaces/
operators/delegates for stub-generation validation
- version.json: restructure platforms as an array with per-platform
manager/sha256/entry metadata
- Replace build_release.sh with package_release.sh (zip-only packaging,
Android bundle no longer ships AAR)1 parent 7f84f6a commit 4ade389
24 files changed
Lines changed: 2471 additions & 1815 deletions
File tree
- Scripts
- StArray.ModManager.Android
- StArray.ModManager.TestDxApp
- StArray.ModManager.Windows
- StArray.ModManager
- Il2Cpp
- Mono
- Native
- RuntimeAbstractions
- Runtime
- Metadata
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
This file was deleted.
0 commit comments