aboutsummaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2023-09-10 02:36:26 +0200
committerLiam <byteslice@airmail.cc>2023-09-10 15:39:25 -0400
commitff92a0c8f4aadf1aa555d9f88800a4593795cd66 (patch)
tree28fa19ccd43fceeec31e433d32dae41e88d2b17e /src/core/core.h
parentabf45c2d0be5290781cb13c09867f810e5b8ebf4 (diff)
am: Implement UserChannel parameters
Used by the Super Mairo 3D All-Stars collection.
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index a9ff9315e3..fba3121257 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -4,6 +4,7 @@
#pragma once
#include <cstddef>
+#include <deque>
#include <functional>
#include <memory>
#include <mutex>
@@ -459,6 +460,12 @@ public:
*/
void ExecuteProgram(std::size_t program_index);
+ /**
+ * Gets a reference to the user channel stack.
+ * It is used to transfer data between programs.
+ */
+ [[nodiscard]] std::deque<std::vector<u8>>& GetUserChannel();
+
/// Type used for the frontend to designate a callback for System to exit the application.
using ExitCallback = std::function<void()>;