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.

OpenRaider.cpp 655B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*!
  2. * \file src/OpenRaider.cpp
  3. * \brief Main Game Object
  4. *
  5. * \author xythobuz
  6. */
  7. #include <cstdio>
  8. #include <assert.h>
  9. #include "WindowSDL.h"
  10. #include "utils/strings.h"
  11. #include "OpenRaider.h"
  12. OpenRaider::OpenRaider() {
  13. mWindow = NULL;
  14. }
  15. OpenRaider::~OpenRaider() {
  16. if (mWindow)
  17. delete mWindow;
  18. }
  19. int OpenRaider::loadConfig(const char *config) {
  20. assert(config != NULL);
  21. char *configFile = fullPath(config, 0);
  22. printf("Trying to load \"%s\"...\n", configFile);
  23. return 0;
  24. }
  25. int OpenRaider::initialize() {
  26. assert(mWindow == NULL);
  27. mWindow = new WindowSDL();
  28. mWindow->initialize();
  29. return 0;
  30. }