Lacro59 / playnite-systemchecker-plugin

This plugin checks if you have the minimum and required configuration in Playnite.
https://playnite.link
MIT License
23 stars 2 forks source link

[BUG] Opengl es 2.0 hardware driver support required for webgl acceleration. (amd catalyst 10.9" - Not enough ) #43

Open sunsetHue opened 1 month ago

sunsetHue commented 1 month ago

Bug Description

Refreshing data for games that have recommended or minimum requirements of "OpenGL ES 2.0 hardware driver support required for WebGL acceleration. (AMD Catalyst 10.9, nVidia 358.50)" throws an error notification and are marked unfulfilled.

SystemChecker seems to be struggling to parse this as it correctly identifies games that have this requirement in the same words on Steam but fails to for PCGamingWiki.

To Reproduce

  1. Add "Pax Romana: Romulus"
  2. Refresh data with SystemChecker
  3. Data fetched with errors

Extensions log

31-05 00:03:41.236|INFO |SystemChecker#PluginDatabaseObject`4:RefreshNoLoader(Pax Romana: Romulus - 8b6679d1-7d03-487d-bd0c-e917233fecb1)
31-05 00:03:41.236|INFO |SystemChecker#PluginDatabaseObject`4:Try find with PCGamingWikiRequierements for Pax Romana: Romulus
31-05 00:03:46.703|ERROR|SystemChecker#Common:Error on CheckGpu()|G:\GitHub\Lacro59\playnite-systemchecker-plugin\source\Services\SystemApi.cs|149
System.ArgumentException: parsing "opengl es 2.0 hardware driver support required for webgl acceleration. (amd catalyst 10.9" - Not enough )'s.
   at System.Text.RegularExpressions.RegexParser.ScanRegex()
   at System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op)
   at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, TimeSpan matchTimeout, Boolean useCache)
   at System.Text.RegularExpressions.Regex.IsMatch(String input, String pattern, RegexOptions options)
   at SystemChecker.Services.Gpu.SetCard(String GpuName) in G:\GitHub\Lacro59\playnite-systemchecker-plugin\source\Services\Gpu.cs:line 291
   at SystemChecker.Services.Gpu..ctor(SystemConfiguration systemConfiguration, String GpuRequierement) in G:\GitHub\Lacro59\playnite-systemchecker-plugin\source\Services\Gpu.cs:line 80
   at SystemChecker.Services.SystemApi.CheckGpu(SystemConfiguration systemConfiguration, List`1 requierementGpu) in G:\GitHub\Lacro59\playnite-systemchecker-plugin\source\Services\SystemApi.cs:line 149

Screenshots

Pax Romana: Romulus image

Arkhe image