@@ -403,7 +403,7 @@ def main() -> None:
403403 # Path for the main application xml Nvidia GFE uses
404404 nvidia_autodetect_dir = os .path .join (nvidia_base_dir , "journalBS.main.xml" )
405405 # Base folder for the box-art
406- nvidia_images_base_dir = os .path .join (nvidia_base_dir , "StreamingAssetsData " )
406+ nvidia_images_base_dir = os .path .join (nvidia_base_dir , "VisualOPSData " )
407407
408408 count = 0
409409 if os .path .isfile (args .apps ):
@@ -460,9 +460,6 @@ def main() -> None:
460460
461461 # Loop through all applications in the 'Application' parent element
462462 for application in applications_root :
463- # If GFE GS marked an app as not streaming supported we skip it
464- if application .find ("IsStreamingSupported" ).text == "0" :
465- continue
466463
467464 name = application .find ("DisplayName" ).text
468465
@@ -474,14 +471,14 @@ def main() -> None:
474471 if has_app (sunshine_apps = sunshine_apps , name = name ):
475472 continue
476473
477- # Increase count here to exclude some stuff
478- count += 1
479-
480474 cmd = application .find ("StreamingCommandLine" ).text
481475 working_dir = application .find ("InstallDirectory" ).text
482476 # Nvidia's short_name is a pre-shortened and filesystem safe name for the game
483477 short_name = application .find ("ShortName" ).text
484478
479+ if not cmd or short_name not in gfe_apps ["metadata" ]:
480+ continue
481+
485482 print (f'Found GameStream app: { name } ' )
486483 print (f'working-dir: { working_dir } ' )
487484 print (f'path: { cmd } ' )
@@ -506,6 +503,8 @@ def main() -> None:
506503 image_path = dst_image
507504 )
508505
506+ count += 1
507+
509508 if not args .dry_run :
510509 with open (file = args .apps , mode = "w" ) as f :
511510 json .dump (obj = sunshine_apps , indent = 4 , fp = f )
0 commit comments