줄바꿈을 LF로 통일
서버에서 바로 빌드하고 고칠 수 있게 저장소 줄바꿈을 LF로 맞췄습니다. CRLF로 들어가 있던 sh 빌드 스크립트도 이제 리눅스에서 그대로 돌아갑니다. 내용은 바뀌지 않았습니다.
This commit is contained in:
1 parent
40615838ac
commit
2d48091205
623 files changed
+501372
-501365
No files matched your search
+13
-13
@@ -1,13 +1,13 @@
|
||||
// Install the field switch into a finished ROM, as the studio does when saving.
|
||||
// node test/feld_cli.js <rom_in> <rom_out> [aus|felder|items] (aus = off, felder = fields only, items = items only; default: fields and items)
|
||||
const fs = require('fs');
|
||||
const E = require('../src/emu.js'), F = require('../src/feld.js');
|
||||
const rd = (p) => new Uint8Array(fs.readFileSync(p));
|
||||
const emb = { feld: rd(__dirname + '/../feld/feld.bin'), stub: rd(process.env.STUBTPL || (__dirname + '/../feld/stub_feld_tpl.bin')), oldStub: rd(__dirname + '/../emu/stub_tpl.bin') };
|
||||
let rom = rd(process.argv[2]);
|
||||
const saved = F.feldSlots(rom, emb.stub);
|
||||
rom = F.feldStrip(rom, emb, E);
|
||||
const w = process.argv[4] || '';
|
||||
if (w !== 'aus') rom = F.feldApply(rom, { fields: w !== 'items', bag: w !== 'felder' }, saved, emb, E);
|
||||
fs.writeFileSync(process.argv[3], rom);
|
||||
console.log(process.argv[3], JSON.stringify(F.feldFind(rom, emb.stub)), 'Programm', ['keins', 'DOOM', 'Emulator'][F.appKind(rom)]);
|
||||
// Install the field switch into a finished ROM, as the studio does when saving.
|
||||
// node test/feld_cli.js <rom_in> <rom_out> [aus|felder|items] (aus = off, felder = fields only, items = items only; default: fields and items)
|
||||
const fs = require('fs');
|
||||
const E = require('../src/emu.js'), F = require('../src/feld.js');
|
||||
const rd = (p) => new Uint8Array(fs.readFileSync(p));
|
||||
const emb = { feld: rd(__dirname + '/../feld/feld.bin'), stub: rd(process.env.STUBTPL || (__dirname + '/../feld/stub_feld_tpl.bin')), oldStub: rd(__dirname + '/../emu/stub_tpl.bin') };
|
||||
let rom = rd(process.argv[2]);
|
||||
const saved = F.feldSlots(rom, emb.stub);
|
||||
rom = F.feldStrip(rom, emb, E);
|
||||
const w = process.argv[4] || '';
|
||||
if (w !== 'aus') rom = F.feldApply(rom, { fields: w !== 'items', bag: w !== 'felder' }, saved, emb, E);
|
||||
fs.writeFileSync(process.argv[3], rom);
|
||||
console.log(process.argv[3], JSON.stringify(F.feldFind(rom, emb.stub)), 'Programm', ['keins', 'DOOM', 'Emulator'][F.appKind(rom)]);
|
||||
Reference in new issue
Block a user