Skip to content

Commit

Permalink
Fix Savestate path logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
wally4000 committed Jan 8, 2025
1 parent 8b0e8e5 commit 4be4a84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/UI/SavestateSelectorComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ void ISavestateSelectorComponent::LoadFolders() {
mPVExists[i] = 0;
mLastPreviewLoad = ~0;
}
for( const auto& entry : std::filesystem::directory_iterator("SaveStates"))
std::filesystem::path saveStateDir = setBasePath("SaveStates");
for( const auto& entry : std::filesystem::directory_iterator(saveStateDir))
{
if (entry.is_directory())
{
Expand Down

0 comments on commit 4be4a84

Please sign in to comment.