Use the following code to obtain UWP program information (replace App Package Name with the package name, such as Microsoft.MinecraftUWP)
var result = ProjBobcat.Platforms.Windows.SystemInfoHelper.GetAppxPackage("App Package Name");
This will return a AppxPackageInfo, use the following code to view the corresponding value
result.Name // The name of the application, for example: Microsoft Minecraft UWP
result.Architecture // The architecture of the application, for example: X64
result.Version // The version number of the application, for example: 1.19.8301.0
...
Detailed information can be viewed in the `Class/Model/AppxPackageInfo.cs` source file
Main modifications:
Optimize UWPMinecraft startup
andAdd GetAppxPackage and some auxiliary methods
Only Available On Windows
.Detect Games Installed
Use the following code to check if UWPMinecraft is installed
Start Game
Event binding
Use the following code to detect game exit
Use the following code to detect game startup
Other
Use the following code to obtain UWP program information (replace
App Package Name
with the package name, such asMicrosoft.MinecraftUWP
)This will return a
AppxPackageInfo
, use the following code to view the corresponding value