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.

42 lines
893B

  1. #include <common.hpp>
  2. #include <string.hpp>
  3. #if defined ARCH_WIN
  4. #include <windows.h>
  5. FILE* fopen_u8(const char* filename, const char* mode) {
  6. return _wfopen(rack::string::UTF8toUTF16(filename).c_str(), rack::string::UTF8toUTF16(mode).c_str());
  7. }
  8. #endif
  9. namespace rack {
  10. const std::string APP_NAME = "VCV Rack";
  11. const std::string APP_EDITION = "Free";
  12. const std::string APP_EDITION_NAME = "Free";
  13. const std::string APP_VERSION_MAJOR = "2";
  14. const std::string APP_VERSION = TOSTRING(_APP_VERSION);
  15. #if defined ARCH_WIN
  16. const std::string APP_OS = "win";
  17. #elif ARCH_MAC
  18. const std::string APP_OS = "mac";
  19. #elif defined ARCH_LIN
  20. const std::string APP_OS = "lin";
  21. #endif
  22. const std::string API_URL = "https://api.vcvrack.com";
  23. Exception::Exception(const char* format, ...) {
  24. va_list args;
  25. va_start(args, format);
  26. msg = string::fV(format, args);
  27. va_end(args);
  28. }
  29. } // namespace rack