mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-18 09:56:50 +01:00
32 lines
595 B
Python
32 lines
595 B
Python
# detect.py
|
|
#
|
|
# FRT - A Godot platform targeting single board computers
|
|
# Copyright (c) 2017-2022 Emanuele Fornara
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
import version
|
|
if version.major == 2:
|
|
from detect_godot2 import *
|
|
version_handled = True
|
|
elif version.major == 3:
|
|
from detect_godot3 import *
|
|
version_handled = True
|
|
else:
|
|
version_handled = False
|
|
|
|
def get_name():
|
|
return "FRT"
|
|
|
|
def is_active():
|
|
return True
|
|
|
|
def can_build():
|
|
import os
|
|
if os.name != "posix":
|
|
return False
|
|
if not version_handled:
|
|
print("Error: Godot version not handled by FRT. Aborting.")
|
|
return False
|
|
return True
|