Author Topic: [done] Please make some command line options not depend on SDL  (Read 697 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
While --headless-server-mode works fine without an X display, this doesn't work for most other options currently (r2576):

Code: [Select]
$ DISPLAY=:-1 ./dev_rungame --help
Couldn't initialize SDL: No available video device

Please make at least the most basic options, such as --help and --version, work without SDL. If possible, please also make the --validate-* options work this way.
« Last Edit: 28 September 2011, 12:01:29 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Done in svn rev#2583 (but could not do validation functions as they currently use video settings for loading images and models etc for validation)

- modified the following commands so they don't required SDL video mode:
Code: [Select]
--help
--version
--show-ini-settings