Copy built-in resources to "OutputPath" only when needed #632
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi.
Commit message
Why
I've seen the "SUN.INI" file multiple times when playing with YR client. So today I did a search in the project root directory:
Oh, they are too many, aren't they?
After doing some testing, I think we need to tweak the "CopyResources" target by adding more conditions, so I did it in this PR.
Change
After applying this PR, the built-in resources will be copied to the
bin\Debug\$(Game)\$(Engine)
directory, so the binary of both net8.0 and non-net8.0 will share the same game files.Question
I can see the duplicated
SearchResourcesDir(string startupPath)
functions in both DXMainClient and ClientCore modules:xna-cncnet-client/ClientCore/ProgramConstants.cs
Lines 118 to 144 in bae3855
My question is: do we need those resources during debugging ClientCore? If so, I think I may need to change the condition statement.