@tmustier/pi-nes 0.2.32 → 0.2.34
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/README.md +2 -2
- package/extensions/nes/config.ts +2 -2
- package/extensions/nes/index.ts +4 -3
- package/package.json +1 -1
- package/spec.md +1 -1
- package/assets/demo.gif +0 -0
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ Config is stored at `~/.pi/nes/config.json`. Use `/nes config` for quick setup.
|
|
|
64
64
|
"saveDir": "/roms/nes/saves",
|
|
65
65
|
"renderer": "image",
|
|
66
66
|
"imageQuality": "balanced",
|
|
67
|
-
"videoFilter": "
|
|
67
|
+
"videoFilter": "ntsc-composite",
|
|
68
68
|
"pixelScale": 1.0,
|
|
69
69
|
"keybindings": {
|
|
70
70
|
"up": ["up", "w"],
|
|
@@ -87,7 +87,7 @@ Config is stored at `~/.pi/nes/config.json`. Use `/nes config` for quick setup.
|
|
|
87
87
|
| `saveDir` | `/roms/nes/saves` | Where to store battery saves (defaults to `<romDir>/saves`) |
|
|
88
88
|
| `renderer` | `"image"` | `"image"` (Kitty graphics) or `"text"` (ANSI) |
|
|
89
89
|
| `imageQuality` | `"balanced"` | `"balanced"` (30 fps) or `"high"` (60 fps) |
|
|
90
|
-
| `videoFilter` | `"
|
|
90
|
+
| `videoFilter` | `"ntsc-composite"` | `"off"`, `"ntsc-composite"`, `"ntsc-svideo"`, `"ntsc-rgb"` |
|
|
91
91
|
| `pixelScale` | `1.0` | Display scale (0.5–4.0) |
|
|
92
92
|
|
|
93
93
|
`videoFilter` applies a lightweight CRT/NTSC-inspired pass (horizontal bleed + scanlines). It runs in the native core and is optional.
|
package/extensions/nes/config.ts
CHANGED
|
@@ -31,7 +31,7 @@ export const DEFAULT_CONFIG: NesConfig = {
|
|
|
31
31
|
enableAudio: false,
|
|
32
32
|
renderer: "image",
|
|
33
33
|
imageQuality: "balanced",
|
|
34
|
-
videoFilter: "
|
|
34
|
+
videoFilter: "ntsc-composite",
|
|
35
35
|
pixelScale: 1.0,
|
|
36
36
|
keybindings: cloneMapping(DEFAULT_INPUT_MAPPING),
|
|
37
37
|
};
|
|
@@ -149,7 +149,7 @@ function normalizeVideoFilter(raw: unknown): VideoFilter {
|
|
|
149
149
|
case "ntsc-rgb":
|
|
150
150
|
return raw;
|
|
151
151
|
default:
|
|
152
|
-
return
|
|
152
|
+
return DEFAULT_CONFIG.videoFilter;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
package/extensions/nes/index.ts
CHANGED
|
@@ -172,9 +172,9 @@ async function configureWithWizard(
|
|
|
172
172
|
const imageQuality = isHighQuality ? "high" : "balanced";
|
|
173
173
|
|
|
174
174
|
const filterOptions: Array<{ label: string; value: VideoFilter }> = [
|
|
175
|
-
{ label: "
|
|
175
|
+
{ label: "CRT Classic (default) — authentic scanlines + color bleed", value: "ntsc-composite" },
|
|
176
176
|
{ label: "CRT Soft — subtle retro look", value: "ntsc-rgb" },
|
|
177
|
-
{ label: "
|
|
177
|
+
{ label: "Sharp — pixel-perfect, no filtering", value: "off" },
|
|
178
178
|
];
|
|
179
179
|
const filterChoice = await ctx.ui.select(
|
|
180
180
|
"Display style",
|
|
@@ -183,7 +183,8 @@ async function configureWithWizard(
|
|
|
183
183
|
if (!filterChoice) {
|
|
184
184
|
return false;
|
|
185
185
|
}
|
|
186
|
-
const videoFilter =
|
|
186
|
+
const videoFilter =
|
|
187
|
+
filterOptions.find((option) => option.label === filterChoice)?.value ?? DEFAULT_CONFIG.videoFilter;
|
|
187
188
|
const pixelScale = config.pixelScale;
|
|
188
189
|
|
|
189
190
|
const defaultSaveDir = getDefaultSaveDir(config.romDir);
|
package/package.json
CHANGED
package/spec.md
CHANGED
|
@@ -92,6 +92,6 @@ Note: audio output is currently disabled; setting `enableAudio` will show a warn
|
|
|
92
92
|
- Default ROM dir: `/roms/nes` (configurable).
|
|
93
93
|
- Default core: `native`.
|
|
94
94
|
- Default image quality: `balanced` (30 fps).
|
|
95
|
-
- Default video filter: `
|
|
95
|
+
- Default video filter: `ntsc-composite`.
|
|
96
96
|
- Default pixel scale: `1.0`.
|
|
97
97
|
- Default save dir: `/roms/nes/saves` (configurable).
|
package/assets/demo.gif
DELETED
|
Binary file
|