hackaround for translators who don't do their job properly

This commit is contained in:
Mari the Deer 2020-05-19 15:10:31 +02:00
commit c9aef0e606
3 changed files with 7 additions and 1 deletions

View file

@ -1,2 +1,2 @@
[default]
SWWM_MODVER="\cxSWWM GZ\c- r251 (Tue 19 May 14:41:43 CEST 2020)";
SWWM_MODVER="\cxSWWM GZ\c- r251 (Tue 19 May 15:10:31 CEST 2020)";

View file

@ -188,6 +188,12 @@ int main( void )
};
for ( int i=0; i<NLANGS; i++ )
{
// [HACKAROUND] only generate if there's no ignore file,
// because some people don't do things the right way
char ignpath[256];
snprintf(ignpath,256,"%s/.ignoreme",langs[i]);
struct stat s;
if ( !stat(ignpath,&s) ) continue;
lf = fopen(langfiles[i],"wb");
if ( !lf ) continue;
fprintf(lf,"// this file was generated by mklang, "

0
lore/ru/.ignoreme Normal file
View file