다마고치 변경할 때 본체 색상도 선택하도록 추가
This commit is contained in:
1 parent
fda254aa35
commit
63fe0c8d41
35 files changed
+421
-188
No files matched your search
+16
-3
@@ -243,6 +243,8 @@ const T = {
|
||||
},
|
||||
};
|
||||
Object.assign(T.en, {
|
||||
petColorLabel:"Color", petColors:"Original|Red|Pink|Purple|Blue|Sky blue|Mint|Green|Yellow|Orange|Light pink|Lavender|Light blue|Light green|Cream|White|Gray",
|
||||
|
||||
"f1": "Open a ROM stored on your PC or read it from a connected device to edit it.",
|
||||
"g3t": "Region expansion",
|
||||
"g3": "Add regions and backgrounds and configure regional characters and lab games.",
|
||||
@@ -306,6 +308,8 @@ Object.assign(T.en, {
|
||||
"g4": "Switch regions, manage save slots, add items, set Tamapoints and change your Tamagotchi."
|
||||
});
|
||||
Object.assign(T.de, {
|
||||
petColorLabel:"Farbe", petColors:"Original|Rot|Rosa|Violett|Blau|Himmelblau|Mint|Grün|Gelb|Orange|Hellrosa|Lavendel|Hellblau|Hellgrün|Creme|Weiß|Grau",
|
||||
|
||||
"f1": "Ein gespeichertes ROM öffnen oder vom verbundenen Gerät lesen und bearbeiten.",
|
||||
"g3": "Regionen und Hintergründe ergänzen. Regionale Figuren und Laborspiele einstellen.",
|
||||
"g5": "ROM und Spielstände sichern. Das bearbeitete ROM auf das Gerät schreiben.",
|
||||
@@ -1118,7 +1122,9 @@ T.ko = {
|
||||
"nameLanguageLocked": "수정한 이름을 저장하거나 초기화한 뒤 다른 언어를 편집하세요.",
|
||||
"menuLanguageHint": "영어 메뉴는 EN을 선택하고 독일어 메뉴는 DE를 선택한 뒤 새 ROM을 저장하세요.",
|
||||
"languageFeatureTitle": "한국어·영어·독일어 메뉴",
|
||||
"languageFeature": "한국어·EN·DE 선택에 따라 편집 화면과 새로 만드는 A+C 메뉴의 언어가 바뀝니다."
|
||||
"languageFeature": "한국어·EN·DE 선택에 따라 편집 화면과 새로 만드는 A+C 메뉴의 언어가 바뀝니다.",
|
||||
"petColorLabel": "색상",
|
||||
"petColors": "기본색|빨강|분홍|보라|파랑|하늘색|민트|초록|노랑|주황|연분홍|연보라|연하늘|연두|크림|하양|회색"
|
||||
};
|
||||
T.en.menuKo="Create A+C cheat menu";
|
||||
T.de.menuKo="A+C-Cheatmenü erstellen";
|
||||
@@ -1327,6 +1333,7 @@ function applyLang() {
|
||||
{const chars=C.charTable(state.ctx.files[0]).filter(c=>c.id>1000&&c.id<9000);chars.forEach((c,i)=>state.charNames.set(state.ctx.groups[i+1],C.textGet(state.ctx.rom,c.name,lang)));}
|
||||
document.querySelectorAll('#gridFigs .tile').forEach((b) => { const g = +b.dataset.idx; b.querySelector('.cap span').textContent = [state.charNames.get(g), groupRole(g)].filter(Boolean).join(' '); });
|
||||
if (state.open) openDrawer(state.open.kind, state.open.idx);
|
||||
if(!$('petRow').hidden){const names=t('petColors').split('|');[...$('petColor').options].forEach((o,i)=>o.textContent=names[i]);petPreview();}
|
||||
}
|
||||
try { if (!dv.run) devRender(); $('memberLink').textContent=t(memberSix.ready?'vaultLink':'login'); if(!memberSix.ready)$('memberSixStatus').textContent=t('sixNeedLogin'); renderDeviceSix();
|
||||
for(const o of $('visEd').options){const entry=VIS_ED.find(x=>x[0]===o.value);o.textContent=lang==='ko'?({land:'랜드',water:'워터',sky:'스카이',jade:'제이드 포레스트',tropics:'트로피컬',glacier:'글레이셔'}[o.value]||entry[1]):entry[1];}
|
||||
@@ -4414,12 +4421,18 @@ function petOpen(save, name, fromRom) {
|
||||
}
|
||||
sel.appendChild(g);
|
||||
}
|
||||
$('petColor').innerHTML='';t('petColors').split('|').forEach((name,i)=>{const o=document.createElement('option');o.value=i-1;o.textContent=name;$('petColor').appendChild(o);});$('petColor').value=pet.color;petPreview();
|
||||
$('petStage').value='';$('petHunger').value=pet.hunger;$('petHappy').value=pet.happy;$('petHealth').value=pet.sick?'keep':'0';
|
||||
$('petCare').checked = false;
|
||||
$('petRow').hidden = false;
|
||||
$('petStat').textContent = t('petNow', { l: pet.level, c: cur || pet.id, h: pet.hunger, j: pet.happy, s: pet.sick ? t('petSick') : '' });
|
||||
}
|
||||
$('petStage').onchange=()=>{const stage=$('petStage').value;$('petChar').value='';[...$('petChar').options].forEach(o=>{o.hidden=!!stage&&!!o.value&&!o.value.endsWith(':'+stage);});};
|
||||
function petPreview(){
|
||||
if(!petSave)return;const pet=SV.paraPet(petSave,petSave.edition),selected=$('petChar').value,id=selected?Number(selected.split(':')[0]):pet.id,color=Number($('petColor').value),canvas=$('petPreview');
|
||||
const img=C.characterPortrait(state.ctx.rom,id,color,state.ctx,selected?null:SV.paraAppearance(petSave));canvas.width=img.w;canvas.height=img.h;canvas.getContext('2d').putImageData(new ImageData(img.data,img.w,img.h),0,0);canvas.setAttribute('aria-label',($('petChar').selectedOptions[0]?.textContent||'')+' '+$('petColor').selectedOptions[0].textContent);
|
||||
}
|
||||
$('petChar').onchange=petPreview;$('petColor').onchange=petPreview;
|
||||
$('petStage').onchange=()=>{const stage=$('petStage').value;$('petChar').value='';[...$('petChar').options].forEach(o=>{o.hidden=!!stage&&!!o.value&&!o.value.endsWith(':'+stage);});petPreview();};
|
||||
$('btnPetSave').onclick = () => {
|
||||
if (!petSave) return;
|
||||
const ed = petSave.edition, pet = SV.paraPet(petSave, ed), ch = {};
|
||||
@@ -4427,7 +4440,7 @@ $('btnPetSave').onclick = () => {
|
||||
const v = $('petChar').value; if (v) { const [id, st] = v.split(':').map(Number); ch.id = id; ch.stage = st; }
|
||||
for(const [key,id]of [['hunger','petHunger'],['happy','petHappy']]){const v=Number($(id).value);if(!$(id).checkValidity()){ $(id).reportValidity();return;}if(v!==pet[key])ch[key]=v;}
|
||||
if($('petHealth').value==='0' && pet.sick)ch.sick=0;
|
||||
if(ch.id)ch.ghost=C.characterGhost(state.ctx.rom,ch.id,state.ctx);
|
||||
const color=Number($('petColor').value);if(ch.id||color!==pet.color){ch.color=color;ch.ghost=C.characterGhost(state.ctx.rom,ch.id||pet.id,state.ctx,null,color);}
|
||||
if ($('petCare').checked) ch.care = true;
|
||||
if (!Object.keys(ch).length) { toast(t('petNothing')); return; }
|
||||
if (petFromRom) {
|
||||
|
||||
+27
-3
@@ -1171,7 +1171,30 @@ function charTable(dp) {
|
||||
// Native current-pet genes: nine names, two palettes, 54 five-layer frames and
|
||||
// large/small eye sprites. Header-only ID changes retain the previous pet's look.
|
||||
// Layout and checksum are checked against independent firmware-generated exports.
|
||||
function characterGhost(rom,id,ctx=null,texts=null){
|
||||
function characterColorTable(rom,ctx=null){
|
||||
ctx=ctx||openRom(rom);const e=ctx.entries[197],h=e&&spriteHeader(e);
|
||||
if(!h||h.numPal!==16||h.bpp!==2||h.palBpp!==17||h.palOffset+512>e.length)throw Error('Native character colors are unavailable');
|
||||
return Array.from({length:16},(_,i)=>e.slice(h.palOffset+32*i,h.palOffset+32*i+16));
|
||||
}
|
||||
function characterPortrait(rom,id,color=-1,ctx=null,genes=null){
|
||||
ctx=ctx||openRom(rom);if(!Number.isInteger(color)||color< -1||color>15)throw Error('Invalid character color');
|
||||
const all=charTable(ctx.files[0]).filter(c=>c.id>1000&&c.id<9000),g=ctx.groups[all.findIndex(c=>c.id===id)+1];
|
||||
if(g===undefined)throw Error('Character sprites are missing');
|
||||
const pose=faceFirst(ctx.files[0],g,g+1,g+2),dec=spriteDecode(ctx.entries[g]),base=dec.subs[pose.bs];
|
||||
const img={w:base.w,h:base.h,data:new Uint8ClampedArray(base.w*base.h*4),mask:new Uint8Array(base.w*base.h).fill(15)};
|
||||
const colors=color<0?null:characterColorTable(rom,ctx)[color];
|
||||
const paint=(d,sub,dx,dy,recolor)=>{const part=d.subs[sub],h=d.header,iw=Math.max(1,h.iw),ih=Math.max(1,h.ih);
|
||||
for(let y=0;y<part.h;y++)for(let x=0;x<part.w;x++){const xx=x+dx,yy=y+dy,k=(y*part.w+x)*4;if(xx<0||yy<0||xx>=img.w||yy>=img.h||!part.data[k+3])continue;
|
||||
const o=(yy*img.w+xx)*4,index=d.cells[sub*iw*ih+Math.floor(y/h.sh)*iw+Math.floor(x/h.sw)][(y%h.sh)*h.sw+x%h.sw];
|
||||
img.data.set(part.data.subarray(k,k+4),o);img.mask[o/4]=recolor&&d.palettes&&index<8?index:15;
|
||||
if(colors&&img.mask[o/4]<8)img.data.set(rgb565ToRgb(u16(colors,index*2)),o);
|
||||
}};
|
||||
// Eyes use their own palette. Only body and mouth indexes 0..7 are recolored.
|
||||
paint(dec,pose.bs,0,0,true);for(const[j,v]of[[1,pose.eye],[2,pose.mouth]])if(v){let entry=ctx.entries[g+j];if(j===1&&genes){const off=u32(genes,0x118),len=u32(genes,0x11c);if(off&&len&&off+len<=genes.length)entry=genes.subarray(off,off+len);}const d=spriteDecode(entry),p=d.subs[v.sub];if(!p)throw Error('Character eye frame is unavailable');paint(d,v.sub,(img.w-p.w)/2+v.dx,(img.h-p.h)/2+v.dy,j===2);}
|
||||
return img;
|
||||
}
|
||||
function characterGhost(rom,id,ctx=null,texts=null,color=-1){
|
||||
if(!Number.isInteger(color)||color< -1||color>15)throw Error('Invalid character color');
|
||||
ctx=ctx||openRom(rom);texts=texts||textTablesOf(rom);const dp=ctx.files[0],table=i=>u32(dp,i*4)*2;
|
||||
let rec=null;for(let o=table(11);o<table(12);o+=30)if(u16(dp,o)===id){rec=Array.from({length:15},(_,k)=>u16(dp,o+2*k));break;}
|
||||
if(!rec)throw Error('Character definition is missing');
|
||||
@@ -1180,10 +1203,11 @@ function characterGhost(rom,id,ctx=null,texts=null){
|
||||
const eye=ctx.entries[body+1],small=ctx.entries[body+4],align=n=>(n+3)&~3;
|
||||
const out=new Uint8Array(0x1d34+align(eye.length)+align(small.length));
|
||||
if(out.length>0x4000)throw Error('Character genes exceed the native slot');
|
||||
w32(out,8,1);w16(out,12,4017);w16(out,14,id);out[16]=Math.min(15,rec[14]);
|
||||
w32(out,8,1);w16(out,12,4017);w16(out,14,id);out[16]=color<0?Math.min(15,rec[14]):color;
|
||||
w16(out,0xfc,rec[3]);w16(out,0xfe,rec[5]);w16(out,0x100,rec[7]);w16(out,0x102,rec[8]);w16(out,0x10a,id);w32(out,0x10c,out.length);
|
||||
for(let lang=0;lang<9;lang++){const t=texts.tabs[lang],index=rec[2]+1;if(!t||index>=t.n)throw Error('Native name table is missing');const start=t.offs[index]*2,end=index+1<t.n?t.offs[index+1]*2:t.b.length;let n=0;for(let i=start;i+1<end&&n<12;i+=2){const c=u16(t.b,i);if(c===0||c===0xf000)break;w16(out,18+26*lang+2*n++,c);}}
|
||||
for(const[k,g]of[[0,body],[1,body+2]]){const e=ctx.entries[g],h=spriteHeader(e);out.set(e.subarray(h.palOffset,h.palOffset+32),0x140+32*k);}
|
||||
if(color>=0){const palette=characterColorTable(rom,ctx)[color];out.set(palette,0x140);out.set(palette,0x160);}
|
||||
const types=[0,1,15,16,17],map=[1,2,6,7,4,3,5,8,9,10,0];
|
||||
for(let f=0;f<54;f++){const row=table(18)+4*(rec[1]*54+f),first=u16(dp,row),count=u16(dp,row+2);if(first===65535)continue;if(count>32)throw Error('Invalid character frame');
|
||||
for(let j=0;j<count;j++){let pos=table(15)+u32(dp,table(16)+4*(first+j))*2,mask=u16(dp,pos);pos+=2;const v=[0,0,0,4096,0,64,0,0,0,0,0];for(let bit=0;bit<11;bit++)if(mask&(1<<bit)){v[map[bit]]=u16(dp,pos);pos+=2;}const ti=types.indexOf(v[10]);if(ti<0)continue;if(ti<3&&v[0])v[0]-=body;for(let k=0;k<11;k++)w16(out,0x600+(f*5+ti)*22+2*k,v[k]&65535);}
|
||||
@@ -1324,7 +1348,7 @@ function nativePetNames(out,edition,names,language){
|
||||
return out;
|
||||
}
|
||||
|
||||
root.ParamixCore = { characterGhost, koreanPetNames, paraLayers, faceFirst, facePoses, layersMove, EYE_V2, smaDetect, smaLoad, eyeFirst, eyeRelGet, shiftEyes, textClean, textGet, textApply, textTablesOf, TXT_ENC, DE_ENC, KO_CHARS, KO_ENC,
|
||||
root.ParamixCore = { characterColorTable, characterPortrait, characterGhost, koreanPetNames, paraLayers, faceFirst, facePoses, layersMove, EYE_V2, smaDetect, smaLoad, eyeFirst, eyeRelGet, shiftEyes, textClean, textGet, textApply, textTablesOf, TXT_ENC, DE_ENC, KO_CHARS, KO_ENC,
|
||||
fieldSets, charTable, FIELD_NAMES,
|
||||
ASSET_BASE, EDITIONS, GROUP_PARTS, GROUP_SHEET_W, GROUP_SHEET_H,
|
||||
arc2Parse, arc2Files, arc2Build, arc2Checksum, packSplit, packJoin, spriteHeader, spriteDecode, spriteEncode, spriteBlank, spriteTiny, spriteAlign, partOptions, launcherKeep, launcherChanges, isLauncher,
|
||||
|
||||
+9
-14
@@ -572,12 +572,11 @@ function charCatalog(d, P, language='en', pictures=false) {
|
||||
if (!C) return [];
|
||||
let ctx; try { ctx = C.openRom(d); } catch (e) { return []; }
|
||||
const tt = textTabelle(d), out = [], ghostTexts=pictures?C.textTablesOf(d):null;
|
||||
const all=C.charTable(ctx.files[0]).filter(c=>c.id>1000&&c.id<9000);
|
||||
for (const c of C.charTable(ctx.files[0])) {
|
||||
if (c.id < 1001 || c.id > 4999 || c.stage < 2 || c.stage > 5) continue;
|
||||
const nm = (language==='ko'||language==='de' ? C.textGet(d,c.name,language) : tt >= 0 ? zeichenkette(d,tt,c.name) : '') || ('NO. ' + c.id);
|
||||
const fi = P.names.indexOf(TYPE_NAMES[c.field]);
|
||||
out.push({ id: c.id, fixed: 2, pic: 0, sum: (c.stage & 255) | ((fi + 1) << 8), at: null, ghost:pictures?C.characterGhost(d,c.id,ctx,ghostTexts):null, nativeName:C.textGet(d,c.name,language), thumbnail:pictures?portrait(C,ctx,ctx.groups[all.findIndex(v=>v.id===c.id)+1]):null, name: nm.replace(/\s+/g, ' ') });
|
||||
out.push({ id: c.id, fixed: 2, pic: 0, sum: (c.stage & 255) | ((fi + 1) << 8), at: null, ghost:pictures?C.characterGhost(d,c.id,ctx,ghostTexts):null, nativeName:C.textGet(d,c.name,language), thumbnail:pictures?portrait(C,ctx,c.id):null, name: nm.replace(/\s+/g, ' ') });
|
||||
}
|
||||
return out;
|
||||
}
|
||||
@@ -593,16 +592,12 @@ function characters(d, language='en') {
|
||||
* reads the picture straight from there (no lookup in the ROM's image table).
|
||||
*/
|
||||
const EXT_MAGIC = 0x54584550;
|
||||
function portrait(C,ctx,g){
|
||||
if(g===undefined)return null;
|
||||
try{const pose=C.faceFirst(ctx.files[0],g,g+1,g+2);if(!pose)return null;
|
||||
const body=C.spriteDecode(ctx.entries[g]).subs[pose.bs];const img={w:body.w,h:body.h,data:new Uint8ClampedArray(body.data)};
|
||||
for(const [j,v]of [[1,pose.eye],[2,pose.mouth]]){if(!v)continue;const part=C.spriteDecode(ctx.entries[g+j]).subs[v.sub];const x=(body.w-part.w)/2+v.dx,y=(body.h-part.h)/2+v.dy;for(let py=0;py<part.h;py++)for(let px=0;px<part.w;px++){const xx=px+x,yy=py+y;if(xx<0||yy<0||xx>=img.w||yy>=img.h)continue;const k=(py*part.w+px)*4;if(part.data[k+3])img.data.set(part.data.subarray(k,k+4),(yy*img.w+xx)*4);}}
|
||||
// Keep every original pixel. KPT1 stores dimensions so old 32px catalogs remain readable.
|
||||
function portrait(C,ctx,id){
|
||||
const img=C.characterPortrait(ctx.rom,id,-1,ctx),count=img.w*img.h;
|
||||
if(img.w>64||img.h>64)throw Error('Character portrait exceeds native canvas');
|
||||
const out=new Uint8Array(8+img.w*img.h*2);w32(out,0,0x3154504b);w16(out,4,img.w);w16(out,6,img.h);
|
||||
for(let y=0;y<img.h;y++)for(let x=0;x<img.w;x++){const i=(y*img.w+x)*4;const c=img.data[i+3]?((img.data[i]>>3)<<11)|((img.data[i+1]>>2)<<5)|(img.data[i+2]>>3):0xF81F;w16(out,8+(y*img.w+x)*2,c);}return out;
|
||||
}catch(e){return null;}
|
||||
const out=new Uint8Array(12+count*2+Math.ceil(count/2));w32(out,0,0x3154504b);w16(out,4,img.w);w16(out,6,img.h);
|
||||
for(let p=0;p<count;p++){const i=p*4,c=img.data[i+3]?((img.data[i]>>3)<<11)|((img.data[i+1]>>2)<<5)|(img.data[i+2]>>3):0xf81f;w16(out,8+p*2,c);out[12+count*2+(p>>1)]|=img.mask[p]<<((p&1)*4);}
|
||||
w32(out,8+count*2,0x314b534d);return out;
|
||||
}
|
||||
function nativeMenuFont(rom){
|
||||
const M=globalThis.ParamixKoreanMenu,C=globalThis.ParamixCore,font=M.font();
|
||||
@@ -625,10 +620,10 @@ function catalogBlob(cat, korean=false, rom=null, englishPictures=false, german=
|
||||
const font=korean ? nativeMenuFont(rom) : new Uint8Array(englishPictures?8:0);
|
||||
if(englishPictures){w32(font,0,0x31545045);}
|
||||
const encoded=cat.map(c=>korean?globalThis.ParamixKoreanMenu.encode(c.name||('항목 '+c.id),60):(german?(c.name||('NR. '+c.id)):c.name).slice(0,german?60:20));
|
||||
const base=x+4+12*cat.length+font.length, tails=korean||englishPictures?26*cat.length+4*cat.length+8+4*cat.length+cat.reduce((n,c)=>n+(c.ghost?.length||0),0)+cat.reduce((n,c)=>n+(c.thumbnail?.length||0),0)+(korean||german?encoded.reduce((n,c)=>n+c.length+1,0):0):0;
|
||||
const base=x+4+12*cat.length+font.length, tails=korean||englishPictures?26*cat.length+4*cat.length+8+4*cat.length+260+cat.reduce((n,c)=>n+(c.ghost?.length||0),0)+cat.reduce((n,c)=>n+(c.thumbnail?.length||0),0)+(korean||german?encoded.reduce((n,c)=>n+c.length+1,0):0):0;
|
||||
const b = new Uint8Array(base+tails);
|
||||
const nameOffsets=[];
|
||||
if(korean||englishPictures){const gp=base+30*cat.length;w32(b,gp,0x314b5047);w32(b,gp+4,cat.length);let pos=gp+8+4*cat.length;cat.forEach((c,i)=>{
|
||||
if(korean||englishPictures){const gp=base+30*cat.length;w32(b,gp,0x314b5047);w32(b,gp+4,cat.length);let pos=gp+8+4*cat.length;w32(b,pos,0x314b5043);if(cat.some(c=>c.ghost))globalThis.ParamixCore.characterColorTable(rom).forEach((p,i)=>b.set(p,pos+4+i*16));pos+=260;cat.forEach((c,i)=>{
|
||||
if(c.ghost){w32(b,gp+8+4*i,pos);b.set(c.ghost,pos);pos+=c.ghost.length;}
|
||||
[...(c.nativeName||c.name)].slice(0,12).forEach((ch,j)=>w16(b,base+i*26+j*2,(german?globalThis.ParamixCore.DE_ENC:globalThis.ParamixCore.TXT_ENC)[ch]??globalThis.ParamixCore.KO_ENC[ch]??0));
|
||||
if(c.thumbnail){w32(b,base+26*cat.length+i*4,pos);b.set(c.thumbnail,pos);pos+=c.thumbnail.length;}
|
||||
@@ -678,7 +673,7 @@ function feldStrip(rom, emb, E) {
|
||||
if(out[last+3]!==255 || ptr<end || ptr+61>out.length)throw Error('한글 이름 자료의 위치가 올바르지 않습니다.');
|
||||
end=ptr;while(end<ptr+61&&out[end])end++;
|
||||
if(end===ptr+61)throw Error('한글 이름 자료가 손상되었습니다.');end++;
|
||||
}
|
||||
}else if(u32(out,end)===0x314b5047&&u32(out,end+4)===0){end+=8;if(u32(out,end)===0x314b5043)end+=260;}
|
||||
out.fill(255,f.catOff,page(end));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -643,6 +643,8 @@ html:not([data-feature-consoles="on"]) [data-feature="consoles"]{display:none!im
|
||||
<label><span data-t="petLevel"></span> <select id="petLevel"></select></label>
|
||||
<label><span data-t="petStageLabel">성장 단계 </span><select id="petStage"><option value="" data-t="petStageAll">전체</option><option value="3" data-t="petStageBaby">유아기</option><option value="4" data-t="petStageYoung">성장기</option><option value="5" data-t="petStageAdult">성체</option></select></label>
|
||||
<label><span data-t="petChar"></span> <select id="petChar"></select></label>
|
||||
<label><span data-t="petColorLabel">색상</span> <select id="petColor"></select></label>
|
||||
<canvas id="petPreview" width="64" height="64" style="width:128px;height:128px;image-rendering:pixelated;border:1px solid #cbdbea;border-radius:12px;background:#fff" role="img" aria-label="다마고치 미리보기"></canvas>
|
||||
<label><span data-t="petHungerLabel">배부름 </span><input id="petHunger" required type="number" min="0" max="6" style="width:65px"></label>
|
||||
<label><span data-t="petHappyLabel">행복 </span><input id="petHappy" required type="number" min="0" max="20" style="width:65px"></label>
|
||||
<label><span data-t="petHealthLabel">건강 </span><select id="petHealth"><option value="0" data-t="petHealthy">건강함</option><option value="keep" data-t="petHealthKeep">기존 상태 유지</option></select></label>
|
||||
|
||||
@@ -753,3 +753,5 @@ nameLanguageLocked 수정한 이름을 저장하거나 초기화한 뒤 다른
|
||||
menuLanguageHint 영어 메뉴는 EN을 선택하고 독일어 메뉴는 DE를 선택한 뒤 새 ROM을 저장하세요.
|
||||
languageFeatureTitle 한국어·영어·독일어 메뉴
|
||||
languageFeature 한국어·EN·DE 선택에 따라 편집 화면과 새로 만드는 A+C 메뉴의 언어가 바뀝니다.
|
||||
petColorLabel 색상
|
||||
petColors 기본색|빨강|분홍|보라|파랑|하늘색|민트|초록|노랑|주황|연분홍|연보라|연하늘|연두|크림|하양|회색
|
||||
|
+1
-1
@@ -1,6 +1,6 @@
|
||||
// Generated Galmuri9 native Korean font. See third-party/Galmuri-OFL.txt.
|
||||
(function(root){
|
||||
const fixed="·가간감값강개거건게경계고과관그글금기까꺼끄끔난남뉴는늘니다단대더데도돌동되됨됩뒤드득때램량러레력로록료류름리릭마메면목미방배벨변보복본봄부분불비사삭상새서선설성세셔소손수숫숲습시식실아않알았어업없었에역열예오옵완요용운원유육으을음의이인읽임입있자작잠장재저적전절정제조존중지짐집참체초최추취치캐컬코크타택터템통트패편포품프플픔피하한할함합행현형화확환회후휠", native="가각간갇갈갉갊감갑값갓갔강갖갗같갚갛개객갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫났낭낮낯낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫달닭닮닯닳담답닷닸당닺닻닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많맏말맑맒맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바박밖밗반받발밝밞밟밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤샥샨샬샴샵샷샹섀섄섈섐섕서석섞섟선섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄업없엇었엉엊엌엎에엑엔엘엠엡엣엥여역엮연열엶엷염엽엾엿였영옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕Line truncated
|
||||
const fixed="·가간감값강개거건게경계고과관그글금기까꺼끄끔난남노뉴는늘니다단대더데도돌동되됨됩두뒤드득때라랑램량러레력로록료류름리릭림마메면목미민방배벨변보복본봄부분불비빨사삭상새색서선설성세셔소손수숫숲습시식실아않알았양어업없었에역연열예오옵완요용운원유육으을음의이인읽임입있자작잠장재저적전절정제조존주중지짐집참체초최추취치캐컬코크타택터템통트파패편포품프플픔피하한할함합행현형홍화확환황회후휠", native="가각간갇갈갉갊감갑값갓갔강갖갗같갚갛개객갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫났낭낮낯낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫달닭닮닯닳담답닷닸당닺닻닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많맏말맑맒맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바박밖밗반받발밝밞밟밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤샥샨샬샴샵샷샹섀섄섈섐섕서석섞섟선섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄업없엇었엉엊엌엎에엑엔엘엠엡엣엥여역엮연열엶엷염엽엾엿였영옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝Line truncated
|
||||
function encode(s,max=255){let out='';for(const c of s){let v=c;if(c.charCodeAt(0)>127){let n=fixed.indexOf(c);if(n<0){let k=native.indexOf(c);if(k<0)throw Error('본체 메뉴에서 지원하지 않는 문자: '+c);n=fixed.length+k;}v=String.fromCharCode(128+(n>>7),128+(n&127));}if(out.length+v.length>max)break;out+=v;}return out;}
|
||||
function font(){return typeof Buffer!=='undefined'?new Uint8Array(Buffer.from(data,'base64')):Uint8Array.from(atob(data),c=>c.charCodeAt(0));}
|
||||
root.ParamixKoreanMenu={encode,font,fixed,native};
|
||||
|
||||
+22
-7
@@ -144,33 +144,48 @@ function paraSettings(save) { for (const a of [SET_A, SET_B]) { const p = save.p
|
||||
function paraPet(save, edition) {
|
||||
const p = paraSettings(save), o = PET[family(edition)]; if (!p || !o) return null;
|
||||
const t = o.tama;
|
||||
return { level: p[o.level] & 15, id: u16(p, t + 4), stage: (p[t + 0x18] >> 2) & 7, hunger: p[t + 0x1C], happy: p[t + 0x1D], sick: p[t + 0x10] };
|
||||
const color=p[t+0x19]&31;
|
||||
return { level: p[o.level] & 15, id: u16(p, t + 4), stage: (p[t + 0x18] >> 2) & 7, color:color<16?color:-1, hunger: p[t + 0x1C], happy: p[t + 0x1D], sick: p[t + 0x10] };
|
||||
}
|
||||
/**
|
||||
* Changed copy of the save. A character change requires the complete native genes
|
||||
* package from the ROM. Only the current pet's slot is replaced; friends are preserved.
|
||||
*/
|
||||
function paraAppearance(save){
|
||||
const old=paraPet(save,save.edition)?.id;
|
||||
for(const[a,p]of [...save.pages].sort((a,b)=>a[0]-b[0])){
|
||||
const n=u32(p,0x10c);if(u32(p,8)!==1||u16(p,12)!==4017||u16(p,0x10a)!==old||n<0x1d34||n>0x4000||u32(p,0x118)!==0x1d34)continue;
|
||||
const b=new Uint8Array(0x4000);for(let i=0;i<0x4000;i+=PAGE){if(!save.pages.has(a+i))return null;b.set(save.pages.get(a+i),i);}return b.slice(0,n);
|
||||
}return null;
|
||||
}
|
||||
function paraPetSet(save, edition, ch) {
|
||||
const p0 = paraSettings(save), o = PET[family(edition)];
|
||||
if (!p0 || !o) throw new Error('the save has no settings block');
|
||||
const t = o.tama, p = p0.slice(), pages = new Map(save.pages);
|
||||
const old = u16(p, t + 4);
|
||||
if (ch.level !== undefined) { const v = Math.max(0, Math.min(10, ch.level | 0)), now = p[o.level] & 15; p[o.level] = v > now ? (p[o.level] & 0xF0) | v : (v << 4) | v; }
|
||||
if (ch.id) {
|
||||
p[t + 4] = ch.id & 255; p[t + 5] = ch.id >> 8; p[t + 6] = ch.id & 255; p[t + 7] = ch.id >> 8;
|
||||
if (ch.id || ch.color!==undefined) {
|
||||
const target=ch.id||old,color=ch.color??-1;
|
||||
if(!Number.isInteger(color)||color< -1||color>15)throw Error('Invalid character color');
|
||||
if(ch.id){p[t + 4] = ch.id & 255; p[t + 5] = ch.id >> 8; p[t + 6] = ch.id & 255; p[t + 7] = ch.id >> 8;}
|
||||
if (ch.stage) p[t + 0x18] = (p[t + 0x18] & ~0x1C) | ((ch.stage & 7) << 2);
|
||||
const ghost=ch.ghost;
|
||||
if(!(ghost instanceof Uint8Array)||ghost.length<0x1d34||ghost.length>0x4000||u32(ghost,8)!==1||u16(ghost,0x10a)!==ch.id||u32(ghost,0x10c)!==ghost.length||((u32(ghost,0)+u32(ghost,4))>>>0)!==0)throw Error('Character appearance data is missing or invalid');
|
||||
let ghost=ch.ghost;
|
||||
if(!(ghost instanceof Uint8Array)||ghost.length<0x1d34||ghost.length>0x4000||u32(ghost,8)!==1||u16(ghost,0x10a)!==target||u32(ghost,0x10c)!==ghost.length||((u32(ghost,0)+u32(ghost,4))>>>0)!==0||(color>=0&&ghost[16]!==color))throw Error('Character appearance data is missing or invalid');
|
||||
let found=false;
|
||||
for(const [a,d] of [...save.pages].sort((a,b)=>a[0]-b[0])){
|
||||
if(a===SET_A||a===SET_B||d.length!==PAGE||u32(d,8)!==1||u16(d,12)!==4017||((u32(d,0)+u32(d,4))>>>0)!==0)continue;
|
||||
const n=u32(d,0x10c);if(n<0x1d34||n>0x4000||u32(d,0x118)!==0x1d34)continue;
|
||||
if(u16(d,0x10a)!==old&&u16(d,14)!==old)throw Error('Current character genes do not match this save');
|
||||
if(!ch.id){
|
||||
const current=new Uint8Array(0x4000);for(let i=0;i<0x4000;i+=PAGE){const pg=save.pages.get(a+i);if(!pg)throw Error('Current character slot is incomplete');current.set(pg,i);}
|
||||
const next=current.slice(0,n);next[16]=ghost[16];next.set(ghost.subarray(0x140,0x180),0x140);ghost=next;
|
||||
let sum=0;for(let i=8;i<0x180;i+=4)sum=(sum+u32(ghost,i))>>>0;for(let i=0x600;i<ghost.length;i+=4)sum=(sum+u32(ghost,i))>>>0;w32(ghost,0,sum);w32(ghost,4,-sum>>>0);
|
||||
}
|
||||
for(let i=0;i<0x4000;i+=PAGE){if(a+i>=SET_A||!save.pages.has(a+i))throw Error('Current character slot is incomplete');const pg=new Uint8Array(PAGE);pg.fill(255);pg.set(ghost.subarray(i,i+PAGE));pages.set(a+i,pg);}
|
||||
found=true;break;
|
||||
}
|
||||
if(!found)throw Error('Current character appearance data was not found');
|
||||
p[t+0x19]=(p[t+0x19]&0xe0)|31;
|
||||
p[t+0x19]=(p[t+0x19]&0xe0)|(color<0?31:color);
|
||||
|
||||
}
|
||||
for(const [key,off,max]of [['hunger',0x1C,6],['happy',0x1D,20],['sick',0x10,1]]){
|
||||
@@ -327,6 +342,6 @@ function keepEdits(base, edition, names, changes, expectedId, progress) {
|
||||
return {...result,image:out,protectedSectors:result.protectedSectors.filter(a=>!updated.has(a))};
|
||||
};
|
||||
}
|
||||
root.ParamixSaves = { keepEdits, paraPet, paraPetSet, paraWrite, t7SaveOut, t7SaveIn, t7SaveCheck, T7_EE, idPage, region, family, settingsOk, crc16arc, paraFromImage, paraEncode, paraDecode, paraCheck, paraClock, emuCfg, emuGuestAsync, lzGoneApply, KINDS };
|
||||
root.ParamixSaves = { paraAppearance, keepEdits, paraPet, paraPetSet, paraWrite, t7SaveOut, t7SaveIn, t7SaveCheck, T7_EE, idPage, region, family, settingsOk, crc16arc, paraFromImage, paraEncode, paraDecode, paraCheck, paraClock, emuCfg, emuGuestAsync, lzGoneApply, KINDS };
|
||||
if (typeof module !== 'undefined') module.exports = root.ParamixSaves;
|
||||
})(typeof window !== 'undefined' ? window : globalThis);
|
||||
Reference in new issue
Block a user