8 Commits

Author SHA1 Message Date
baldurk b38cbc1b0c Add explicit functions to initialise and shutdown replay. Closes #1685
* It's required for replay applications to call InitialiseReplay() before doing
  any work, and to call ShutdownReplay() once they're finished.
* This lets us do more heavyweight shutdown work before global destructors are
  being invoked and the RenderDoc instance is being destroyed.
* Anything that needs to be shut down during capture still has to happen in
  RenderDoc::~RenderDoc since we obviously can't get the application to call a
  shutdown function in that situation.
2020-01-30 13:39:15 +00:00
baldurk 6b571e9a06 Don't return from parse() if argc is 0, need to check required arguments 2019-02-14 13:09:43 +00:00
baldurk 2994f2f037 Fix incorrect change returning false unconditionally for argc==0 2018-11-16 14:06:44 +00:00
Nicholas Miell 6e3eef5fca Fix some std::vector assertion failures
gcc's debug std::vector will assert if you use vector[0] when
vector.size() == 0.
2018-11-12 19:26:21 +00:00
baldurk af9b74ff48 cmdline.h: don't complain about unrecognised short options in the 'rest' 2017-08-28 18:50:20 +01:00
baldurk 06e4263bad Minor tweaks to cmdline.h to better suit my usage
* Descriptions for readers, for better error reporting and usage help.
  This also allows these descriptions to be multiline, and they're
  indented correctly.
* A bit better formatting of options and defaults.
* Print full list of errors when there are more than one.
* #undef max
* Header as well as footer on single-line command help.
* Remove parse and parse_check variants I don't use.
* Allow processing without looking at argv[0].
* Optionally stop the processing at the first non-command, so that
  you can have a program and its arguments without trying to parse
  the arguments themselves.
2016-07-12 17:10:42 +02:00
baldurk cfe0e0e78f Modify cmdline.h to compile without warnings, don't use RTTI 2016-07-12 17:10:41 +02:00
baldurk f24e3b20d9 Add cmdline.h from https://github.com/tanakh/cmdline
* BSD licensed - Copyright (c) 2009, Hideyuki Tanaka
2016-07-12 11:47:53 +02:00