Skip to content

Commit

Permalink
Merge pull request simonlourson#21 from Sinetheta/revert-19-imagepatch
Browse files Browse the repository at this point in the history
Revert "fix some locations where we still ref the old image database location"
  • Loading branch information
RaceFPV authored Apr 8, 2023
2 parents 23b5606 + 1b67291 commit d009177
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/api/batch/add-info-icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class AddInfoIcons
console.log('Running batch FixHtmlLabels')

// Read database
let databaseToFix = './frontend/src/assets/database/' + process.argv[2];
let databaseToFix = './assets/database/' + process.argv[2];
console.log('Adding info icons srpite infos and sprite modifiers to ' + databaseToFix);


Expand All @@ -25,8 +25,6 @@ export class AddInfoIcons
let rawdata = fs.readFileSync(path).toString();
let database = JSON.parse(rawdata) as BExport;

//these can be found in the 'manual' folder under 'ui' in assets/images
//they may need to be copied from that location into the main images folder
let spriteModifiersNames: string[] = [
'element_tile_back',
'gas_tile_front',
Expand Down
2 changes: 1 addition & 1 deletion app/api/batch/fix-html-labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class FixHtmlLabels
this.dom = new JSDOM('<!DOCTYPE html>');

// Read database
let databaseToFix = './frontend/src/assets/database/' + process.argv[2];
let databaseToFix = './assets/database/' + process.argv[2];
console.log('Removing html tags from ' + databaseToFix);


Expand Down
2 changes: 1 addition & 1 deletion app/api/batch/test-canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class TestCanvas //implements PixiUtil
constructor() {

// Read database
let rawdata = fs.readFileSync('./frontend/src/assets/database/database-white.json').toString();
let rawdata = fs.readFileSync('./assets/database/database-white.json').toString();
let json = JSON.parse(rawdata);

ImageSource.init();
Expand Down
2 changes: 1 addition & 1 deletion app/api/batch/update-thumbnail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class UpdateThumbnail
console.log(process.env.ENV_NAME);

// Read database
let rawdata = fs.readFileSync('./frontend/src/assets/database/database-repack.json').toString();
let rawdata = fs.readFileSync('./assets/database/database-repack.json').toString();
let json = JSON.parse(rawdata);

ImageSource.init();
Expand Down

0 comments on commit d009177

Please sign in to comment.