add-source-to-projects.pl: Fix adding files in the base src dir.

main
Ryan C. Gordon 2023-10-09 19:15:54 -04:00
parent 836927edf8
commit 8745a9949b
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 1 additions and 0 deletions

View File

@ -438,6 +438,7 @@ sub process_visualstudio {
$filter = lc(dirname($addpath));
$filter =~ s/\Asrc\///; # there's no filter for the base "src/" dir, where SDL.c and friends live.
$filter =~ s/\//\\/g;
$filter = '' if $filter eq 'src';
if ($filter ne '') {
# see if the filter already exists, otherwise add it.