Skip to content

Commit

Permalink
https://github.com/antimatter15/ocrad.js/issues/54#issuecomment-97216…
Browse files Browse the repository at this point in the history
…8889
  • Loading branch information
horihiro authored Apr 25, 2024
1 parent 41daf0d commit 7c9ad4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ocrad.js
Original file line number Diff line number Diff line change
Expand Up @@ -96054,6 +96054,7 @@ run();

var ret;
if(opt.raw){
API.quitFS();
ret = API.read_text('/out.txt');
API.delete_file('/out.txt');
}else{
Expand All @@ -96080,6 +96081,7 @@ run();
API.read_file = function(filename){ return FS.readFile(filename, {encoding: 'binary'}) };
API.read_text = function(filename){ return FS.readFile(filename, {encoding: 'utf8'}) };
API.delete_file = function(filename){ return FS.unlink(filename) };
API.quitFS = function() { return FS.quit() };
API.version = Module.cwrap('OCRAD_version', 'string');
API.open = Module.cwrap('OCRAD_open', 'number');
API.close = Module.cwrap('OCRAD_close', 'number', ['number']);
Expand Down

0 comments on commit 7c9ad4e

Please sign in to comment.