Commit Graph

1746 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] a298a1183e Consolidate LoadField/StoreField to follow DRY principles by adding FieldInfo-based overloads
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
2026-01-27 07:19:16 +00:00
copilot-swe-agent[bot] 6349f08efc Add expression-based LoadField/StoreField support for CodeMatch, CodeInstruction, and SymbolExtensions (issue #756)
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
2026-01-27 07:06:17 +00:00
copilot-swe-agent[bot] 59c0480943 Initial plan 2026-01-27 06:55:56 +00:00
Copilot d0ebd095bd Document FileLog env variables
* Initial plan

* Document HARMONY_NO_LOG and HARMONY_LOG_FILE environment variables for FileLog

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
2025-12-10 08:33:48 +01:00
Ddggdd135 00602ef1ef Add "Genshin Impact Miliastra Wonderland" to README.md (#747)
* Add "Genshin Impact Miliastra Wonderland" to README.md

* Put **Genshin Impact Miliastra Wonderland** to the lastest
2025-11-19 02:22:08 +01:00
Andreas Pardeike a264a1bf1c v2.4.2 release v2.4.2.0 2025-11-13 01:22:27 +01:00
Andreas Pardeike 7aa904f8cc Harmony 2.4.2 uses MonoMod.Core 1.3.3 and support NET 10 2025-11-12 22:11:59 +01:00
Andreas Pardeike 75e97fdee8 Fixes NET 10 tests and other quirks
* Install .NET 10 SDK in Windows setup action
* Ensure dotnet 10 installs match job architecture
* Force Mono symlinks on macOS CI
* Fix macOS dotnet resolution and clean setup
* Set DOTNET_ROOT for x86 Windows runs
2025-11-12 22:07:57 +01:00
Copilot 01258366a5 Partially add .NET 10 support (#744)
* Initial plan

* Add .NET 10 support to Harmony

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Update additional workflow files for .NET 10 SDK

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Fix CI by installing .NET 10 SDK in workflows

Updated workflows to install both 9.0.x and 10.0.x SDKs using wildcard versions.
This ensures .NET 10 SDK is installed when available in GitHub Actions runners.
Changed global.json to require SDK 10.0.100 with latestPatch rollForward for forward compatibility.

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Revert global.json to SDK 9.0.100 for CI compatibility

Changed global.json back to require SDK 9.0.100 with latestFeature rollForward.
Note: net10.0 targets will fail to build until .NET 10 SDK is available in GitHub Actions.
This is expected since .NET SDK was just released today.

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Set global.json to require .NET 10 SDK with latestPatch rollForward

Updated global.json to explicitly require SDK 10.0.100 with latestPatch rollForward.
This works because actions/setup-dotnet downloads and installs the SDK regardless of what's preinstalled on the runner.
Confirmed .NET 10.0.100 SDK is available and builds net10.0 targets successfully.

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Simplify workflow SDK installation to only use .NET 10

Removed dual 9.0.x/10.0.x SDK installation in favor of only installing 10.0.x.
The .NET 10 SDK can build all target frameworks including net9.0 and older using targeting packs.
This follows the minimal change approach requested.

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
2025-11-12 20:30:22 +01:00
Andreas Pardeike f62692b4c8 Update MonoModCoreVersion to 1.3.3 2025-11-12 10:44:55 +01:00
Copilot 29c8fd8ee7 Add public API for MonoMod switches configuration (#740)
* Initial plan

* Add public API for MonoMod switches with tests

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Use MonoMod.Switches API directly instead of reflection

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
2025-10-14 00:50:13 +02:00
Copilot b00177fee8 Migrate from deprecated macOS 13 to newer macOS runners (#738)
Use macos-14-large for x64 and macos-14 for ARM64
2025-10-03 08:39:41 +02:00
Copilot c56abb4d21 Fix Ubuntu 24.04 compatibility issues in test workflows (#736)
* Initial plan

* Update Ubuntu version and simplify Mono installation for better Ubuntu 24.04 compatibility

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
2025-09-29 15:14:00 +02:00
Copilot 60f97080c4 [WIP] Git submodule URL protocol specification causes issues when forking repository (#734)
* Initial plan

* Fix submodule URL to use HTTPS instead of SSH for better fork compatibility

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
2025-09-29 07:07:11 +02:00
Andreas Pardeike 0bc869d3ba adds infix architecture notes in docs/infix 2025-09-20 14:44:30 +02:00
ADDB 6dcbb7ecbd Improve PatchCategory/UnpatchCategory (#704)
* Add more tests for Patch/UnpatchCategory

* Implement Cached Patch/Unpatch Category

* Remove nullable annotation to prevent warning
2025-09-05 19:29:04 +02:00
Andreas Pardeike 3c753b95de uses peaceiris/actions-gh-pages@v4 2025-09-05 17:17:26 +02:00
Andreas Pardeike 69fd3f9451 fixes dup lines 2025-09-05 16:45:03 +02:00
Andreas Pardeike 43787f6e4c formats docs.yml correctly; adds scripts to solution 2025-09-05 16:22:29 +02:00
Andreas Pardeike b40c871411 Generate RAG index for HarmonyBot (#727)
* refactor llm pack generator

* normalize docs workflow

* Use DocFX href for API URLs
2025-09-05 16:11:36 +02:00
Andreas Pardeike a7a44be2db Exclude dynamic methods from native methoc check, update AGENTS file 2025-09-05 16:06:40 +02:00
Andreas Pardeike 363190c075 replaces file link 2025-08-23 00:38:08 +02:00
Andreas Pardeike 0072943ba5 draft for docs 2025-08-23 00:31:53 +02:00
Andreas Pardeike dff846bcdd updates docfx.json to new layout 2025-08-22 18:46:57 +02:00
pardeike-bot d187e2009e Update documentation [skip ci] 2025-08-22 16:27:15 +00:00
Andreas Pardeike 007ee8e78c v2.4.1 release v2.4.1.0 2025-08-22 17:48:59 +02:00
Copilot 789df191bb Remove redundant Harmony zip artifacts from Platform Tests workflow (#711)
* Initial plan

* Initial plan: Analyze duplicate artifact creation in Platform Tests workflow

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Fix duplicate artifact creation in Platform Tests by preventing Harmony artifacts during PRs

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Remove redundant Harmony zip artifact upload from workflow

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Remove accidentally added dotnet-install.sh script that was not part of original repository

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
2025-08-22 00:16:05 +02:00
Copilot a450fac09d Fix TRX file XML parsing errors in Platform Tests by sanitizing test output (#710)
* Initial plan

* Initial analysis: Identified TRX file corruption issue causing XML parsing errors

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Add TRX file cleanup script to fix XML parsing errors

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Add documentation for TRX cleanup script and finalize solution

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Restructure scripts documentation to cover all scripts properly

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
2025-08-21 23:47:50 +02:00
Copilot 9931d9c0e0 Fix Process resource leak, CI warnings, and improve .NET version consistency (#709)
* Initial plan

* Initial investigation and planning

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Fix Process resource leak in test infrastructure

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Fix CI workflow zip file warnings - update build paths

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Fix .NET version consistency and migrate to Windows Server 2025

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

* Fix CI workflow to only upload zip artifacts for Release builds

Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
2025-08-21 23:14:25 +02:00
Andreas Pardeike 3b7921b7a5 undid commit a4c85346 and fixes warnings 2025-08-21 21:44:23 +02:00
Arne Kiesewetter 0c42ebb3be Fix a bunch of Mono.Cecil's API being public in the merged version (#708) 2025-08-21 21:25:49 +02:00
Andreas Pardeike a4c85346f2 Internalize dependencies in merged packages (#706)
* Remove forwarded dependency types from merged assembly
* Limit type forwarders to thin builds
2025-08-21 16:12:22 +02:00
Andreas Pardeike d222323ad7 forgot to check this in before doing the release, binaries are still ok 2025-08-17 23:23:27 +02:00
Andreas Pardeike a945fb25f0 v2.4.0 release
* adds local monomod, uses HarmonyPrerelease flag to use it

* switch submodule monomod to branch 'merge-reorganize-arm64'

* wip

* updates to fixes in monomod prerelease

* 2.3.7-prerelease

* adds recursive checkout to github platform tests

* fix indention of previous commit

* adds arm64 test

* debug special case failure

* handle try/fault with try/catch/finally logic

* remove debugging

* uses local monomod

* bump version

* increase timeout for MacOS-arm64 .NET/Mono

* more timeout bumping

* 45min max timeout should be enough

* ci test changes

* switch back to recursive submodule checkout

* don't run twice on PRs

* test: submodule MonoMod -> upstream reorganize 23e6a19f

* Restore IL offset logging

* fixes harmony logging il offsets and adds tests for it
v2.4.0.0
2025-08-17 22:05:03 +02:00
Andreas Pardeike 87cdb61321 allow [HarmonyPatch] on structs 2025-08-01 13:48:17 +02:00
Andreas Pardeike 43b2c3ae2d removes old wording 2025-08-01 13:36:14 +02:00
Andreas Pardeike bffa726f1a Merge pull request #693 from pardeike/codex/enable-deserialization-for-harmonyexception
Remove HarmonyException serialization
2025-08-01 11:35:39 +02:00
Andreas Pardeike ac28cab424 Remove HarmonyException serialization 2025-08-01 11:32:48 +02:00
Andreas Pardeike 66768ac8b2 Merge pull request #692 from pardeike/codex/fix-spelling-mistakes-and-documentation-style
Fix docs typos and unify summary style
2025-08-01 11:30:58 +02:00
Andreas Pardeike a5f520f918 Revert docfx.js edits 2025-08-01 11:28:58 +02:00
Andreas Pardeike 68f36ae8aa Merge pull request #691 from pardeike/codex/fix-platform-tests-for-windows-server-2019
Fix Windows tests
2025-08-01 10:46:02 +02:00
Andreas Pardeike 886a326da6 Update Windows CI image 2025-08-01 10:45:34 +02:00
Andreas Pardeike 73f139ea72 removes harmony attribute requirement for manual use of PatchClassProcessor 2025-08-01 10:23:30 +02:00
Andreas Pardeike 8c0fc1d190 fixes bug in using streamMemory content 2025-08-01 10:23:01 +02:00
Andreas Pardeike 04e6cb326b Merge pull request #690 from pardeike/codex/replace-getbuffer-with-toarray
Use ToArray for patch serialization
2025-08-01 10:08:53 +02:00
Andreas Pardeike 98586fb27d Use ToArray for patch serialization 2025-08-01 10:02:00 +02:00
Andreas Pardeike 16640749a6 possible fix for bad test logic 2025-08-01 01:17:12 +02:00
Andreas Pardeike be2783e6eb small refactoring 2025-07-31 19:58:32 +02:00
Andreas Pardeike 7b4d2055fc adds configurable error handler 2025-07-31 19:23:34 +02:00
Andreas Pardeike 6c6632049f adds RemoveSearchForward, RemoveSearchBackward, RemoveUntilForward, RemoveUntilBackward and Do to CodeMatcher + tests 2025-07-31 17:52:12 +02:00