Browse Source

Tweak more code for vitalium name

Signed-off-by: falkTX <falktx@falktx.com>
tags/2021-03-15
falkTX 1 year ago
parent
commit
3c250ae5f7
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 7 additions and 7 deletions
  1. +6
    -6
      ports/vitalium/source/common/load_save.cpp
  2. +1
    -1
      ports/vitalium/source/interface/editor_sections/full_interface.cpp

+ 6
- 6
ports/vitalium/source/common/load_save.cpp View File

@@ -1129,7 +1129,7 @@ std::string LoadSave::getLicense(json data) {
File LoadSave::getConfigFile() {
#if defined(JUCE_DATA_STRUCTURES_H_INCLUDED)
PropertiesFile::Options config_options;
config_options.applicationName = "Vial";
config_options.applicationName = "Vitalium";
config_options.osxLibrarySubFolder = "Application Support";
config_options.filenameSuffix = "config";

@@ -1165,7 +1165,7 @@ void LoadSave::writeErrorLog(String error_log) {
File LoadSave::getFavoritesFile() {
#if defined(JUCE_DATA_STRUCTURES_H_INCLUDED)
PropertiesFile::Options config_options;
config_options.applicationName = "Vial";
config_options.applicationName = "Vitalium";
config_options.osxLibrarySubFolder = "Application Support";
config_options.filenameSuffix = "favorites";

@@ -1184,7 +1184,7 @@ File LoadSave::getFavoritesFile() {
File LoadSave::getDefaultSkin() {
#if defined(JUCE_DATA_STRUCTURES_H_INCLUDED)
PropertiesFile::Options config_options;
config_options.applicationName = "Vial";
config_options.applicationName = "Vitalium";
config_options.osxLibrarySubFolder = "Application Support";
config_options.filenameSuffix = "skin";

@@ -1700,14 +1700,14 @@ File LoadSave::getDataDirectory() {
String xdg_data_home = SystemStats::getEnvironmentVariable ("XDG_DATA_HOME", {});

if (!xdg_data_home.trim().isEmpty())
directory = File(xdg_data_home).getChildFile("vial");
directory = File(xdg_data_home).getChildFile("Vitalium");

#elif defined(__APPLE__)
File home_directory = File::getSpecialLocation(File::userHomeDirectory);
File directory = home_directory.getChildFile("Music").getChildFile("Vial");
File directory = home_directory.getChildFile("Music").getChildFile("Vitalium");
#else
File documents_dir = File::getSpecialLocation(File::userDocumentsDirectory);
File directory = documents_dir.getChildFile("Vial");
File directory = documents_dir.getChildFile("Vitalium");
#endif

return directory;


+ 1
- 1
ports/vitalium/source/interface/editor_sections/full_interface.cpp View File

@@ -531,7 +531,7 @@ void FullInterface::newOpenGLContextCreated() {
unsupported_ = version_supported < kMinOpenGlVersion;
if (unsupported_) {
NativeMessageBox::showMessageBoxAsync(AlertWindow::WarningIcon, "Unsupported OpenGl Version",
String("Vial requires OpenGL version: ") + String(kMinOpenGlVersion) +
String("Vitalium requires OpenGL version: ") + String(kMinOpenGlVersion) +
String("\nSupported version: ") + String(version_supported));
return;
}


Loading…
Cancel
Save