Subversion Repositories SvarDOS

Rev

Rev 599 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 599 Rev 601
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (C) 2021-2022 Mateusz Viste
2
 * Copyright (C) 2021-2022 Mateusz Viste
3
 *
3
 *
4
 * usage: tlumacz en fr pl etc
4
 * usage: tlumacz en fr pl etc
5
 *
5
 *
6
 * computes a svarcom.lng file that contains all language ressources found
6
 * computes an out.lng file that contains all language ressources.
7
 * inside dirname.
-
 
8
 *
7
 *
9
 * DAT format:
8
 * DAT format:
10
 *
9
 *
11
 * 4-bytes signature:
10
 * 4-bytes signature:
12
 * "SvL\x1b"
11
 * "SvL\x1b"
Line 201... Line 200...
201
  if ((buff == NULL) || (refblock == NULL)) {
200
  if ((buff == NULL) || (refblock == NULL)) {
202
    puts("out of memory");
201
    puts("out of memory");
203
    return(1);
202
    return(1);
204
  }
203
  }
205
 
204
 
206
  fd = fopen("svarcom.lng", "wb");
205
  fd = fopen("out.lng", "wb");
207
  if (fd == NULL) {
206
  if (fd == NULL) {
208
    puts("ERR: failed to open or create SVARCOM.LNG");
207
    puts("ERR: failed to open or create SVARCOM.LNG");
209
    return(1);
208
    return(1);
210
  }
209
  }
211
 
210