make retroarch logs log to web console instead of textbox
This commit is contained in:
parent
4498e9ffba
commit
2df70cce17
|
@ -124,15 +124,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12 form-group btn-group text-xs-center p-t-2">
|
|
||||||
<div class="card">
|
|
||||||
<div class="view overlay hm-white-slight" align="center">
|
|
||||||
<textarea id="output" rows="15"></textarea>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<p>For now, we recommend you use <a href="https://www.google.com/chrome/">Google Chrome</a> for the best possible performance.</p>
|
<p>For now, we recommend you use <a href="https://www.google.com/chrome/">Google Chrome</a> for the best possible performance.</p>
|
||||||
|
|
|
@ -268,24 +268,13 @@ var Module =
|
||||||
arguments: ["-v", "--menu"],
|
arguments: ["-v", "--menu"],
|
||||||
preRun: [],
|
preRun: [],
|
||||||
postRun: [],
|
postRun: [],
|
||||||
print: (function()
|
print: function(text)
|
||||||
{
|
{
|
||||||
var element = document.getElementById('output');
|
console.log(text);
|
||||||
element.value = ''; // clear browser cache
|
},
|
||||||
return function(text)
|
|
||||||
{
|
|
||||||
text = Array.prototype.slice.call(arguments).join(' ');
|
|
||||||
element.value += text + "\n";
|
|
||||||
element.scrollTop = 99999; // focus on bottom
|
|
||||||
};
|
|
||||||
})(),
|
|
||||||
|
|
||||||
printErr: function(text)
|
printErr: function(text)
|
||||||
{
|
{
|
||||||
var text = Array.prototype.slice.call(arguments).join(' ');
|
console.log(text);
|
||||||
var element = document.getElementById('output');
|
|
||||||
element.value += text + "\n";
|
|
||||||
element.scrollTop = 99999; // focus on bottom
|
|
||||||
},
|
},
|
||||||
canvas: document.getElementById('canvas'),
|
canvas: document.getElementById('canvas'),
|
||||||
totalDependencies: 0,
|
totalDependencies: 0,
|
||||||
|
|
Loading…
Reference in New Issue