Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.cpp 468B

123456789101112131415161718192021222324252627282930
  1. /*!
  2. * \file src/main.cpp
  3. * \brief Where main() is
  4. *
  5. * \author xythobuz
  6. */
  7. #include <stdlib.h>
  8. #include <stdio.h>
  9. #include "config.h"
  10. void cleanupHandler() {
  11. }
  12. int main(int argc, char *argv[]) {
  13. if (argc == 1) {
  14. // Use default rc file path
  15. } else if (argc == 2) {
  16. // Use provided rc file
  17. } else {
  18. printf("Usage:\n%s [/path/to/config.file]\n", argv[0]);
  19. return 1;
  20. }
  21. atexit(cleanupHandler);
  22. return 0;
  23. }