2 # SPDX-FileCopyrightText: 2011-2024 Filipe Coelho <falktx@falktx.com>
3 # SPDX-License-Identifier: GPL-2.0-or-later
5 # ----------------------------------------------------------------------------------------------------------------------
6 # Imports (Custom Stuff)
8 from carla_host_control import (
9 ENGINE_PROCESS_MODE_BRIDGE,
13 handleInitialCommandLineArguments,
21 # ----------------------------------------------------------------------------------------------------------------------
24 if __name__ == '__main__':
27 # ------------------------------------------------------------------------------------------------------------------
30 initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None)
33 if arg.startswith("osc."):
39 # ------------------------------------------------------------------------------------------------------------------
42 app = CarlaApplication("Carla2-Control", libPrefix)
44 # ------------------------------------------------------------------------------------------------------------------
45 # Set-up custom signal handling
49 # ------------------------------------------------------------------------------------------------------------------
52 host = initHost(initName, libPrefix, True, False, True, CarlaHostOSC)
53 host.processMode = ENGINE_PROCESS_MODE_BRIDGE
54 host.processModeForced = True
55 loadHostSettings(host)
57 # ------------------------------------------------------------------------------------------------------------------
60 gui = HostWindowOSC(host, oscAddr)
62 # ------------------------------------------------------------------------------------------------------------------
67 # ------------------------------------------------------------------------------------------------------------------