Skip to content

Commit

Permalink
no longer loads realtime_controller.lua
Browse files Browse the repository at this point in the history
- since it is not used (and could lead to problems) we remove it
  • Loading branch information
ypujante committed Oct 29, 2022
1 parent 6b90d25 commit 3f49cca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cpp/re/edit/PropertyManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ namespace re::edit {
//------------------------------------------------------------------------
int PropertyManager::init(fs::path const &iDirectory)
{
// TODO: this will NOT work if the original device has a different constructor
// since it is instantiated via realtime_controller.lua
struct NoOpDevice
{
explicit NoOpDevice(int /* iSampleRate */) {}
Expand All @@ -43,7 +41,8 @@ int PropertyManager::init(fs::path const &iDirectory)
.device_root_dir(iDirectory)
.device_resources_dir(iDirectory / "Resources")
.mdef_file(iDirectory / "motherboard_def.lua")
.rtc_file(iDirectory / "realtime_controller.lua")
.rtc(Config::skeletonRealtimeController())
// .rtc_file(iDirectory / "realtime_controller.lua")
.rt([](Realtime &rt) { rt = Realtime{}; }); // no object creation at all
// .rt([](Realtime &rt) { rt = Realtime::byDefault<NoOpDevice>(); });

Expand Down

0 comments on commit 3f49cca

Please sign in to comment.