Author Topic: Retrive a game list  (Read 5179 times)

zeroid

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Retrive a game list
« on: May 31, 2015, 02:06:51 AM »
Hi, Is there a way to get a list of games?
perhaps stored it into an array or list like how c# does?


liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 442
    • View Profile
Re: Retrive a game list
« Reply #1 on: May 31, 2015, 12:06:57 PM »
Might need an example of what specifically you want to do with a "list of games". The frontend stores the currently selected list of games on its own. If you want info about any of them, you can use the fe.game_info() function by specifying what info and the game index:

https://github.com/mickelson/attract/blob/v1.5.2/Layouts.md#game_info

fe.list.index is the currently selected game index

zeroid

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: Retrive a game list
« Reply #2 on: June 01, 2015, 03:32:59 AM »
Thank you.

But what I'm looking for is an array that i can access which has a list of game names.

anyway, i've managed to make a small function for that.
Thanks.