Skip to content

Commit 20e312c

Browse files
committed
cleanup
1 parent 06f3e67 commit 20e312c

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

Emulator/VAmiga/Misc/RetroShell/CommandConsole.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ CommandConsole::initCommands(RetroShellCmd &root)
267267
root.add({
268268

269269
.tokens = { cmd, "load" },
270-
.help = { "Load memory contents from a file" }
270+
.help = { "Loads memory contents from a file" }
271271
});
272272

273273
root.add({
@@ -468,12 +468,12 @@ CommandConsole::initCommands(RetroShellCmd &root)
468468

469469
cmd = registerComponent(keyboard);
470470

471-
root.add({
472-
473-
.tokens = { cmd, "press" },
474-
.args = { Arg::value },
475-
.help = { "Sends a keycode to the keyboard" },
476-
.func = [this] (Arguments& argv, const std::vector<isize> &values) {
471+
root.add({
472+
473+
.tokens = { cmd, "press" },
474+
.args = { Arg::value },
475+
.help = { "Sends a keycode to the keyboard" },
476+
.func = [this] (Arguments& argv, const std::vector<isize> &values) {
477477

478478
auto code = KeyCode(parseNum(argv[0]));
479479
emulator.put(Command(Cmd::KEY_PRESS, KeyCommand { .keycode = code, .delay = 0.0 }));

Emulator/VAmiga/Misc/RetroShell/Console.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ Console::registerComponent(CoreComponent &c, RetroShellCmd &root)
901901
root.add( {.tokens = { cmd }, .help = c.shellHelp() } );
902902
}
903903

904-
// CHeck if this component has options
904+
// In case this component has options...
905905
if (auto &options = c.getOptions(); !options.empty()) {
906906

907907
// Register a command for querying the current configuration

Emulator/VAmiga/Misc/RetroShell/DebugConsole.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ DebugConsole::initCommands(RetroShellCmd &root)
7575
Console::initCommands(root);
7676

7777
//
78-
// Top-level commands
78+
// Program execution
7979
//
8080

8181
RetroShellCmd::currentGroup = "Program execution";
@@ -1621,6 +1621,7 @@ DebugConsole::initCommands(RetroShellCmd &root)
16211621
}
16221622
});
16231623
}
1624+
16241625
root.add({
16251626

16261627
.tokens = {"%"},

Emulator/VAmiga/Misc/RetroShell/RetroShell.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ namespace vamiga {
3737
class RetroShell final : public SubComponent {
3838

3939
friend class RshServer;
40-
// friend class Interpreter;
4140

4241
Descriptions descriptions = {{
4342

Emulator/VAmiga/Misc/RetroShell/RetroShellCmd.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ struct RetroShellCmd {
7070
string helpName;
7171

7272
// Help description of this command (e.g., "Eject disk")
73-
// std::pair<string, string> help;
7473
std::vector<string> help;
7574

7675
// List of required arguments

0 commit comments

Comments
 (0)