Fix a few smaller build issues

This commit is contained in:
Felix Rieseberg
2025-02-20 17:27:00 -08:00
parent 16eb63e13b
commit 3a7b37fff0
4 changed files with 30 additions and 24 deletions

View File

@@ -1,9 +1,12 @@
import * as path from "path";
const IMAGES_PATH = path.join(__dirname, "../../images");
export const CONSTANTS = {
IMAGE_PATH: path.join(__dirname, "../../images/windows95_v4.raw"),
IMAGES_PATH,
IMAGE_PATH: path.join(IMAGES_PATH, "windows95.img"),
IMAGE_DEFAULT_SIZE: 1073741824, // 1GB
DEFAULT_STATE_PATH: path.join(__dirname, "../../images/default-state.bin"),
DEFAULT_STATE_PATH: path.join(IMAGES_PATH, "default-state.bin"),
};
export const IPC_COMMANDS = {

View File

@@ -122,7 +122,7 @@ export class CardSettings extends React.Component<
</p>
<p id="floppy-path">
{floppy
? `Inserted Floppy Disk: ${floppy.path}`
? `Inserted Floppy Disk: ${floppy.name}`
: `No floppy mounted`}
</p>
<button

View File

@@ -278,9 +278,11 @@ export class Emulator extends React.Component<{}, EmulatorState> {
wasm_path: path.join(__dirname, "build/v86.wasm"),
memory_size: 128 * 1024 * 1024,
vga_memory_size: 64 * 1024 * 1024,
screen_container: document.getElementById("emulator"),
// preserve_mac_from_state_image: true,
use_graphical_text: true,
screen: {
container: document.getElementById("emulator"),
scale: 0
},
preserve_mac_from_state_image: true,
net_device: {
relay_url: "fetch",
type: "ne2k",
@@ -296,9 +298,11 @@ export class Emulator extends React.Component<{}, EmulatorState> {
async: true,
size: await getDiskImageSize(CONSTANTS.IMAGE_PATH),
},
// fda: {
// buffer: this.state.floppyFile,
// },
fda: this.state.floppyFile
? {
buffer: this.state.floppyFile,
}
: undefined,
cdrom: this.state.cdromFile?.path
? {
url: this.state.cdromFile.path,