FG Spreadshirt Swag
  1. #1

    OS type API call?

    Is there an API call to get the OS type in FGU since it can run on Windows/Mac and Linux?

    Since there are different methods of handling features such as sound we need to be able to know what OS we're under.

    I tried just using os.getenv() but ... looks like we can't use that in FGC/U.
    Last edited by celestian; February 19th, 2020 at 06:11.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  2. #2
    I think that the "os" library is specifically disabled for security sandboxing. I'll have to investigate, but this is probably something that will have to be looked at after first release.

    Regards,
    JPG

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in