sc: rename data files to append game release abbreviation
[sheet.git] / sc.plp
diff --git a/sc.plp b/sc.plp
index 71742280006ea0099aa6b83734bba153a15e7ac8..55dbd0941304f8a9f64b8069057df87596288059 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -1,9 +1,10 @@
 <(common.inc.plp)><:
 
-my $datafile = 'sc-units.inc.pl';
+my $scver = 'bw';
 if ($ENV{PATH_INFO} and $ENV{PATH_INFO} eq '/2') {
-       $datafile = 'sc2-units.inc.pl';
+       my $scver = 'hots';
 }
+my $datafile = "sc-units-$scver.inc.pl";
 
 Html({
        title => 'starcraft unit cheat sheet',