From 865e55540f6e5264821d827ce076fe6d4c34724b Mon Sep 17 00:00:00 2001 From: Michael Panzlaff Date: Wed, 12 Feb 2025 14:03:59 +0100 Subject: [PATCH] possibly fix #81 ? --- src/agbplay/ProfileManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/agbplay/ProfileManager.cpp b/src/agbplay/ProfileManager.cpp index 962732a..8c91490 100644 --- a/src/agbplay/ProfileManager.cpp +++ b/src/agbplay/ProfileManager.cpp @@ -41,6 +41,8 @@ void ProfileManager::ApplyScanResultsToProfiles( /* If no scan results are found make sure profiles are restricted to the ones, * which have a manual song table and song count. */ auto filterFunc = [](std::shared_ptr &profile) { + // TODO, this filters only profiles with manual songtable. + // This may need to change once we change the scanner to support partial scanning const bool manualTable = profile->songTableInfoConfig.pos != SongTableInfo::POS_AUTO; const bool manualCount = profile->songTableInfoConfig.count != SongTableInfo::COUNT_AUTO; return !(manualTable && manualCount); @@ -50,6 +52,8 @@ void ProfileManager::ApplyScanResultsToProfiles( throw Xcept( "Scanner could not find MP2K data. Existing matching profiles were found, but none manually specify song table and song count." ); + for (std::shared_ptr &profileCandidate : profiles) + profileCandidate->ApplyScanToPlayback(); } for (size_t tableIdx = 0; tableIdx < scanResults.size(); tableIdx++) {