import * as React from "react"; interface CardDriveProps { showDiskImage: () => void; } interface CardDriveState {} export class CardDrive extends React.Component { constructor(props: CardDriveProps) { super(props); this.state = {}; } public render() { let advice: JSX.Element | null = null; if (process.platform === "win32") { advice = this.renderAdviceWindows(); } else if (process.platform === "darwin") { advice = this.renderAdviceMac(); } else { advice = this.renderAdviceLinux(); } return (

Modify C: Drive

windows95 (this app) uses a raw disk image. Windows 95 (the operating system) is fragile, so adding or removing files is risky.

{advice}
); } public renderAdviceWindows(): JSX.Element { return (
Changing the disk on Windows

Windows 10 cannot mount raw disk images (ironically, macOS and Linux can). However, tools exist that let you mount this drive, like the freeware tool OSFMount. I am not affiliated with it, so please use it at your own risk.

{this.renderMountButton("Windows Explorer")}
); } public renderAdviceMac(): JSX.Element { return (
Changing the disk on macOS

macOS can mount the disk image directly. Click the button below to see the disk image in Finder. Then, double-click the image to mount it.

{this.renderMountButton("Finder")}
); } public renderAdviceLinux(): JSX.Element { return (
Changing the disk on Linux

There are plenty of tools that enable Linux users to mount and modify disk images. The disk image used by windows95 is a raw "img" disk image and can probably be mounted using the mount tool, which is likely installed on your machine.

{this.renderMountButton("file viewer")}
); } public renderMountButton(explorer: string) { return ( ); } }