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.

70 lines
2.1KB

  1. --- ../Rack/src/common.cpp 2021-12-04 09:46:43.912932319 +0000
  2. +++ common.cpp 2022-01-24 00:11:36.628498885 +0000
  3. @@ -1,6 +1,38 @@
  4. +/*
  5. + * DISTRHO Cardinal Plugin
  6. + * Copyright (C) 2021-2022 Filipe Coelho <falktx@falktx.com>
  7. + *
  8. + * This program is free software; you can redistribute it and/or
  9. + * modify it under the terms of the GNU General Public License as
  10. + * published by the Free Software Foundation; either version 3 of
  11. + * the License, or any later version.
  12. + *
  13. + * This program is distributed in the hope that it will be useful,
  14. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. + * GNU General Public License for more details.
  17. + *
  18. + * For a full copy of the GNU General Public License see the LICENSE file.
  19. + */
  20. +
  21. +/**
  22. + * This file is an edited version of VCVRack's common.cpp
  23. + * Copyright (C) 2016-2021 VCV.
  24. + *
  25. + * This program is free software: you can redistribute it and/or
  26. + * modify it under the terms of the GNU General Public License as
  27. + * published by the Free Software Foundation; either version 3 of
  28. + * the License, or (at your option) any later version.
  29. + */
  30. +
  31. #include <common.hpp>
  32. #include <string.hpp>
  33. +#ifdef NDEBUG
  34. +# undef DEBUG
  35. +#endif
  36. +
  37. +#include "DistrhoPluginUtils.hpp"
  38. #if defined ARCH_WIN
  39. #include <windows.h>
  40. @@ -14,20 +46,21 @@
  41. namespace rack {
  42. -
  43. -const std::string APP_NAME = "VCV Rack";
  44. -const std::string APP_EDITION = "Free";
  45. -const std::string APP_EDITION_NAME = "Free";
  46. +const std::string APP_NAME = "Cardinal";
  47. +const std::string APP_EDITION = getPluginFormatName();
  48. +const std::string APP_EDITION_NAME = "Audio Plugin";
  49. const std::string APP_VERSION_MAJOR = "2";
  50. -const std::string APP_VERSION = TOSTRING(_APP_VERSION);
  51. +const std::string APP_VERSION = "2.0";
  52. #if defined ARCH_WIN
  53. const std::string APP_OS = "win";
  54. #elif ARCH_MAC
  55. const std::string APP_OS = "mac";
  56. #elif defined ARCH_LIN
  57. const std::string APP_OS = "lin";
  58. +#else
  59. + #error ARCH_LIN undefined
  60. #endif
  61. -const std::string API_URL = "https://api.vcvrack.com";
  62. +const std::string API_URL = "";
  63. Exception::Exception(const char* format, ...) {