Skip to content

fix(paths): add "exists" bool to GamePath#346

Open
emiyl wants to merge 1 commit into
ButterscotchRunner:mainfrom
emiyl:flag-paths-as-deleted
Open

fix(paths): add "exists" bool to GamePath#346
emiyl wants to merge 1 commit into
ButterscotchRunner:mainfrom
emiyl:flag-paths-as-deleted

Conversation

@emiyl

@emiyl emiyl commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

This adds a bool labelled "exists" to GamePath. In parsePATH and path_add, exists is set to true, and in path_delete, exists is set to false. getPath now returns nullptr if exists is false.

This is more in line with actual GameMaker behaviour. In GameMaker Runtime 2026.0.0.23, running path_delete(p) on a previously created apth makes path_exists(p), return false, however in Butterscotch this would still return true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant