Commit Graph
69 Commits
Author SHA1 Message Date
HetCreep f8ba0a41af Give actionable error when base-libs download fails (#1332)
When the Unity base-libraries download fails (commonly a 404 for a
Unity version not yet hosted on unity.bepinex.dev), the uncaught
HttpRequestException surfaced only as a cryptic "Failed to generate
Il2Cpp interop assemblies" and the game would not launch -- even
though a local fallback (the unity-libs directory) already exists.

Catch the download failure and throw a clear message naming the Unity
version, the URL and the two workarounds: place a matching
base-libraries .zip in the unity-libs directory, or point the
[IL2CPP] UnityBaseLibrariesSource config at a valid URL.

Refs #1295, #1084, #986, #941, #515
2026-06-08 14:36:17 +02:00
tobey 3fab71a191 Improved support for IL2CPP metadata v23-106 (Unity 6+) (#1284)
chore(deps): update Cpp2IL and Il2CppInterop
2026-03-07 14:10:33 +01:00
Arrowmaster c0386134c6 Upgrade Doorstop to version 4.5.0 (#1260) 2026-02-24 17:05:40 +01:00
ManlyMarco dd0655fe9d Cache downloaded base libraries in the unity-libs directory (#1213) 2025-11-16 19:49:19 +01:00
ManlyMarco 88b4838fef Fix assembly preloading overriding preloader patches (#1212) 2025-11-14 12:23:18 +01:00
ManlyMarco af0cba71fb v6 - Bump Il2CppInterop to 1.5.0-ci.620 (#1106) 2025-06-21 02:59:18 +02:00
ManlyMarco 5fef3570f2 Bump Cpp2IL to pre-release.19 (#1103) 2025-05-09 19:09:55 +02:00
Howard Lam 28559fe708 Checks if target Unity binaries archive exists before attempting download in case game's network conenction is blocked (#1024) 2025-01-11 22:51:47 +01:00
itectori 35f6b1b541 include DeobfuscationMap.csv.gz in ComputeHash (#1020) 2024-12-02 19:48:56 +01:00
aldelaro5 544f909a80 Revert "Merge pull request #960 from aldelaro5/metaplugins" (#995)
This reverts commit 2a61b61497, reversing
changes made to 6b38cee127.
2024-09-24 20:25:56 +02:00
aldelaro5andManlyMarco d9b95a0ac7 Add input abstraction layer to support games with the Input class disabled
Originally pull request #444

Co-authored-by: ManlyMarco <39247311+manlymarco@users.noreply.github.com>
2024-09-17 18:50:35 +02:00
aldelaro5andManlyMarco 8597ce7ebf Add TomlTypeConverter for UnityEngine.Rect
Originally pull request #510

Co-authored-by: ManlyMarco <39247311+manlymarco@users.noreply.github.com>
2024-09-17 18:50:35 +02:00
aldelaro5andghorsington 6e846fc70a Preload Harmony and MonoMod
Originally commit a1bb117c86

Co-authored-by: ghorsington <neigh@coder.horse>
2024-09-17 18:50:35 +02:00
aldelaro5andghorsington a5b7dabc1d Add error when using *nix build with Windows executable
Originally commit 8c7dcf265c

Co-authored-by: ghorsington <neigh@coder.horse>
2024-09-17 18:50:35 +02:00
ManlyMarco f800cbcc43 Add GlobalMetadataPath setting (#978) 2024-09-08 16:09:44 +02:00
ManlyMarco cbd70eb2f0 Automatically load all interop assemblies before loading plugins (#777)
Assemblies are often loaded on the il2cpp side but not on the mono side, causing confusion when using reflection.
This will load all interop assemblies right before plugins are loaded, which should mostly avoid these issues at a low time cost of around 40ms.
2024-09-08 15:45:19 +02:00
Bepis 2a61b61497 Merge pull request #960 from aldelaro5/metaplugins
Implement patcher and plugin providers
2024-09-08 23:19:59 +10:00
aldelaro5 be1beb5e13 Address code review round 5 2024-09-03 20:34:17 -04:00
ManlyMarco 6b38cee127 Fix failing to initialize if game's Data folder is just 'Data' (#975)
Any Unity game can have its _Data folder renamed to just Data and continue working just fine.
2024-09-02 13:26:49 +02:00
aldelaro5 d44b93ba93 Use the IL2CPPChainLoader instance for il2cpp to preserve compatibility 2024-09-01 22:56:30 -04:00
aldelaro5 e9337e9982 Revert the removal of the il2cpp chainloader instance 2024-09-01 17:35:53 -04:00
aldelaro5 0a4f1d6d73 Accomodate breaking changes in preparation for api refactors 2024-09-01 17:14:59 -04:00
thegu5 5a324246f1 Bump Cpp2IL (#967)
The currently used version doesn't have support for metadata version 29.2 (Unity 2023.2+) and 31 (2022.3.33+)
2024-09-01 19:09:38 +02:00
aldelaro5 ba3fac94da Upgrade MonoMod to 22.7.31.1 to fix old mono preloader crashes (#973) 2024-08-31 11:07:51 +02:00
aldelaro5 e2396d202b address code review round 3 2024-08-29 12:50:46 -04:00
aldelaro5 b729aee545 Address code review round 3 (first part) 2024-08-28 01:14:00 -04:00
aldelaro5 bfc539bd74 Address code review round 2 2024-08-25 12:03:33 -04:00
aldelaro5 b688bfa978 Add a Source property to PluginInfo
Also abstract an interface among the base plugins classes to make this easier
2024-08-23 23:06:54 -04:00
aldelaro5 952c74f6fe Implement Patcher and plugin providers 2024-08-19 19:57:52 -04:00
aldelaro5 53625800b8 Upgrade Harmonyx, Iced and AssetRipper.Primitives packages (#953)
* Upgrade Harmonyx to 2.10.2

* Upgrade Iced to 1.21.0

* Upgrade AssetRipper.Primitives to 3.1.3
2024-08-12 21:54:02 +02:00
aldelaro5 851521cc12 Upgrade Doorstop to 4.3.0 (#901) 2024-06-11 18:00:31 +02:00
deca 3ba398f269 Upgrade AssetRipper.Primitives to avoid implying Json 8.0.1 (#873) 2024-05-21 15:29:34 +03:00
aldelaro5 36d130f00d Upgrade doorstop to version 4.2.0 (#865) 2024-05-16 22:42:10 +02:00
Kasuromi a23612f4fe Bump Cpp2IL & Il2CppInterop (#869) 2024-05-16 23:29:50 +03:00
Oleg Oshmyan 49015217f3 run_bepinex*.sh: support older Steam and paths that contain spaces 2024-02-09 19:52:51 +01:00
Oleg Oshmyan c82fc4e686 run_bepinex*.sh: use exec when relaunching self 2024-02-09 19:52:51 +01:00
ManlyMarco 910844a982 Fix manager GameObject not having a name (#735) 2023-12-25 00:31:59 +01:00
Kokaiinum f0c0adddff Reimplement UnhollowedAssembliesPath config option as IL2CPPInteropAssembliesPath (#734) 2023-12-23 11:18:55 +01:00
Bepis 5fbdd38405 Address PR issues 2023-11-29 19:29:57 +11:00
Bepis 342068a9c7 Fix shared project whitespace 2023-11-27 23:03:35 +11:00
Bepis 4dccfaa437 Fix netfx & netcore build targets, and add target framework variants 2023-11-27 04:18:48 +11:00
Kasuromi 82077ec7c9 Bump Il2CppInterop & Dobby (#669) 2023-09-06 14:05:06 +03:00
Eric Work 06a7278f80 Fix argument count when launched with Steam on Linux (#563) 2023-08-29 21:58:00 +02:00
Kasuromi 9caf61dca0 Bump Il2CppInterop 2023-07-17 15:14:17 +02:00
js6pak 42a6727370 Bump Il2CppInterop 2023-06-15 21:36:09 +02:00
Kasuromi f611f9a541 Bump Il2CppInterop 2023-03-04 22:27:11 +02:00
Kasuromi de2d03e38d Bump Il2CppInterop 2023-02-25 16:59:03 +02:00
Kasuromi 200dceb06a Bump Cpp2IL 2023-02-24 14:13:21 +02:00
ds5678 6aabdb5ff9 Switch to the development branch of Cpp2IL (#533) 2022-12-30 03:22:34 +02:00
js6pak 0b23557c13 Bump Il2CppInterop 2022-12-11 15:45:50 +01:00