Skip to content

Conversation

@djdiskmachine
Copy link
Owner

@djdiskmachine djdiskmachine commented Dec 24, 2025

Allow creating a project with the same name in a different path Pass currentDirectory to NewProjectDialog
Path field added to NewProjectDialog
When randomising a project name, re run randomizer if name already in use

Adresses #175

Type of change

How Has This Been Tested?

Please describe the tests procedure by which you verified your changes.
Provide instructions on how to reproduce.

Test Configuration:

  • Tested in PPSSPP
  • Create project with the same name in the same place - expect fail
  • Create project with the same name in another folder - expect pass
  • Run Randomizer with limited word set - expect re-run on duplicate
  • [ ]

Checklist:

  • I have performed a self-review of my code
  • I have commented particularly in hard-to-understand areas
  • I have updated CHANGELOG
  • I have updated docs/wiki/What-is-LittlePiggyTracker.md reflecting my changes
  • I have version bumped in sources/Application/Model/Project.h
  • My changes generate no new warnings (build without your change then apply your change to check this)

djdiskmachine and others added 3 commits December 24, 2025 21:51
Allow creating a project with the same name in a different path
Pass currentDirectory to NewProjectDialog
Path field added to NewProjectDialog
When randomising a project name, re run randomizer if name already in use

Adresses #175
Bump build number
Update docs
Requires #214
Copy link
Owner Author

@djdiskmachine djdiskmachine left a comment

Choose a reason for hiding this comment

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

ok

@djdiskmachine djdiskmachine merged commit eb55515 into master Dec 25, 2025
12 checks passed
@djdiskmachine djdiskmachine deleted the new_project_refining branch December 25, 2025 09:02
@djdiskmachine djdiskmachine mentioned this pull request Dec 30, 2025
7 tasks
djdiskmachine added a commit that referenced this pull request Dec 30, 2025
Call ACTION_SAVE_AS NewProjectDialog with "root:" as path
Change default currentPath to "root:" (fix regression caused in #215
Disallow accidental root folder access in FileSystem::Descend
djdiskmachine added a commit that referenced this pull request Dec 31, 2025
Save as now discards unsaved changes to current project
Unsaved changes only written to project under new name
Adds filesystem function Delete(Path&)
Adds optional argument to PersistencyService::Save(const char* name)


Save temp file
Copy temp file to new location
Delete temp file
Bump CHANGELOG

#212

* Guard against forbidden paths 

Call ACTION_SAVE_AS NewProjectDialog with "root:" as path
Change default currentPath to "root:" (fix regression caused in #215)
Disallow accidental root folder access in FileSystem::Descend #219
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.

Skip randomly generated project name if a directory with that name already exists

1 participant