Skip to content

Fix CLI's PromptLoadFile function#2199

Merged
colinator27 merged 1 commit intoUnderminersTeam:masterfrom
ancientstraits:master
Jul 20, 2025
Merged

Fix CLI's PromptLoadFile function#2199
colinator27 merged 1 commit intoUnderminersTeam:masterfrom
ancientstraits:master

Conversation

@ancientstraits
Copy link
Copy Markdown
Contributor

Description

In UTMT's CLI interface, in Program.UMTLibInherited.cs, PromptLoadFile is written incorrectly, because it keeps asking for a file if that file exists, and proceeds when the file does not exist. This is because the source code said while (fileInfo.Exists); instead of while (!fileInfo.Exists);. This made the PromptLoadFilefunction not work.

Caveats

No caveats. The CLI can now correctly prompt for files.

Notes

None right now

@github-actions
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@colinator27 colinator27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Somehow I didn't see this when we corrected the directory version of this function...

@colinator27 colinator27 merged commit 87f6667 into UnderminersTeam:master Jul 20, 2025
5 checks passed
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.

2 participants