diff options
author | Andreia Gaita <shana@spoiledcat.net> | 2024-02-05 20:55:06 +0100 |
---|---|---|
committer | Andreia Gaita <shana@spoiledcat.net> | 2024-02-13 22:48:43 +0100 |
commit | 21e524a798bf3c3728f63657ff2e7a79f6de9ee6 (patch) | |
tree | 5c0cd368101dd87bd1cafc86859a68338e93b0fa /platform/linuxbsd/detect.py | |
parent | 3a8524dd923e9d9a79e4979a47fd427388ea7010 (diff) | |
download | redot-engine-21e524a798bf3c3728f63657ff2e7a79f6de9ee6.tar.gz |
C#: Let platforms signal if they support it or not
Instead of hardcoding platform names that support C#, let platforms
set a flag indicating if they support it. All public platforms
except web already support it, and it's a pain to maintain a patch
for this list just to add additional names of proprietary console
platforms.
This makes adding new platforms or variants or existing platforms
much easier, as the platform can signal what it supports/doesn't
support directly, and we can avoid harcoding platform names.
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r-- | platform/linuxbsd/detect.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index 59cc6e7962..6737c0c4e0 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -65,6 +65,7 @@ def get_doc_path(): def get_flags(): return [ ("arch", detect_arch()), + ("supported", ["mono"]), ] |