fix: Show image in explorer

This commit is contained in:
Felix Rieseberg 2019-08-24 17:15:51 +02:00
parent 51d0011ed0
commit 0c2149b756

View file

@ -234,12 +234,14 @@ export class Emulator extends React.Component<{}, EmulatorState> {
return null; return null;
} }
return <EmulatorInfo return (
emulator={this.state.emulator} <EmulatorInfo
toggleInfo={() => { emulator={this.state.emulator}
this.setState({ isInfoDisplayed: !this.state.isInfoDisplayed }); toggleInfo={() => {
}} this.setState({ isInfoDisplayed: !this.state.isInfoDisplayed });
/> }}
/>
);
} }
/** /**
@ -254,9 +256,11 @@ export class Emulator extends React.Component<{}, EmulatorState> {
* Show the disk image on disk * Show the disk image on disk
*/ */
public showDiskImage() { public showDiskImage() {
// Contents/Resources/app/dist/static
const imagePath = path const imagePath = path
.join(__dirname, "images/windows95.img") .join(__dirname, "../../images/windows95.img");
.replace("app.asar", "app.asar.unpacked");
console.log(`Showing disk image in ${imagePath}`);``
shell.showItemInFolder(imagePath); shell.showItemInFolder(imagePath);
} }