mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
fix adding newlines after updating dependencies
This commit is contained in:
parent
6161d7f140
commit
820a9fa962
@ -19,4 +19,3 @@ To install a specific core, run the following command:
|
||||
```bash
|
||||
npm install @emulatorjs/core-<core-name>
|
||||
```
|
||||
|
||||
|
||||
@ -22,4 +22,3 @@ To install all cores, run the following command:
|
||||
```bash
|
||||
npm install @emulatorjs/cores
|
||||
```
|
||||
|
||||
|
||||
@ -306,7 +306,7 @@
|
||||
"DPAD_UP": "DPAD_위",
|
||||
"DPAD_DOWN": "DPAD_아래",
|
||||
"DPAD_LEFT": "DPAD_왼쪽",
|
||||
"DPAD_RIGHT": "DPAD_오른쪽"
|
||||
"DPAD_RIGHT": "DPAD_오른쪽",
|
||||
"Disks": "디스크",
|
||||
"Exit EmulatorJS": "EmulatorJS 끝내기",
|
||||
"BUTTON_1": "버튼_1",
|
||||
|
||||
@ -27,12 +27,18 @@ const updateDependencies = async () => {
|
||||
|
||||
try {
|
||||
fs.copyFileSync(socket_io, ejs_socket_io);
|
||||
if (!fs.readFileSync(ejs_socket_io, 'utf8').endsWith('\n')) {
|
||||
fs.appendFileSync(ejs_socket_io, '\n');
|
||||
}
|
||||
} catch(error) {
|
||||
console.error("Error updating socket.io:", error.message);
|
||||
}
|
||||
|
||||
try {
|
||||
fs.copyFileSync(nipplejs, ejs_nipplejs);
|
||||
if (!fs.readFileSync(ejs_nipplejs, 'utf8').endsWith('\n')) {
|
||||
fs.appendFileSync(ejs_nipplejs, '\n');
|
||||
}
|
||||
} catch(error) {
|
||||
console.error("Error updating nipplejs:", error.message);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user