From fcbf63e62c627deae76c1b8cb8c0876c536ed811 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 16 Mar 2020 18:49:26 +0900 Subject: Fresh start --- support/mplus-1c-regular.ttf | Bin 0 -> 1747496 bytes support/mv-overlay.sh | 3 +++ support/mv-overlay/js/main.js | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 support/mplus-1c-regular.ttf create mode 100644 support/mv-overlay.sh create mode 100644 support/mv-overlay/js/main.js (limited to 'support') diff --git a/support/mplus-1c-regular.ttf b/support/mplus-1c-regular.ttf new file mode 100644 index 0000000..d294492 Binary files /dev/null and b/support/mplus-1c-regular.ttf differ diff --git a/support/mv-overlay.sh b/support/mv-overlay.sh new file mode 100644 index 0000000..7ec31f5 --- /dev/null +++ b/support/mv-overlay.sh @@ -0,0 +1,3 @@ +#!/bin/sh +(cd support/mv-overlay; zip -r mv-overlay.zip js) +mv support/mv-overlay/mv-overlay.zip assets/ diff --git a/support/mv-overlay/js/main.js b/support/mv-overlay/js/main.js new file mode 100644 index 0000000..56925cd --- /dev/null +++ b/support/mv-overlay/js/main.js @@ -0,0 +1,20 @@ +var __RMV_OVERRIDE = [ + { dst: Utils, src: { + // Some plugins break this method with a bad implementation + // Such implementations may cause webgl to not work anymore + // Returning false for any input + isOptionValid: Utils.isOptionValid, + // The main loop used for Safari works better + isMobileSafari: () => true, + }}, + { dst: SceneManager, src: { + // MV really doesn't want to use WebGL on mobile for some reason + // Well at least recent androids should be fine + shouldUseCanvasRenderer: () => false, + }}, +] +PluginManager.setup($plugins); +window.onload = function() { + __RMV_OVERRIDE.forEach(o => Object.assign(o.dst, o.src)); + SceneManager.run(Scene_Boot); +}; -- cgit v1.2.3