@henols/c64-re-tools 2.4.0-rc.4 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henols/c64-re-tools",
3
- "version": "2.4.0-rc.4",
3
+ "version": "2.4.0",
4
4
  "description": "Agent-friendly Commodore 64 engineering toolkit for reverse engineering, debugging, development and testing.",
5
5
  "license": "MIT",
6
6
  "author": "Henrik Olsson",
@@ -127,15 +127,25 @@ const VICE_FLAWS = [
127
127
  "A program that compares the full byte of a joystick port also waits forever. " +
128
128
  "A KERNAL tape LOAD of a .tap image stops after FOUND, with no LOADING, and the C64 shows READY. The fix is in the next VICE release, and in VICE nightly builds now (SVN r45971 or later). " +
129
129
  "Install the latest VICE when this matters.",
130
+ noRevision:
131
+ "This VICE 3.10 shows no SVN revision: it is the 3.10 release, or a build from source without its revision. " +
132
+ "To build a nightly from source, run configure with SVN_REVISION_OVERRIDE=<revision>, so that x64sc -version shows the revision (for example x64sc (VICE 3.10 SVN r46290)).",
130
133
  },
131
134
  ] as const;
132
135
 
133
- /** The known flaws of this VICE version. */
136
+ /**
137
+ * The known flaws of this VICE version. A build of the last flawed
138
+ * major.minor with no revision can be a nightly that has the fix: its
139
+ * flaw text tells how to build it with the revision.
140
+ */
134
141
  export function viceFlaws(version: ViceVersion): ViceFlaw[] {
135
142
  return VICE_FLAWS.filter((flaw) => {
136
143
  const newer = version.major > flaw.upTo.major || (version.major === flaw.upTo.major && version.minor > flaw.upTo.minor);
137
144
  return !newer && (version.revision === undefined || version.revision < flaw.fixedRevision);
138
- }).map((flaw) => ({ text: flaw.text, breaks: flaw.breaks }));
145
+ }).map((flaw) => {
146
+ const last = version.major === flaw.upTo.major && version.minor === flaw.upTo.minor;
147
+ return { text: last && version.revision === undefined ? `${flaw.text} ${flaw.noRevision}` : flaw.text, breaks: flaw.breaks };
148
+ });
139
149
  }
140
150
 
141
151
  export function isOlderThanMinimum(version: { major: number; minor: number }): boolean {