A lot of things

This commit is contained in:
2026-06-16 16:21:43 +02:00
parent 4f9f6c63b3
commit 7e1e26f20b
126 changed files with 7917 additions and 204 deletions

View File

@@ -1,4 +1,4 @@
export function RomPatcher( initialPatches = {} ) {
export const RomPatcher = function( initialPatches = {} ) {
let patchesArray = [];
if (initialPatches) {
@@ -39,9 +39,9 @@ export function RomPatcher( initialPatches = {} ) {
patchesData: patchesArray,
hasEmbedded: patchesArray.length > 0,
init() {
init( config = {language: 'en', requireValidation: false} ) {
const CONFIG = {language: 'en', requireValidation: false};
const CONFIG = config;
if (!RomPatcherWeb.isInitialized()){
if (this.hasEmbedded) {
@@ -112,3 +112,7 @@ export function RomPatcher( initialPatches = {} ) {
}
}
}
window.RomPatcher = RomPatcher;