-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
045b83f
commit 92717c8
Showing
12 changed files
with
130 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import { remote, app } from 'electron'; | ||
import * as path from 'path'; | ||
import { remote, app } from "electron"; | ||
import * as path from "path"; | ||
|
||
const _app = app || remote.app | ||
const _app = app || remote.app; | ||
|
||
export const CONSTANTS = { | ||
IMAGE_PATH: path.join(__dirname, '../../images/windows95.img'), | ||
IMAGE_PATH: path.join(__dirname, "../../images/windows95.img"), | ||
IMAGE_DEFAULT_SIZE: 1073741824, // 1GB | ||
DEFAULT_STATE_PATH: path.join(__dirname, '../../images/default-state.bin'), | ||
STATE_PATH: path.join(_app.getPath('userData'), 'state-v2.bin') | ||
} | ||
DEFAULT_STATE_PATH: path.join(__dirname, "../../images/default-state.bin"), | ||
STATE_PATH: path.join(_app.getPath("userData"), "state-v2.bin"), | ||
}; | ||
|
||
export const IPC_COMMANDS = { | ||
TOGGLE_INFO: 'TOGGLE_INFO', | ||
SHOW_DISK_IMAGE: 'SHOW_DISK_IMAGE', | ||
ZOOM_IN: 'ZOOM_IN', | ||
ZOOM_OUT: 'ZOOM_OUT', | ||
ZOOM_RESET: 'ZOOM_RESET', | ||
TOGGLE_INFO: "TOGGLE_INFO", | ||
SHOW_DISK_IMAGE: "SHOW_DISK_IMAGE", | ||
ZOOM_IN: "ZOOM_IN", | ||
ZOOM_OUT: "ZOOM_OUT", | ||
ZOOM_RESET: "ZOOM_RESET", | ||
// Machine instructions | ||
MACHINE_START: 'MACHINE_START', | ||
MACHINE_RESTART: 'MACHINE_RESTART', | ||
MACHINE_STOP: 'MACHINE_STOP', | ||
MACHINE_RESET: 'MACHINE_RESET', | ||
MACHINE_ALT_F4: 'MACHINE_ALT_F4', | ||
MACHINE_ESC: 'MACHINE_ESC', | ||
MACHINE_ALT_ENTER: 'MACHINE_ALT_ENTER', | ||
MACHINE_CTRL_ALT_DEL: 'MACHINE_CTRL_ALT_DEL', | ||
MACHINE_START: "MACHINE_START", | ||
MACHINE_RESTART: "MACHINE_RESTART", | ||
MACHINE_STOP: "MACHINE_STOP", | ||
MACHINE_RESET: "MACHINE_RESET", | ||
MACHINE_ALT_F4: "MACHINE_ALT_F4", | ||
MACHINE_ESC: "MACHINE_ESC", | ||
MACHINE_ALT_ENTER: "MACHINE_ALT_ENTER", | ||
MACHINE_CTRL_ALT_DEL: "MACHINE_CTRL_ALT_DEL", | ||
// Machine events | ||
MACHINE_STARTED: 'MACHINE_STARTED', | ||
MACHINE_STOPPED: 'MACHINE_STOPPED' | ||
} | ||
MACHINE_STARTED: "MACHINE_STARTED", | ||
MACHINE_STOPPED: "MACHINE_STOPPED", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.