Skip to content

Add IsDesktopPlayer function (#feature-request #quest59) #1346

@KVonGit

Description

@KVonGit
  <function name="IsDesktopPlayer" type="boolean">
    return (StartsWith (GetFileURL (""), "quest"))
  </function>

When using the desktop player, GetFileURL("") will return quest://local/?c= (plus cache buster numbers)

https://textadventures.co.uk/forum/quest/topic/4995/is-there-a-way-for-the-game-to-check-whether-its-being-played-online-or-not#34125

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions