Skip to content

Commit

Permalink
Add 44GBASAV support
Browse files Browse the repository at this point in the history
  • Loading branch information
Thysbelon authored Aug 1, 2023
1 parent 3c92d69 commit a3521d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/gbaconv-web-frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function myClick(e){
// replace 4gs with srm
// replace whatever the file name is with "savedata", c can't handle paths with spaces !!!!
// emscripten can't write to any directory other than the mounted one !!!!
var filename=e.target.files[0].name.replace(/.*\.(.*)/, "data/savedata.$1").replace(".4gs", ".srm").replace(".4gz", ".srm")
var filename=e.target.files[0].name.replace(/.*\.(.*)/, "data/savedata.$1").replace(".4gs", ".srm").replace(".4gz", ".srm").replace(".44gbasav",".srm")
console.log(filename)
const reader=new FileReader();
reader.readAsArrayBuffer(e.target.files[0]);
Expand Down

1 comment on commit a3521d2

@Thysbelon
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

44gbasav is identical to srm and 4gs

Please sign in to comment.