Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ Linux, macOS arm64 and Windows):
- **cli_smoke** (`tests/cli_smoke.cmake`): drives the `msxforge` binary end to
end on a freshly formatted disk.

## User manual

A complete user manual (in Spanish) — GUI, every CLI command, hard disk / SD
images, recipes and troubleshooting — is in [`docs/MANUAL.md`](docs/MANUAL.md).

## CLI usage

Every `<FILE>` may be a path into subdirectories (`GAMES/SAVE/SLOT1.DAT`),
Expand Down
5 changes: 3 additions & 2 deletions cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,9 @@ static int cmd_add(int argc, char** argv) {
std::string err;
if (!fs.createFile(dir, name, data, &err)) { fprintf(stderr, "add: %s\n", err.c_str()); return 6; }
if (!dk.save(argv[2], &err)) { fprintf(stderr, "save: %s\n", err.c_str()); return 7; }
printf("added %s (%zu bytes) as %s%s\n", argv[3], data.size(),
dir.c_str(), name.c_str());
std::string where = dir;
if (where.empty() || (where.back() != '/' && where.back() != '\\')) where += "/";
printf("added %s (%zu bytes) as %s%s\n", argv[3], data.size(), where.c_str(), name.c_str());
return 0;
}

Expand Down
Loading
Loading