@tmustier/pi-nes 0.2.8 → 0.2.10
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/extensions/nes/index.ts +8 -8
- package/package.json +1 -1
package/extensions/nes/index.ts
CHANGED
|
@@ -143,8 +143,8 @@ async function configureWithWizard(
|
|
|
143
143
|
const romDirDisplay = displayPath(config.romDir);
|
|
144
144
|
const romDirDefaultLabel = config.romDir === DEFAULT_CONFIG.romDir ? "Use default" : "Use current";
|
|
145
145
|
const romDirOptions = [
|
|
146
|
-
`${romDirDefaultLabel} (${romDirDisplay})`,
|
|
147
|
-
"Enter a custom path",
|
|
146
|
+
`${romDirDefaultLabel} (${romDirDisplay}) — creates if missing`,
|
|
147
|
+
"Enter a custom path (must exist)",
|
|
148
148
|
];
|
|
149
149
|
const romDirChoice = await ctx.ui.select("ROM directory", romDirOptions);
|
|
150
150
|
if (!romDirChoice) {
|
|
@@ -153,7 +153,7 @@ async function configureWithWizard(
|
|
|
153
153
|
|
|
154
154
|
let romDir = config.romDir;
|
|
155
155
|
if (romDirChoice === romDirOptions[1]) {
|
|
156
|
-
const romDirInput = await ctx.ui.input("ROM directory", romDirDisplay);
|
|
156
|
+
const romDirInput = await ctx.ui.input("ROM directory (must exist)", romDirDisplay);
|
|
157
157
|
if (romDirInput === undefined) {
|
|
158
158
|
return false;
|
|
159
159
|
}
|
|
@@ -175,8 +175,8 @@ async function configureWithWizard(
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
const qualityChoice = await ctx.ui.select("Quality (pixel scale)", [
|
|
178
|
-
"Low (1.0) - faster",
|
|
179
178
|
"Balanced (1.2) - recommended",
|
|
179
|
+
"Low (1.0) - faster",
|
|
180
180
|
"High (1.5) - sharper",
|
|
181
181
|
"Custom...",
|
|
182
182
|
]);
|
|
@@ -225,18 +225,18 @@ async function editConfig(ctx: ExtensionCommandContext): Promise<void> {
|
|
|
225
225
|
}
|
|
226
226
|
const config = await loadConfig();
|
|
227
227
|
const choice = await ctx.ui.select("NES configuration", [
|
|
228
|
-
"
|
|
229
|
-
"
|
|
228
|
+
"Quick setup",
|
|
229
|
+
"Advanced (edit config JSON)",
|
|
230
230
|
"Reset to defaults",
|
|
231
231
|
]);
|
|
232
232
|
if (!choice) {
|
|
233
233
|
return;
|
|
234
234
|
}
|
|
235
|
-
if (choice === "
|
|
235
|
+
if (choice === "Quick setup") {
|
|
236
236
|
await configureWithWizard(ctx, config);
|
|
237
237
|
return;
|
|
238
238
|
}
|
|
239
|
-
if (choice === "
|
|
239
|
+
if (choice === "Advanced (edit config JSON)") {
|
|
240
240
|
await editConfigJson(ctx, config);
|
|
241
241
|
return;
|
|
242
242
|
}
|