Free Hero Mesh

Check-in [ec8a917348]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.
Overview
Comment:Add 'rS' to set replay speed to a number with absolute instead of relative setting.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ec8a917348e3a17d0e8be43f6e1978e0c854672a
User & Date: user on 2023-07-18 05:43:34
Other Links: manifest | tags
Context
2023-08-01
19:50
The portalled Matrix chat is no longer available, so change the documentation to mention that it is not available. check-in: a7a889509e user: user tags: trunk
2023-07-18
05:43
Add 'rS' to set replay speed to a number with absolute instead of relative setting. check-in: ec8a917348 user: user tags: trunk
2023-07-16
19:46
Change tron8to32 to handle multibyte characters only if has_mbcs is true. check-in: b175421418 user: user tags: trunk
Changes

Modified bindings.doc from [3ed905f4d9] to [865bff0c9a].

121
122
123
124
125
126
127



128
129
130
131
132
133
134
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137







+
+
+







'ml' <blob>
  Load a move list from a SQL blob.

'mx' <command>
  Export a move list. The argument is a operating system command that
  will receive the move list (in the same format as above) on stdin.

'rS' <number>
  Set replay speed to the specified number (1 to 255).

'rs' <number>
  Adjust replay speed by the specified number (negative to make faster, or
  positive to make slower; zero leaves it unchanged).

'xy' <x> <y>
  Input a move using coordinate input. Coordinates are 1-based.

Modified game.c from [522c906303] to [c6d45694fd].

1363
1364
1365
1366
1367
1368
1369


1370
1371
1372
1373
1374
1375
1376
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378







+
+







      return 1;
    case 'mx': // Move list export
      if(argc<2) break;
      do_export_moves(sqlite3_column_text(args,1));
      return 0;
    case 'rs': // Replay speed
      number+=replay_speed;
      // fall through
    case 'rS': // Replay speed (absolute)
      if(number<1) number=1; else if(number>255) number=255;
      replay_speed=number;
      return prev;
    case 'xy': // Coordinate input
      if(argc<3 || !has_xy_input) break;
      argc=sqlite3_column_int(args,1);
      number=sqlite3_column_int(args,2);