Update to latest published Rack code
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
c2a5e2a0e5
commit
946cba3e98
10 changed files with 166 additions and 74 deletions
|
|
@ -1,3 +1,30 @@
|
|||
/*
|
||||
* DISTRHO Cardinal Plugin
|
||||
* Copyright (C) 2021 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
|
||||
* published by the Free Software Foundation; either version 3 of
|
||||
* the License, or any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* For a full copy of the GNU General Public License see the LICENSE file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This file is an edited version of VCVRack's context.cpp
|
||||
* Copyright (C) 2016-2021 VCV.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 3 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include <context.hpp>
|
||||
#include <window/Window.hpp>
|
||||
#include <patch.hpp>
|
||||
|
|
@ -12,20 +39,8 @@
|
|||
|
||||
#include "DistrhoUtils.hpp"
|
||||
|
||||
/**
|
||||
* This file is an edited version of VCVRack's context.cpp
|
||||
* Copyright (C) 2016-2021 VCV.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 3 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
|
||||
namespace rack {
|
||||
|
||||
|
||||
Context::~Context() {
|
||||
// Deleting NULL is safe in C++.
|
||||
|
||||
|
|
@ -50,7 +65,6 @@ Context::~Context() {
|
|||
engine = NULL;
|
||||
}
|
||||
|
||||
|
||||
static thread_local Context* threadContext = nullptr;
|
||||
|
||||
Context* contextGet() {
|
||||
|
|
@ -67,5 +81,4 @@ void contextSet(Context* const context) {
|
|||
threadContext = context;
|
||||
}
|
||||
|
||||
|
||||
} // namespace rack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue