summaryrefslogtreecommitdiff
path: root/support/mv-overlay/js/main.js
blob: 56925cd078d84a2e0710416555d1a00e2de9c454 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
};