Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add source groups for game scripts and associated files. #727

Merged
merged 1 commit into from
Oct 8, 2020

Conversation

Deledrius
Copy link
Member

This makes it easier to find, browse, and edit the files now included in the recently-added Scripts project.

@Deledrius Deledrius added Hacktoberfest Enhancement Non-critical feature addition labels Oct 2, 2020
@Deledrius Deledrius requested a review from Hoikas October 2, 2020 00:09
@@ -1,10 +1,20 @@
file(GLOB_RECURSE GameScripts "${CMAKE_CURRENT_SOURCE_DIR}/Python/*.py")
file(GLOB_RECURSE GameSDL "${CMAKE_CURRENT_SOURCE_DIR}/SDL/*.sdl")
file(GLOB_RECURSE GameData "${CMAKE_CURRENT_SOURCE_DIR}/dat/*.age" "${CMAKE_CURRENT_SOURCE_DIR}/dat/*.fni")
Copy link
Member

Choose a reason for hiding this comment

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

I'm not suggesting you change anything, but please note that glob lists will only get updated when CMake is re-run... They will never get automatically updated when files are added or removed.

Copy link
Member Author

@Deledrius Deledrius Oct 2, 2020

Choose a reason for hiding this comment

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

I'm aware, and considered this. Since they aren't used as part of the build, I felt it was okay for that loophole to exist. The copy commands all will continue to work fully, so this won't affect any functionality, it only requires a re-run of CMake for the convenience of having them in the UI. As far as drawbacks go, it seemed acceptable.

Copy link
Member

Choose a reason for hiding this comment

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

It's probably better to do any dedicated hacking on these files in a more filesystem driven editor, such as VS Code.

Copy link
Member Author

@Deledrius Deledrius Oct 2, 2020

Choose a reason for hiding this comment

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

I agree, but I've found myself wanting to pull them up several times for reference while working on engine code, and this makes it easier to do so. Also, it seemed odd to me in general to have a large collection of scripts and other text files being operated on by the build system but not available in the UI.

@Hoikas Hoikas merged commit 8b6d153 into H-uru:master Oct 8, 2020
@Deledrius Deledrius deleted the script_groups branch March 30, 2021 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Non-critical feature addition Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants