Просмотр исходного кода

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

Ryan C. Gordon 1 год назад
Родитель
Сommit
8745a9949b
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      build-scripts/add-source-to-projects.pl

+ 1 - 0
build-scripts/add-source-to-projects.pl

@@ -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.