Commit Graph

2983 Commits

Author SHA1 Message Date
Jesse Plamondon-Willard c41b92f721
improve new event code
This commit...
* debounces the has-custom-priorities check;
* fixes collection-modified-during-enumeration errors if an event handler is added or removed while the event is being raised;
* fixes Remove(handler) removing all instances of the handler instead of the last one.
2020-06-16 20:14:27 -04:00
Jesse Plamondon-Willard f63f14c703
fix typo 2020-06-16 18:53:29 -04:00
Jesse Plamondon-Willard dcd2c647a2
temporarily restore Harmony 1.x support with compile flag (#711) 2020-06-15 22:17:32 -04:00
Jesse Plamondon-Willard 6d1cd7d9b8
fix merge, update release notes 2020-06-15 22:14:17 -04:00
Jesse Plamondon-Willard e759332135
Merge pull request #723 from spacechase0/event-priority
Implement event priority attribute
2020-06-15 21:34:46 -04:00
Jesse Plamondon-Willard 02e7318d2b
merge inconsistent event raise methods 2020-06-15 19:08:02 -04:00
Jesse Plamondon-Willard da95a906bf
increase event priority range
This can be used in cases where more granular priority is needed.
2020-06-15 18:59:05 -04:00
Jesse Plamondon-Willard fc29fe918a
refactor & optimize event code a bit, drop old support for unknown event handlers 2020-06-15 18:58:05 -04:00
Chase W b395e92faa Implemented event priority attribute 2020-06-15 15:33:28 -04:00
Jesse Plamondon-Willard ff7b9a0251
update TMXTile 2020-06-14 23:30:35 -04:00
Jesse Plamondon-Willard 2d19095169
add support for using a custom Harmony build (#711) 2020-06-14 11:29:07 -04:00
Jesse Plamondon-Willard 79181012ee
tweak build files 2020-06-14 10:55:52 -04:00
Jesse Plamondon-Willard 8036bcdf00
improve premultiplication performance 2020-06-07 12:33:48 -04:00
Jesse Plamondon-Willard 868eefb9a7
fix thread safety issue in new parallel rewriting 2020-06-04 21:08:12 -04:00
Jesse Plamondon-Willard 92aaf3fb8a
simplify parallel rewriting logic 2020-06-04 19:00:48 -04:00
Jesse Plamondon-Willard 74a8399b9c
Merge pull request #719 from ZaneYork/develop
Bug fix: Provide seed to Aggregate op
2020-06-04 18:56:27 -04:00
ZaneYork 2c9c4fbc65 Bug fix: Provide seed to Aggregate op(for Sequence contains no elements exception, all type was filtered by Where(type => type.BaseType != null) op) 2020-06-04 18:29:27 +08:00
Jesse Plamondon-Willard 43a9ee42aa
don't prevent mods from accessing game methods/properties extended by SMAPI 2020-06-03 19:02:24 -04:00
Jesse Plamondon-Willard 80f882baf3
stop rewriting module at first error 2020-06-03 18:58:04 -04:00
Jesse Plamondon-Willard 8c4edc2765
tweak new code, add release note (#718) 2020-06-03 18:52:16 -04:00
Jesse Plamondon-Willard cfc7233a06
Merge pull request #718 from ZaneYork/develop
Parallel exception aggregate fix
2020-06-03 18:48:32 -04:00
ZaneYork 9b41397a01 Remove take while op(does not return first none matched item) 2020-06-03 11:43:13 +08:00
ZaneYork 6b4e52febb Parallel exception aggregate fix 2020-06-03 10:56:31 +08:00
Jesse Plamondon-Willard 73e3735dcd
undo parallel loop (#716)
This caused errors during rewriting to be obfuscated with null reference exceptions.
2020-06-02 22:05:00 -04:00
Jesse Plamondon-Willard 6f4063cd86
add release note (#716) 2020-06-02 17:52:54 -04:00
Jesse Plamondon-Willard 23c6ef01c1
Merge pull request #716 from ZaneYork/develop
Rewrite code with multithreading support
2020-06-02 17:49:00 -04:00
ZaneYork 4fad1f8c0c 1.Multithread rewrite 2020-06-02 18:53:09 +08:00
Jesse Plamondon-Willard 10367a3eae
update TMXTile to fix void map issue on Android 2020-05-31 17:41:17 -04:00
Jesse Plamondon-Willard 7bbbef7687
simplify harmony_search output, tweak SMAPI's Harmony ID 2020-05-30 22:45:43 -04:00
Jesse Plamondon-Willard 5be3f14bf1
Merge pull request #715 from ZaneYork/develop
Bug fix: make it possible for multi patch
2020-05-29 21:27:00 -04:00
ZaneYork f817039a3a Bug fix: make it possible for multi patch(When one patch replace an instruction, another patch didn't aware it due to the variable capture) 2020-05-29 14:25:01 +08:00
Jesse Plamondon-Willard 01b6e4ac32
fix BadImageFormatException error handling
Thanks to mouse for pointing it out!
2020-05-27 00:44:26 -04:00
Jesse Plamondon-Willard d9c2d242b9
add update key overrides 2020-05-24 16:39:56 -04:00
Jesse Plamondon-Willard ea96fdf541
update ModDrop URLs 2020-05-24 14:35:16 -04:00
Jesse Plamondon-Willard bb9cde8f2e
ignore MacOS files starting with ._ 2020-05-24 00:31:15 -04:00
Jesse Plamondon-Willard d97b11060c
add update subkeys 2020-05-24 00:21:51 -04:00
Jesse Plamondon-Willard 786077340f
refactor update check API
This simplifies the logic for individual clients, centralises common logic, and prepares for upcoming features.
2020-05-23 21:55:11 -04:00
Jesse Plamondon-Willard d7add89441
drop MongoDB code
MongoDB support unnecessarily complicated the code and there's no need to run distributed servers in the foreseeable future. This keeps the abstract storage interface so we can wrap a distributed cache in the future.
2020-05-23 19:25:34 -04:00
Jesse Plamondon-Willard 9aba50451b
keep verb when redirecting api.smapi.io 2020-05-22 23:40:22 -04:00
Jesse Plamondon-Willard b074eb279a
add harmony_summary command 2020-05-22 20:00:33 -04:00
Jesse Plamondon-Willard 163eebd92e
move internal commands out of SCore 2020-05-22 19:57:22 -04:00
Jesse Plamondon-Willard 33da29b3e5
rewrite Harmony.Patch method to allow non-implemented virtual methods (#711) 2020-05-21 23:50:34 -04:00
Jesse Plamondon-Willard db0a46cb68
rewrite HarmonyMethod to allow null (#711) 2020-05-21 23:29:23 -04:00
Jesse Plamondon-Willard f52370f6fa
rename facade classes 2020-05-21 22:29:42 -04:00
Jesse Plamondon-Willard 4468f39098
improve facade annotations 2020-05-21 22:25:09 -04:00
Jesse Plamondon-Willard 7fdc3a2ab2
fix AccessTools facade constructor logic (#711) 2020-05-21 22:21:24 -04:00
Jesse Plamondon-Willard f8e0600672
load .pdb file when mod is loaded from bytes (#711) 2020-05-21 21:59:45 -04:00
Jesse Plamondon-Willard 1beee07a35
rewrite method overrides (#711) 2020-05-21 20:32:02 -04:00
Jesse Plamondon-Willard 310eb1fe9a
Merge branch 'mod/harmony-2.0' into develop
# Conflicts:
#	docs/release-notes.md
#	src/SMAPI/Framework/ModLoading/AssemblyLoader.cs
2020-05-20 19:38:08 -04:00
Jesse Plamondon-Willard c5c30189e4
fix error-handling when patch is called with a null target method (#711) 2020-05-20 02:14:30 -04:00