-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixes for null parameter * Add test for #22. * Fixed an issue that stopped reading parameters. Fixed an issue that stopped reading parameters when receiving not registered avatar parameters on the avatar config file. Co-authored-by: Marcel Kallen <[email protected]> Co-authored-by: ChanyaKushima <[email protected]>
- Loading branch information
1 parent
4572c2c
commit c533ea6
Showing
5 changed files
with
102 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace BuildSoft.VRChat.Osc.Delegate; | ||
|
||
internal static class EventDelegateExtension | ||
{ | ||
public static void DynamicInvokeAllWithoutException<T>(this T @delegate, params object[] args) where T : System.Delegate | ||
{ | ||
foreach (var item in @delegate.GetInvocationList()) | ||
{ | ||
try | ||
{ | ||
item.DynamicInvoke(args); | ||
} | ||
catch (Exception) | ||
{ | ||
// eat exception | ||
} | ||
} | ||
} | ||
} |