Skip to content

Commit

Permalink
Fix issue where CLI tool was ignoring project's debugger enabled sett…
Browse files Browse the repository at this point in the history
…ing causing debugger comments to always be included in generated gbvm code
  • Loading branch information
chrismaltby committed Oct 17, 2024
1 parent 5279c23 commit 9f4903b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Fix issue where errors in watched files could cause application to crash
- Fix issue where quickly clicking "Create Project" button during project creation could prevent new project from opening
- Fix issue where CLI tool was ignoring project's debugger enabled setting causing debugger comments to always be included in generated gbvm code

## [4.1.3] - 2024-09-16

Expand Down
2 changes: 1 addition & 1 deletion src/bin/gb-studio-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const main = async (
sceneTypes,
tmpPath,
outputRoot,
debugEnabled: true,
debugEnabled: project.settings.debuggerEnabled,
make: command !== "export",
progress,
warnings,
Expand Down
3 changes: 2 additions & 1 deletion src/lib/compiler/buildWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const buildProject = async ({
outputRoot,
buildType,
make,
debugEnabled,
l10nData,
}: BuildWorkerData) => {
// Initialise l10n
Expand All @@ -72,7 +73,7 @@ const buildProject = async ({
scriptEventHandlers,
sceneTypes,
tmpPath,
debugEnabled: true,
debugEnabled,
progress,
warnings,
});
Expand Down

0 comments on commit 9f4903b

Please sign in to comment.