Repository navigation
Add support for detecting Unity CoreCLR and IL2CPP on .NET - #948
jeanclaudegrenier wants to merge 2 commits into
Conversation
SDK.UnityCoreCLR matches Unity.Private.Scripting.dll in the player's <Game>_Data/Managed (or macOS Contents/Resources/Data/Managed) folder, which only ships with the CoreCLR scripting backend. SDK.UnityIL2CPPNet matches il2cpp_data/Resources/ System.Private.CoreLib.dll-resources.dat, which only ships with IL2CPP builds made against the .NET class libraries.
| trueSKY = (?:^|/)TrueSky(?:PluginRender_MT|PluginRender_MD|UI_MD)\.dll$ | ||
| Ultraleap = (?:^|/)LeapC?\.dll$ | ||
| UnityBurst = (?:^|/)lib_burst_generated\.(?:dll|so|bundle)$ | ||
| UnityCoreCLR = (?:^|/)(?:[^/]+_Data|Contents/(?:Resources/)?Data)/Managed/Unity\.Private\.Scripting\.dll$ |
There was a problem hiding this comment.
looking at the generated test strings, this regex isn't great
just looking for Managed/Unity.Private.Scripting.dll isn't enough?
There was a problem hiding this comment.
The intent was to be as specific as possible to avoid false positives, but yes, your version would work.
Would you like me to make that change?
There was a problem hiding this comment.
if you don't consider this app as a false positive https://steamdb.info/depot/3157091/ then yeah you switch to the smaller version
(this isn't the only app that has it "directly" in their depot's root, out of 21 apps currently detected 8 have it)
There was a problem hiding this comment.
We discussed it internally, I believe you are right, Managed/Unity.Private.Scripting.dll should be sufficient. I went ahead and made the change and updated the tests.
|
After running changed rules in this pull request (this bot only tests rules.ini changes): Changed technologies: SDK.UnityCoreCLR, SDK.UnityIL2CPPNet These apps now match: (13) 1149050 2331730 4127690 4231410 4502310 4601030 4800690 4831540 4940540 5206180 5269730 5476390 5520370 Please confirm that all these changed apps are correct. |
…and updated tests accordingly
SteamDB app page links to a few games using this
Unity just released an alpha for Unity 7 using CoreCLR, to our knowledge no games have been published with CoreCLR/il2cpp on .net bcl yet. We wanted to land this change as early as possible so we can tell when such games do start landing.
Brief explanation of the change
Adds two SDK detections for Unity's .NET (CoreCLR) runtime: