From 1615180d8d3559e1e23f030d0671be1e5b17bc00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Sat, 8 Jun 2024 22:27:22 +0300 Subject: [PATCH] d --- v4/main.cpp | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/v4/main.cpp b/v4/main.cpp index b955a8f..7cec81c 100644 --- a/v4/main.cpp +++ b/v4/main.cpp @@ -108,22 +108,12 @@ int main() { ctrl.registerCallback(printOutput); ctrl.registerFieldCallback("exit", [](memory_Context c) { exit(0); }); - /* - - auto c = shell_createContext(); - c.cCLI = cli_createContext(); - c = shell_launch(c); - std::cout << c.output << std::endl; + ctrl.set("didLaunch", true); + ctrl.set("playfieldSize", 2); while (true) { - std::string line; - getline(std::cin, line); - c.input = line; - c = shell_processInput(c); - if (c.exit) { - break; - } - std::cout << c.output << std::endl; + std::string ln; + getline(std::cin, ln); + ctrl.set("input", ln); } - */ }