Jump to content

ChemBoy1

Premium Member
  • Posts

    10
  • Joined

  • Last visited

Community Answers

  1. ChemBoy1's post in Getting the Javascript extension to launch through the game store was marked as the answer   
    So the thing you need is the function call to the "RequiresLauncher" function in the registerGame function:
    requiresLauncher: makeRequiresLauncher(context.api, gameSpec),  
    If you are not using the "Add Game Wizard" structure, you can literally just skip the function call and write this: 
    requiresLauncher: () => { launcher: 'steam' }, This should work in this case since steam launcher requires no additional parameters to function. If it were Epic or Xbox app, you would need to have additional parameters there.
     
    You also need to have the "findGame" function return an arrow function to the value, like below. Notice the arrow function after "return".
    function makeFindGame(api, gameSpec) {     return () => util.GameStoreHelper.findByAppId(gameSpec.discovery.ids)         //.catch(() => util.GameStoreHelper.findByName(gameSpec.discovery.names))         .then((game) => game.gamePath); }
×
×
  • Create New...