Cleanup override files to be more like the original
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
8758fd53d1
commit
2c3867ca6a
7 changed files with 100 additions and 75 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* DISTRHO Cardinal Plugin
|
||||
* Copyright (C) 2021 Filipe Coelho <falktx@falktx.com>
|
||||
* Copyright (C) 2021-2022 Filipe Coelho <falktx@falktx.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* This file is an edited version of VCVRack's Model.cpp
|
||||
* This file is an edited version of VCVRack's plugin/Model.cpp
|
||||
* Copyright (C) 2016-2021 VCV.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or
|
||||
|
@ -44,7 +44,7 @@ namespace plugin {
|
|||
|
||||
|
||||
void Model::fromJson(json_t* rootJ) {
|
||||
assert(plugin);
|
||||
DISTRHO_SAFE_ASSERT_RETURN(plugin != nullptr,);
|
||||
|
||||
json_t* nameJ = json_object_get(rootJ, "name");
|
||||
if (nameJ)
|
||||
|
@ -95,7 +95,7 @@ void Model::fromJson(json_t* rootJ) {
|
|||
|
||||
|
||||
std::string Model::getFullName() {
|
||||
assert(plugin);
|
||||
DISTRHO_SAFE_ASSERT_RETURN(plugin, {});
|
||||
return plugin->getBrand() + " " + name;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue