|
19 | 19 | using System; |
20 | 20 | using System.Collections.Generic; |
21 | 21 | using System.IO; |
| 22 | +using System.Runtime.CompilerServices; |
22 | 23 | using System.Threading; |
23 | 24 | using System.Threading.Tasks; |
24 | 25 |
|
@@ -89,6 +90,7 @@ public void Dispose() |
89 | 90 | GC.SuppressFinalize(this); |
90 | 91 | } |
91 | 92 |
|
| 93 | + [MethodImpl(MethodImplOptions.NoOptimization | MethodImplOptions.NoInlining)] |
92 | 94 | public async ValueTask<int> GetInstallationPath(bool isHasOnlyMigrateOption = false) |
93 | 95 | { |
94 | 96 | // Try get existing path |
@@ -191,6 +193,7 @@ public ValueTask<int> StartPackageVerification(List<GameInstallPackage>? gamePac |
191 | 193 | return new ValueTask<int>(1); |
192 | 194 | } |
193 | 195 |
|
| 196 | + [MethodImpl(MethodImplOptions.NoOptimization | MethodImplOptions.NoInlining)] |
194 | 197 | public async Task StartPackageInstallation() |
195 | 198 | { |
196 | 199 | _updateProgressProperty.IsUpdateMode = await GameManager.GetGameState() == GameInstallStateEnum.NeedsUpdate; |
@@ -228,6 +231,7 @@ public async Task StartPackageInstallation() |
228 | 231 | _updateProgressStatusDelegate, |
229 | 232 | _plugin.RegisterCancelToken(Token.Token), |
230 | 233 | out nint asyncStartUpdateResult); |
| 234 | + |
231 | 235 | routineTask = asyncStartUpdateResult.AsTask(); |
232 | 236 | } |
233 | 237 | else |
@@ -368,6 +372,7 @@ public ValueTask<bool> MoveGameLocation() |
368 | 372 | return new ValueTask<bool>(false); |
369 | 373 | } |
370 | 374 |
|
| 375 | + [MethodImpl(MethodImplOptions.NoOptimization | MethodImplOptions.NoInlining)] |
371 | 376 | public async ValueTask<bool> UninstallGame() |
372 | 377 | { |
373 | 378 | if (!ComMarshal<IGameInstaller>.TryCastComObjectAs(_gameInstaller, |
|
0 commit comments