Skip to content

Commit

Permalink
clean ups
Browse files Browse the repository at this point in the history
  • Loading branch information
chinonso098 committed Oct 21, 2023
1 parent 39bc09c commit bcb7a4a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/app/system-apps/filemanager/filemanager.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class FilemanagerComponent implements OnInit, AfterViewInit, OnDestroy {
if(filePaths != null || filePaths != undefined){
for(const filePath of filePaths){
//console.log('revoking url:',filePath.getIcon); //TBD
//URL.revokeObjectURL(filePath.getIcon);
URL.revokeObjectURL(filePath.getIcon);
}
}
}, 5000);
Expand Down
2 changes: 1 addition & 1 deletion src/app/user-apps/jsdos/jsdos.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@

<cos-window [runningProcessID]="this.processId">

<div #doswindow class="canvas" style="height:640px; width:480px; position: relative;" ></div>
<div #doswindow class="canvas" style="height:800px; width:600px; position: relative;" ></div>

</cos-window>
28 changes: 10 additions & 18 deletions src/app/user-apps/jsdos/jsdos.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,16 @@ export class JsdosComponent implements BaseComponent, OnInit, OnDestroy, AfterVi
setTimeout( async () => {

emulators.pathPrefix= '/';
console.log('fileInfo in Js-DOS:',this._fileInfo) //TBD

// eslint-disable-next-line prefer-const
let data = await this._fileService.getFileAsync(this._fileInfo.getDataPath);
//let data = await this._fileService.getFileAsync('/osdrive/games/data/3d_duke.jsdos');
//console.log('data:',data) //TBD



this._ci = await Dos(this.dosWindow.nativeElement, this.dosOptions).run(data);
}, 3000);

// const data = await this._fileService.getFileAsync('/osdrive/games/data/3d_duke.jsdos');
// const ci = await Dos(this.dosWindow.nativeElement, this.dosOptions).run(data);
// Revoke url
// setTimeout(()=> {
// URL.revokeObjectURL('/osdrive/games/data/3d_duke.jsdos');
// }, 5000);
//console.log('fileInfo in Js-DOS:',this._fileInfo) //TBD
//let data = await this._fileService.getFileAsync('/osdrive/games/data/3d_duke.jsdos');

const data = await this._fileService.getFileAsync(this._fileInfo.getDataPath);
this._ci = await Dos(this.dosWindow.nativeElement, this.dosOptions).run(data);

URL.revokeObjectURL(this._fileInfo.getDataPath);

}, 1500);

}


Expand Down

0 comments on commit bcb7a4a

Please sign in to comment.