-
-
Notifications
You must be signed in to change notification settings - Fork 667
feat: playable Win3.x and Win9.x using js-dos #4061
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,8 @@ | |
| "deselect-save": "Desmarcar save", | ||
| "deselect-state": "Desmarcar estado", | ||
| "full-screen": "Tela cheia", | ||
| "jsdos-browser-save-warning": "Os saves do js-dos são armazenados apenas neste navegador e não são sincronizados com o RomM.", | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My language (albeit in pt-BR rather than pt-PT). Sensible translation 👍 |
||
| "jsdos-quit-without-saving": "Sair sem salvar o progresso recente?", | ||
| "no-save-selected": "Nenhum save selecionado", | ||
| "no-saves-available": "Nenhum save disponível", | ||
| "no-screenshot-available": "Nenhuma captura de tela disponível", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| export interface JsDosOptions { | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ddeliberately small subset of the official js-dos v8 types. Limited to the APIs RomM uses. |
||
| url: string; | ||
| backend: "dosbox" | "dosboxX"; | ||
| backendLocked: boolean; | ||
| pathPrefix: string; | ||
| autoStart: boolean; | ||
| autoSave: boolean; | ||
| fullScreen: boolean; | ||
| fsChanges: { | ||
| local: boolean; | ||
| urlToKey?: (url: string) => Promise<string>; | ||
| pull?: (key: string) => Promise<Uint8Array | null>; | ||
| push?: (key: string, data: Uint8Array) => Promise<void>; | ||
| delete?: (key: string) => Promise<void>; | ||
| }; | ||
| } | ||
|
|
||
| export interface JsDosProps { | ||
| getLocalChanges(key: string): Promise<Uint8Array | null>; | ||
| setNoCloud(noCloud: boolean): void; | ||
| save(): Promise<boolean>; | ||
| stop(): Promise<void>; | ||
| } | ||
|
|
||
| export type JsDosFactory = ( | ||
| element: HTMLDivElement, | ||
| options: Partial<JsDosOptions>, | ||
| ) => JsDosProps; | ||
|
|
||
| declare global { | ||
| interface Window { | ||
| Dos?: JsDosFactory; | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These translations were AI assisted. It was not required when I started the PR but now it is.