Move mod vehicle registration to a decorator.

This cruft doesn't need to be in game.db, it can be kept with the mod
support code.
This commit is contained in:
Dan Albert
2022-02-18 12:40:30 -08:00
parent 4e030c4a3a
commit e3ee988225
14 changed files with 156 additions and 304 deletions

View File

@@ -21,6 +21,7 @@ from game.profiling import logged_duration
from game.server import EventStream, GameContext, Server
from game.settings import Settings
from game.theater.start_generator import GameGenerator, GeneratorSettings, ModSettings
from pydcs_extensions import load_mods
from qt_ui import (
liberation_install,
liberation_theme,
@@ -319,6 +320,8 @@ def main():
if args.warn_missing_weapon_data:
lint_all_weapon_data()
load_mods()
if args.subcommand == "new-game":
with logged_duration("New game creation"):
game = create_game(