Skip to content

Commit

Permalink
emscripten: Remove output textarea
Browse files Browse the repository at this point in the history
This removes the output textarea as we're using the console now.
  • Loading branch information
RobLoach authored Jan 15, 2018
1 parent 09c49aa commit 2f62978
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions emscripten/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
<input type="textbox" id="latency" size="3" maxlength="3" value="96"> <label for="latency" id="latency-label">Audio latency (ms) (increase if you hear pops at fullspeed, can only be done before loading game)</label>
</div>

<hr/>
<textarea class="emscripten" id="output" rows="8"></textarea>
<hr>
<div class="emscripten" id="controls">
Controls:<br>
<br>
Expand Down Expand Up @@ -65,7 +62,7 @@
count = files.length;
document.getElementById("openrom").innerHTML = '';
document.getElementById("openrom").style.display = 'none';
for (var i = 0; i < files.length; i++)
for (var i = 0; i < files.length; i++)
{
filereader = new FileReader();
filereader.file_name = files[i].name;
Expand Down Expand Up @@ -103,40 +100,34 @@
Module.FS_createDataFile('/', name, dataView, true, false);
}

var Module =
var Module =
{
noInitialRun: true,
arguments: ["-v", "--menu"],
preRun: [],
postRun: [],
print: (function()
print: (function()
{
var element = document.getElementById('output');
element.value = ''; // clear browser cache
return function(text)
return function(text)
{
text = Array.prototype.slice.call(arguments).join(' ');
element.value += text + "\n";
element.scrollTop = 99999; // focus on bottom
console.log(text)
};
})(),

printErr: function(text)
{
var text = Array.prototype.slice.call(arguments).join(' ');
var element = document.getElementById('output');
element.value += text + "\n";
element.scrollTop = 99999; // focus on bottom
var errArgs = Array.prototype.slice.call(arguments).join(' ');
console.error(errArgs)
},
canvas: document.getElementById('canvas'),

totalDependencies: 0,
monitorRunDependencies: function(left)
monitorRunDependencies: function(left)
{
this.totalDependencies = Math.max(this.totalDependencies, left);
}
};

</script>
<script type="text/javascript" src="browserfs.js"></script>
<script type="text/javascript" src="gambatte.js"></script>
<script type="text/javascript" src="gambatte.js"></script>

0 comments on commit 2f62978

Please sign in to comment.