Remove empty lines around braces with the formatting script
This commit is contained in:
@ -600,13 +600,11 @@ void DisplayServerJavaScript::process_joypads() {
|
||||
|
||||
#if 0
|
||||
bool DisplayServerJavaScript::is_joy_known(int p_device) {
|
||||
|
||||
return Input::get_singleton()->is_joy_mapped(p_device);
|
||||
}
|
||||
|
||||
|
||||
String DisplayServerJavaScript::get_joy_guid(int p_device) const {
|
||||
|
||||
return Input::get_singleton()->get_joy_guid_remapped(p_device);
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
var Preloader = /** @constructor */ function() {
|
||||
|
||||
var DOWNLOAD_ATTEMPTS_MAX = 4;
|
||||
var progressFunc = null;
|
||||
var lastProgress = { loaded: 0, total: 0 };
|
||||
@ -20,9 +19,7 @@ var Preloader = /** @constructor */ function() {
|
||||
}
|
||||
|
||||
function onXHREvent(resolve, reject, file, tracker, ev) {
|
||||
|
||||
if (this.status >= 400) {
|
||||
|
||||
if (this.status < 500 || ++tracker[file].attempts >= DOWNLOAD_ATTEMPTS_MAX) {
|
||||
reject(new Error("Failed loading file '" + file + "': " + this.statusText));
|
||||
this.abort();
|
||||
@ -103,7 +100,6 @@ var Preloader = /** @constructor */ function() {
|
||||
};
|
||||
|
||||
var animateProgress = function() {
|
||||
|
||||
var loaded = 0;
|
||||
var total = 0;
|
||||
var totalIsValid = true;
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
var Utils = {
|
||||
|
||||
createLocateRewrite: function(execName) {
|
||||
function rw(path) {
|
||||
if (path.endsWith('.worker.js')) {
|
||||
@ -38,7 +37,6 @@ var Utils = {
|
||||
},
|
||||
|
||||
isWebGLAvailable: function(majorVersion = 1) {
|
||||
|
||||
var testContext = false;
|
||||
try {
|
||||
var testCanvas = document.createElement('canvas');
|
||||
|
||||
@ -28,7 +28,6 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
class RingBuffer {
|
||||
|
||||
constructor(p_buffer, p_state) {
|
||||
this.buffer = p_buffer;
|
||||
this.avail = p_state;
|
||||
|
||||
@ -28,9 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
var GodotHTTPRequest = {
|
||||
|
||||
$GodotHTTPRequest: {
|
||||
|
||||
requests: [],
|
||||
|
||||
getUnusedRequestId: function() {
|
||||
|
||||
@ -29,7 +29,6 @@
|
||||
/*************************************************************************/
|
||||
|
||||
const GodotAudio = {
|
||||
|
||||
$GodotAudio__deps: ['$GodotOS'],
|
||||
$GodotAudio: {
|
||||
ctx: null,
|
||||
@ -182,7 +181,6 @@ mergeInto(LibraryManager.library, GodotAudio);
|
||||
* The AudioWorklet API driver, used when threads are available.
|
||||
*/
|
||||
const GodotAudioWorklet = {
|
||||
|
||||
$GodotAudioWorklet__deps: ['$GodotAudio'],
|
||||
$GodotAudioWorklet: {
|
||||
promise: null,
|
||||
@ -269,7 +267,6 @@ mergeInto(LibraryManager.library, GodotAudioWorklet);
|
||||
* The deprecated ScriptProcessorNode API, used when threads are disabled.
|
||||
*/
|
||||
const GodotAudioScript = {
|
||||
|
||||
$GodotAudioScript__deps: ['$GodotAudio'],
|
||||
$GodotAudioScript: {
|
||||
script: null,
|
||||
|
||||
@ -78,7 +78,6 @@ mergeInto(LibraryManager.library, GodotDisplayListeners);
|
||||
* deferred callbacks won't be able to access the files.
|
||||
*/
|
||||
const GodotDisplayDragDrop = {
|
||||
|
||||
$GodotDisplayDragDrop__deps: ['$FS', '$GodotFS'],
|
||||
$GodotDisplayDragDrop: {
|
||||
promises: [],
|
||||
|
||||
@ -29,7 +29,6 @@
|
||||
/*************************************************************************/
|
||||
|
||||
const GodotEditorTools = {
|
||||
|
||||
godot_js_editor_download_file__deps: ['$FS'],
|
||||
godot_js_editor_download_file: function(p_path, p_name, p_mime) {
|
||||
const path = UTF8ToString(p_path);
|
||||
|
||||
@ -29,7 +29,6 @@
|
||||
/*************************************************************************/
|
||||
|
||||
const GodotEval = {
|
||||
|
||||
godot_js_eval__deps: ['$GodotOS'],
|
||||
godot_js_eval: function(p_js, p_use_global_ctx, p_union_ptr, p_byte_arr, p_byte_arr_write, p_callback) {
|
||||
const js_code = UTF8ToString(p_js);
|
||||
@ -47,7 +46,6 @@ const GodotEval = {
|
||||
}
|
||||
|
||||
switch (typeof eval_ret) {
|
||||
|
||||
case 'boolean':
|
||||
setValue(p_union_ptr, eval_ret, 'i32');
|
||||
return 1; // BOOL
|
||||
|
||||
@ -53,7 +53,6 @@ autoAddDeps(IDHandler, "$IDHandler");
|
||||
mergeInto(LibraryManager.library, IDHandler);
|
||||
|
||||
const GodotConfig = {
|
||||
|
||||
$GodotConfig__postset: 'Module["initConfig"] = GodotConfig.init_config;',
|
||||
$GodotConfig: {
|
||||
canvas: null,
|
||||
@ -209,7 +208,6 @@ const GodotOS = {
|
||||
'GodotOS._fs_sync_promise = Promise.resolve();',
|
||||
].join(''),
|
||||
$GodotOS: {
|
||||
|
||||
request_quit: function() {},
|
||||
_async_cbs: [],
|
||||
_fs_sync_promise: null,
|
||||
|
||||
Reference in New Issue
Block a user