@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 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": "off",
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` | `"off"` | `"off"`, `"ntsc-composite"`, `"ntsc-svideo"`, `"ntsc-rgb"` |
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.
@@ -31,7 +31,7 @@ export const DEFAULT_CONFIG: NesConfig = {
31
31
  enableAudio: false,
32
32
  renderer: "image",
33
33
  imageQuality: "balanced",
34
- videoFilter: "off",
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 "off";
152
+ return DEFAULT_CONFIG.videoFilter;
153
153
  }
154
154
  }
155
155
 
@@ -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: "Sharp (default) — pixel-perfect, no filtering", value: "off" },
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: "CRT Classic authentic scanlines + color bleed", value: "ntsc-composite" },
177
+ { label: "Sharppixel-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 = filterOptions.find((option) => option.label === filterChoice)?.value ?? "off";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmustier/pi-nes",
3
- "version": "0.2.32",
3
+ "version": "0.2.34",
4
4
  "description": "NES emulator extension for pi",
5
5
  "keywords": [
6
6
  "pi-package",
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: `off`.
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