[crosscode] upgrade the "btw I use Arch" mod to ccloader 3

This commit is contained in:
Dmytro Meleshko 2020-07-24 14:33:04 +03:00
parent 3898112521
commit 4e42db45d6
3 changed files with 7 additions and 13 deletions

View file

@ -0,0 +1,7 @@
{
"id": "btw-i-use-arch",
"title": "btw I use Arch",
"version": "0.0.0",
"description": "A mod for masochists like myself",
"prestart": "prestart.js"
}

View file

@ -1,7 +0,0 @@
{
"name": "btw I use Arch",
"version": "0.0.0",
"description": "A mod for masochists like myself",
"prestart": "prestart.js",
"preload": "preload.js"
}

View file

@ -1,6 +0,0 @@
// I know that this is legacy feature provided by CCLoader way back when mods
// weren't executed inside the game iframe's context, but it is useful
// nevertheless because console in Chrome's devtools automatically selects
// window.top as the execution context by default, so writing `cc.` is faster
// than `modloader.frame.contentWindow`
window.top.cc = window;