Reorganize top-level directories with clearer naming convention
app -> app-desktop-macos, presets -> app-presets, server -> remote-server, daw-config-reaper -> osc-config-daw, plugin-reaper-realearn -> plugin-reaper-relearn. Updated run.py and presets.py path references accordingly. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
use base::hash_util::NonCryptoHashMap;
|
||||
use helgoboss_learn::devices::x_touch::XTouchMackieLcdState;
|
||||
use reaper_medium::MidiOutputDeviceId;
|
||||
|
||||
/// Global state about sources.
|
||||
#[derive(Default)]
|
||||
pub struct RealearnSourceState {
|
||||
x_touch_mackie_lcd_state_by_device: NonCryptoHashMap<MidiOutputDeviceId, XTouchMackieLcdState>,
|
||||
}
|
||||
|
||||
impl RealearnSourceState {
|
||||
pub fn get_x_touch_mackie_lcd_state_mut(
|
||||
&mut self,
|
||||
device: MidiOutputDeviceId,
|
||||
) -> &mut XTouchMackieLcdState {
|
||||
self.x_touch_mackie_lcd_state_by_device
|
||||
.entry(device)
|
||||
.or_default()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user