Skip to content

Commit

Permalink
Update files
Browse files Browse the repository at this point in the history
  • Loading branch information
leikareipa committed Dec 1, 2024
1 parent add3124 commit 5f64951
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion desktop/$apps/command/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {icons} from "./icons.js";

export default function({
url = "",
textMode = false,
} = {}) {
return {
Meta: {
Expand All @@ -18,7 +19,7 @@ export default function({
const minWidth = 200;
const minHeight = 200;
const width = w95.state(653);
const height = w95.state(540);
const height = w95.state(textMode? 460 : 540);

const x = w95.state(
~~(0.5 * (w95.shell.display.width - width.now)),
Expand Down
7 changes: 7 additions & 0 deletions dosbox/content-ths.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ export default {
run: ["cls", "cleaner.exe"],
scaler: "fillerup",
},
"^/?pp/?$": {
title: "PP",
zip: "./content/pp/pp.zip",
persist: "/pp",
run: ["pp.exe"],
scaler: "fillerup",
},
"^/?quake/sw/?$": {
title: "Quake (shareware)",
zip: "./content/quake/shareware/quake.zip",
Expand Down
Binary file added dosbox/content/pp/pp.zip
Binary file not shown.
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,16 @@
w95.shell.run(heightmapGen);
},
}),
w95.widget.desktopIcon({
text: "FPU Bench",
icon: commandIcons.app32,
styleHints: [
w95.styleHint.shortcut,
],
onActivate() {
w95.shell.run(command({url: "/dosbox/#/pp/", textMode: true}), {singleInstance: true});
},
}),
],
});
w95.shell.boot();
Expand Down

0 comments on commit 5f64951

Please sign in to comment.