WIP: TIDE - Use project name for .trproj files#1137
Draft
Conversation
- Add TrprojFileName property to GameProjectBase to track actual .trproj file name
- New projects now get {projectName}.trproj instead of {engineName}.trproj
- Existing projects preserve their current .trproj file name when loaded
- GetTrprojFilePath() now uses the stored TrprojFileName
- Rename() supports optional renameTrprojFile parameter to rename the .trproj file
- FormRenameProject gets a "Rename .trproj file as well" checkbox (checked by default)
- Update IProject.Rename interface to include renameTrprojFile parameter
Co-authored-by: Nickelony <20436882+Nickelony@users.noreply.github.com>
Address code review: delete old .trproj file only after successfully saving the new one, preventing data loss if save fails. Co-authored-by: Nickelony <20436882+Nickelony@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update .trproj file naming to use project name
TIDE: Use project name for .trproj files
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
.trprojfiles were always named after the engine executable (e.g.,TombEngine.trproj,tomb4.trproj), making them indistinguishable in OS jump lists and recent files. Renaming a project did not update the.trprojfilename.Changes
GameProjectBase: AddedTrprojFileNameproperty to track the actual.trprojfilename.GetTrprojFilePath()now uses this instead of deriving from the engine executable name.TrprojFileName = name + ".trproj"TrprojFileName = Path.GetFileName(trproj.FilePath)(preserves existing name)Rename(): Accepts optionalrenameTrprojFileparameter. When true, updatesTrprojFileNameto match the new project name.FormRenameProject: Added "Rename .trproj file as well" checkbox (checked by default). Old.trprojfile is deleted only after successful save to prevent data loss.IProject.Rename/LevelProject.Rename: Signature updated withbool renameTrprojFile = falsefor interface conformance.Behavior
TombEngine.trprojMyLevel.trprojTombEngine.trprojTombEngine.trprojTombEngine.trproj(preserved).trprojunchanged.trprojrenamed if checkbox checkedOriginal prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.