Spaces:
Running
Running
Download app-extra.js from mg696/pmx-vmd-sync-player: direct link, hf CLI and curl.
- Browser
- Download file 20.3 kB
-
https://huggingface.co/spaces/mg696/pmx-vmd-sync-player/resolve/main/app-extra.js
- Command line
-
hf download hf://spaces/mg696/pmx-vmd-sync-player/app-extra.js
-
curl -L -o app-extra.js https://huggingface.co/spaces/mg696/pmx-vmd-sync-player/resolve/main/app-extra.js
20.3 kB
| // app-extra.js v117 RESTORE v112 GUARD RUNTIME | |
| (function(){ | |
| function waitReady(cb){const ck=()=>window.__appReady?cb():setTimeout(ck,100);ck()} | |
| function log(m,l){(window.__dbg||console.log)(m,l||'log')} | |
| function setVer(){try{document.title='MMD pmx Player v117';const v=document.getElementById('version-label');if(v)v.textContent='v117'}catch(e){}} | |
| function uiFix(){try{let st=document.getElementById('v117-style');if(!st){st=document.createElement('style');st.id='v117-style';st.textContent='.ui-hidden #ui,.ui-hidden #player-panel{opacity:1!important;pointer-events:auto!important}.ui-hidden #ui *,.ui-hidden #player-panel *{pointer-events:auto!important}.v117-manual-hidden #ui,.v117-manual-hidden #player-panel{opacity:0!important;pointer-events:none!important}.v117-manual-hidden #ui *,.v117-manual-hidden #player-panel *{pointer-events:none!important}.v117-morph-collapsed #morph-tabs,.v117-morph-collapsed #morph-sliders{display:none!important}.v117-disabled{opacity:.45;filter:grayscale(.5)}';document.head.appendChild(st)}document.body.classList.remove('ui-hidden');new MutationObserver(()=>{if(document.body.classList.contains('ui-hidden'))document.body.classList.remove('ui-hidden')}).observe(document.body,{attributes:true,attributeFilter:['class']});const eye=document.getElementById('ui-toggle');if(eye&&!eye.__v117){eye.__v117=true;eye.addEventListener('click',e=>{e.preventDefault();e.stopImmediatePropagation();document.body.classList.toggle('v117-manual-hidden');log('[UI:v117] manual toggle hidden='+document.body.classList.contains('v117-manual-hidden'),'info')},true)}}catch(e){log('[UI:v117] uiFix error '+e.message,'error')}} | |
| setVer();setTimeout(setVer,500);setTimeout(setVer,1500); | |
| const PRESET={gravity:-9.8,weight:0.05,damp:0.95,collision:65527,angleX:1.3962633609,angleY:0.0872664601,angleZ:0.1745329201,springRot:12,springPos:1.2,friction:0.5,restitution:-1,boneClamp:1,returnRot:0.06}; | |
| const TEST={gravity:-9.8,weight:0.05,damp:0.97,collision:0,angleX:1.2,angleY:0.25,angleZ:0.45,springRot:30,springPos:4,friction:0.3,restitution:-3,boneClamp:1,returnRot:0.5}; | |
| const PROFILES={mesh:{...PRESET},mesh2:{...PRESET},all:{...PRESET}}; | |
| let currentTarget='mesh',lastClampLog=0,lastWarn=0; | |
| const fmt=v=>Math.abs(v)>=100?String(Math.round(v)):String(Math.round(v*1000)/1000); | |
| const isMMD=m=>m&&m.geometry&&m.geometry.userData&&m.geometry.userData.MMD; | |
| function hasMatPrefix(t){let f=false;try{t.traverse(c=>{if(f||!c.isMesh)return;const ms=Array.isArray(c.material)?c.material:[c.material];if(ms[0]&&/^\d{4}_/.test(ms[0].name||''))f=true})}catch(e){}return f} | |
| const isNew=m=>isMMD(m)&&!hasMatPrefix(m); | |
| function slotOf(m){if(m===window.mesh)return 'mesh';if(m===window.mesh2)return 'mesh2';if(window.__mmdMeshes){const a=window.__mmdMeshes.filter(Boolean),i=a.indexOf(m);if(i===0)return 'mesh';if(i===1)return 'mesh2'}return 'other'} | |
| function allTargets(){return [window.mesh,window.mesh2].concat(window.__mmdMeshes||[]).filter((m,i,a)=>m&&a.indexOf(m)===i)} | |
| function targets(t=currentTarget){let arr=t==='mesh'?[window.mesh]:t==='mesh2'?[window.mesh2]:allTargets();return arr.filter(isNew)} | |
| function hp(){return PROFILES[currentTarget]||PROFILES.mesh} | |
| function getObj(m){try{return window.helper&&window.helper.objects&&window.helper.objects.get(m)}catch(e){return null}} | |
| function getPhys(m){try{return getObj(m)?.physics}catch(e){return null}} | |
| function getHairBodies(m){const p=getPhys(m);return p&&p.bodies?p.bodies.filter(b=>b.params&&/^髪_/.test(b.params.name||'')):[]} | |
| function getHairConstraints(m){const p=getPhys(m);return p&&p.constraints?p.constraints.filter(c=>{const q=c.params||c,n=q.name||'',e=q.englishName||'';return /^髪_/.test(n)||e.includes('HairJoint')}):[]} | |
| function act(b){try{b&&b.body&&b.body.activate()}catch(e){}} | |
| function avec(x,y,z){return new Ammo.btVector3(x,y,z)}function des(v){try{Ammo.destroy(v)}catch(e){}} | |
| function selectedRaw(){return currentTarget==='mesh'?window.mesh:currentTarget==='mesh2'?window.mesh2:null} | |
| function unsupported(){const s=selectedRaw();if(currentTarget==='all'||!s)return false;if(!isNew(s)){const now=Date.now();if(now-lastWarn>1500){lastWarn=now;log('[PhysUI:v117] '+currentTarget+' は旧モデル/対象外。新モデル髪のみ調整可。','warn')}return true}return false} | |
| function setDisabled(dis){const p=document.getElementById('v117-panel');if(!p)return;p.classList.toggle('v117-disabled',dis);p.querySelectorAll('input,button').forEach(el=>{if(el.id==='v117-target')return;el.disabled=!!dis});const note=document.getElementById('v117-target-note');if(note)note.textContent=dis?'この対象は旧モデル/非対応です':''} | |
| function updateTargetState(){const d=unsupported();setDisabled(d);return d} | |
| function saveHairRest(m){if(!m||!m.skeleton||m.userData.__v117HairRest)return;const rest=[];m.skeleton.bones.forEach(b=>{if(/^髪_\d+_\d+/.test(b.name||''))rest.push({bone:b,pos:b.position.clone(),rot:b.quaternion.clone()})});m.userData.__v117HairRest=rest;log('[BoneClamp:v117] saved '+slotOf(m)+' hair bones='+rest.length,'info')} | |
| function clampHair(){let total=0;allTargets().filter(isNew).forEach(m=>{const p=PROFILES[slotOf(m)]||PRESET;const neg=Math.max(0,Math.abs(Math.min(0,p.restitution)));if(!p.boneClamp&&!p.returnRot&&!neg)return;saveHairRest(m);(m.userData.__v117HairRest||[]).forEach(d=>{if(!d.bone)return;if(p.boneClamp)d.bone.position.lerp(d.pos,Math.min(2,Math.max(-2,p.boneClamp)));if(p.returnRot)d.bone.quaternion.slerp(d.rot,Math.min(1,Math.max(-1,p.returnRot)));if(neg){d.bone.position.lerp(d.pos,Math.min(0.25,0.03*neg));d.bone.quaternion.slerp(d.rot,Math.min(0.25,0.02*neg))}d.bone.updateMatrix();total++});if(total&&m.skeleton)m.skeleton.update()});const now=Date.now();if(total&&now-lastClampLog>30000){lastClampLog=now;log('[BoneClamp:v117] totalBones='+total+' mesh='+JSON.stringify(PROFILES.mesh)+' mesh2='+JSON.stringify(PROFILES.mesh2),'info')}} | |
| function setGravity(v){hp().gravity=v;allTargets().forEach(m=>{const p=getPhys(m);if(p&&p.world&&window.Ammo){try{const g=avec(0,v,0);p.world.setGravity(g);des(g)}catch(e){}}});log('[PhysUI:v117] target='+currentTarget+' gravity='+v,'info')} | |
| function applyAmmo(c,p){if(!window.Ammo)return false;const ammo=c.constraint||c._constraint||c.ammoConstraint;if(!ammo)return false;try{const ll=avec(0,0,0),ul=avec(0,0,0),al=avec(-p.angleX,-p.angleY,-p.angleX),au=avec(p.angleX,p.angleY,p.angleZ);ammo.setLinearLowerLimit&&ammo.setLinearLowerLimit(ll);ammo.setLinearUpperLimit&&ammo.setLinearUpperLimit(ul);ammo.setAngularLowerLimit&&ammo.setAngularLowerLimit(al);ammo.setAngularUpperLimit&&ammo.setAngularUpperLimit(au);des(ll);des(ul);des(al);des(au)}catch(e){return false}try{for(let i=0;i<3;i++){ammo.enableSpring&&ammo.enableSpring(i,p.springPos!==0);ammo.setStiffness&&ammo.setStiffness(i,Math.max(0,p.springPos))}for(let i=3;i<6;i++){ammo.enableSpring&&ammo.enableSpring(i,p.springRot!==0);ammo.setStiffness&&ammo.setStiffness(i,Math.max(0,p.springRot))}}catch(e){}return true} | |
| function applyCst(){if(updateTargetState())return;const p=hp();let cnt=0,ammo=0,no=0;targets().forEach(m=>getHairConstraints(m).forEach(c=>{const q=c.params||c;q.translationLimitation1=[0,0,0];q.translationLimitation2=[0,0,0];q.rotationLimitation1=[-p.angleX,-p.angleY,-p.angleX];q.rotationLimitation2=[p.angleX,p.angleY,p.angleZ];q.springPosition=[p.springPos,p.springPos,p.springPos];q.springRotation=[p.springRot,p.springRot,p.springRot];cnt++;applyAmmo(c,p)?ammo++:no++}));log('[HairCstRuntime:v117] target='+currentTarget+' params='+cnt+' ammo='+ammo+' noAmmo='+no,'info')} | |
| function applyWeight(v){hp().weight=v;if(updateTargetState())return;let cnt=0;targets().forEach(m=>getHairBodies(m).forEach(b=>{const seg=parseInt((b.params.name||'').split('_')[2])||1;b.params.weight=seg<=1?v:seg<=3?v*0.5:v*0.2;act(b);cnt++}));log('[Hair:v117] target='+currentTarget+' weight='+v+' bodies='+cnt,'info')} | |
| function applyDamp(v){hp().damp=v;if(updateTargetState())return;let cnt=0;targets().forEach(m=>getHairBodies(m).forEach(b=>{if(b.body)b.body.setDamping(Math.max(0,Math.min(1,v)),Math.max(0,Math.min(1,v)));b.params.positionDamping=v;b.params.rotationDamping=v;act(b);cnt++}));log('[Hair:v117] target='+currentTarget+' dampingUI='+v+' bodies='+cnt,'info')} | |
| function applyCollision(v){hp().collision=v;if(updateTargetState())return;let cnt=0;targets().forEach(m=>getHairBodies(m).forEach(b=>{b.params.groupTarget=v;act(b);cnt++}));log('[Hair:v117] target='+currentTarget+' collision='+v+' bodies='+cnt,'info')} | |
| function applyFrictionRest(){if(updateTargetState())return;const p=hp();let cnt=0;const rest=Math.max(0,Math.min(10,p.restitution)),fr=Math.max(0,p.friction);targets().forEach(m=>getHairBodies(m).forEach(b=>{b.params.friction=fr;b.params.restitution=rest;if(b.body){try{b.body.setFriction(fr)}catch(e){}try{b.body.setRestitution(rest)}catch(e){}act(b)}cnt++}));log('[Hair:v117] target='+currentTarget+' friction='+p.friction+' restitution='+p.restitution+' bodies='+cnt,'info')} | |
| function applyAll(){setGravity(hp().gravity);applyCst();applyWeight(hp().weight);applyDamp(hp().damp);applyCollision(hp().collision);applyFrictionRest();log('[PhysUI:v117] applied target='+currentTarget+' profile='+JSON.stringify(hp()),'info')} | |
| function upd(){const p=hp();Object.keys(p).forEach(k=>{const e=document.getElementById('v117-'+k),v=document.getElementById('v117-'+k+'-val');if(e)e.value=p[k];if(v)v.value=fmt(p[k])});const sel=document.getElementById('v117-target');if(sel)sel.value=currentTarget;updateTargetState()} | |
| function resetPreset(){Object.assign(hp(),PRESET);upd();applyAll();log('[PhysUI:v117] reset preset target='+currentTarget,'info')} | |
| function resetTest(){Object.assign(hp(),TEST);upd();applyAll();log('[PhysUI:v117] reset test target='+currentTarget,'info')} | |
| function resetProfile(slot){PROFILES[slot]=clone(PRESET);if(currentTarget===slot)upd();log('[Profile:v117] reset '+slot+' profile','info')} | |
| function ctl(parent,k,label,min,max,step,apply){const box=document.createElement('div');box.style.cssText='background:rgba(0,0,0,.25);border:1px solid rgba(255,20,147,.25);border-radius:8px;padding:4px;min-width:0';box.innerHTML='<div style="display:flex;justify-content:space-between;align-items:center;gap:3px;margin-bottom:2px"><span class="text-[9px] text-pink-300">'+label+'</span><input id="v117-'+k+'-val" class="val-input" value="'+fmt(hp()[k])+'" style="width:45px"></div><input type="range" id="v117-'+k+'" value="'+hp()[k]+'" min="'+min+'" max="'+max+'" step="'+step+'" class="h-1" style="width:100%;accent-color:#ff1493">';parent.appendChild(box);const bar=document.getElementById('v117-'+k),txt=document.getElementById('v117-'+k+'-val');function commit(raw){if(updateTargetState())return;let v=parseFloat(raw);if(raw===''||raw==null||isNaN(v))v=PRESET[k];v=Math.max(parseFloat(min),Math.min(parseFloat(max),v));hp()[k]=v;bar.value=v;txt.value=fmt(v);apply(v)}bar.addEventListener('input',()=>commit(bar.value));txt.addEventListener('blur',()=>commit(txt.value));txt.addEventListener('keydown',e=>{if(e.key==='Enter'){e.preventDefault();txt.blur()}})} | |
| function injectUI(){const old=document.getElementById('gravity-bar');if(!old)return;const panel=old.parentElement;if(!panel||panel.dataset.v117==='1')return;panel.dataset.v117='1';panel.id='v117-panel';panel.style.maxWidth='390px';panel.style.width='95vw';panel.innerHTML='<div class="text-[10px] text-pink-300 mb-1 text-center">物理演算♡</div>';const top=document.createElement('div');top.style.cssText='margin-bottom:6px;text-align:center';top.innerHTML='<span class="text-[10px] text-pink-300">対象♡ </span><select id="v117-target" style="background:#111;color:#ff69b4;border:1px solid #ff1493;border-radius:8px;font-size:10px;padding:2px 6px"><option value="mesh">モデル1</option><option value="mesh2">モデル2</option><option value="all">全体</option></select><div id="v117-target-note" class="text-[8px] text-yellow-300 mt-1"></div>';panel.appendChild(top);top.querySelector('select').value=currentTarget;top.querySelector('select').addEventListener('change',e=>{currentTarget=e.target.value;upd();log('[PhysUI:v117] target='+currentTarget+' uiProfile='+JSON.stringify(hp()),'info')});const g=document.createElement('div');g.style.cssText='display:grid;grid-template-columns:1fr 1fr;gap:6px;align-items:end';panel.appendChild(g);ctl(g,'gravity','重力♡',-50,50,0.1,setGravity);ctl(g,'weight','髪重量♡',-0.5,2,0.001,applyWeight);ctl(g,'damp','髪ダンプ♡',-3,3,0.01,applyDamp);ctl(g,'collision','髪衝突♡',0,65535,1,applyCollision);ctl(g,'angleX','髪角度X♡',-3.14,3.14,0.01,v=>{hp().angleX=v;applyCst()});ctl(g,'angleY','髪角度Y♡',-3.14,3.14,0.01,v=>{hp().angleY=v;applyCst()});ctl(g,'angleZ','髪角度Z♡',-3.14,3.14,0.01,v=>{hp().angleZ=v;applyCst()});ctl(g,'springRot','髪ばね回転♡',-100,100,0.1,v=>{hp().springRot=v;applyCst()});ctl(g,'springPos','髪ばね位置♡',-50,50,0.1,v=>{hp().springPos=v;applyCst()});ctl(g,'boneClamp','髪ボーン長固定♡',-3,3,0.01,v=>{hp().boneClamp=v;log('[BoneClamp:v117] target='+currentTarget+' strength='+v,'info')});ctl(g,'returnRot','髪戻り補正♡',-1,1,0.005,v=>{hp().returnRot=v;log('[HairReturn:v117] target='+currentTarget+' returnRot='+v,'info')});ctl(g,'friction','髪摩擦♡',-10,10,0.01,v=>{hp().friction=v;applyFrictionRest()});ctl(g,'restitution','髪反発♡',-10,10,0.01,v=>{hp().restitution=v;applyFrictionRest()});const b1=document.createElement('button');b1.className='sub-btn';b1.style.cssText='font-size:10px;margin-top:6px;width:100%';b1.textContent='プリセット♡';b1.onclick=resetPreset;g.appendChild(b1);const b2=document.createElement('button');b2.className='sub-btn';b2.style.cssText='font-size:10px;margin-top:6px;width:100%';b2.textContent='検証用♡';b2.onclick=resetTest;g.appendChild(b2);upd();log('[UI:v117] restored guarded profiles enabled','info')} | |
| function morphToggle(){const p=document.getElementById('morph-panel');if(!p||p.dataset.v117==='1')return;p.dataset.v117='1';p.classList.add('v117-morph-collapsed');const h=p.querySelector('div');if(h){h.style.display='flex';h.style.justifyContent='space-between';h.style.alignItems='center';const b=document.createElement('button');b.className='sub-btn';b.style.cssText='font-size:9px;padding:1px 7px';b.textContent='開く';b.onclick=()=>{const c=p.classList.toggle('v117-morph-collapsed');b.textContent=c?'開く':'閉じる'};h.appendChild(b)}} | |
| function isNewHairC(c){return ((c&&c.name)||'').startsWith('髪_')}function isNewHairRb(r){return r&&((r.name||'').startsWith('髪_'))} | |
| function patchNewHairPre(t,url){try{const m=t&&t.geometry&&t.geometry.userData&&t.geometry.userData.MMD;if(!m||hasMatPrefix(t))return;let pc=0,pr=0;(m.constraints||[]).forEach(c=>{if(!isNewHairC(c))return;const p=PRESET;c.translationLimitation1=[0,0,0];c.translationLimitation2=[0,0,0];c.rotationLimitation1=[-p.angleX,-p.angleY,-p.angleX];c.rotationLimitation2=[p.angleX,p.angleY,p.angleZ];c.springPosition=[p.springPos,p.springPos,p.springPos];c.springRotation=[p.springRot,p.springRot,p.springRot];pc++});(m.rigidBodies||[]).forEach(r=>{if(!isNewHairRb(r))return;r.friction=Math.max(0,PRESET.friction);r.restitution=Math.max(0,PRESET.restitution);pr++});if(pc||pr)log('[PhysPatch:v117] '+url+' preAdd NEW hairConstraints='+pc+' hairRB='+pr,'info')}catch(e){log('[PhysPatch:v117] error '+e.message,'error')}} | |
| function patchFileInputs(){['file-input','file-input2'].forEach(id=>{const el=document.getElementById(id);if(!el||el.__v117Safe)return;el.__v117Safe=true;el.addEventListener('change',async e=>{const slot=id==='file-input'?'mesh':'mesh2';const hasExisting=slot==='mesh'?!!window.mesh:!!window.mesh2;if(!hasExisting)return;e.preventDefault();e.stopImmediatePropagation();const files=Array.from(e.target.files||[]);if(!files.length)return;log('[SlotLoad:v117] '+slot+' existing model detected. Full clear reload to prevent mix.','warn');document.getElementById('clear-all-btn')?.click();window.mesh=null;window.mesh2=null;window.__mmdMeshes=[];PROFILES.mesh=Object.assign({},PRESET);PROFILES.mesh2=Object.assign({},PRESET);upd();setTimeout(async()=>{try{window.__showLoading&&window.__showLoading(true,(slot==='mesh'?'モデル1':'モデル2')+'再読込中...');await window.__processFiles(files,slot);const pmx=window.__findFileInMap('.pmx',slot)||window.__findFileInMap('.pmd',slot);if(pmx){document.getElementById(slot==='mesh'?'pmx-label':'pmx2-label')?.classList.add('ready');window.__loadPmx(pmx,slot)}else{window.__showLoading&&window.__showLoading(false);log('[SlotLoad:v117] pmx not found after reload '+slot,'error')}}catch(err){log('[SlotLoad:v117] reload failed '+err.message,'error');window.__showLoading&&window.__showLoading(false)}},250)},true)})} | |
| function patchDebug(){const copy=document.getElementById('debug-copy-btn'),clear=document.getElementById('debug-clear-btn'),le=document.getElementById('debug-log');if(copy&&!copy.__v117){copy.__v117=true;const fn=e=>{e&&e.preventDefault&&e.preventDefault();e&&e.stopImmediatePropagation&&e.stopImmediatePropagation();const txt=le?le.innerText:'';const done=ok=>{copy.textContent=ok?'✅コピー完了':'⚠コピー失敗';copy.style.background=ok?'#064':'#600';setTimeout(()=>{copy.textContent='📋 Copy All';copy.style.background=''},1800)};if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(txt).then(()=>done(true)).catch(()=>fallback());else fallback();function fallback(){try{const ta=document.createElement('textarea');ta.value=txt;ta.style.position='fixed';ta.style.left='0';ta.style.top='0';ta.style.width='1px';ta.style.height='1px';document.body.appendChild(ta);ta.focus();ta.select();ta.setSelectionRange(0,ta.value.length);const ok=document.execCommand('copy');document.body.removeChild(ta);done(ok)}catch(err){done(false)}}};copy.addEventListener('touchend',fn,true);copy.addEventListener('pointerup',fn,true);copy.addEventListener('click',fn,true)}if(clear&&!clear.__v117){clear.__v117=true;clear.addEventListener('click',e=>{e.preventDefault();e.stopImmediatePropagation();if(le){const keep='[MMD_pmx_Player_v117_2026/05/13]\n[Device] '+navigator.userAgent.slice(0,80)+'\n[Screen] '+screen.width+'x'+screen.height+' dpr='+devicePixelRatio+'\n[Camera] pos=(0,20,100) target=(0,10,0) fov=45\n';le.innerHTML='';keep.split('\n').filter(Boolean).forEach(t=>{const d=document.createElement('div');d.className='info';d.textContent=t;le.appendChild(d)})}},true)}} | |
| function patchMat(){const box=document.getElementById('mat-debug');if(!box||box.__v117)return;box.__v117=true;box.addEventListener('touchend',e=>{const b=e.target&&e.target.closest&&e.target.closest('button');if(b){e.preventDefault();b.click()}},true)} | |
| (async function patchProto(){try{const [{MMDLoader},{MMDAnimationHelper}]=await Promise.all([import('three/examples/jsm/loaders/MMDLoader'),import('three/examples/jsm/animation/MMDAnimationHelper')]);if(MMDLoader&&!MMDLoader.prototype.__v117Patched){MMDLoader.prototype.__v117Patched=true;const orig=MMDLoader.prototype.load;MMDLoader.prototype.load=function(url,onLoad,onProgress,onError){return orig.call(this,url,t=>{patchNewHairPre(t,url);onLoad&&onLoad(t)},onProgress,e=>{log('[LoadError:v117] url='+url+' err='+(e&&e.message?e.message:String(e)),'error');onError&&onError(e)})}}if(MMDAnimationHelper&&!MMDAnimationHelper.prototype.__v117Patched){MMDAnimationHelper.prototype.__v117Patched=true;const add=MMDAnimationHelper.prototype.add;MMDAnimationHelper.prototype.add=function(obj,params){window.helper=this;if(isMMD(obj)){window.__mmdMeshes=window.__mmdMeshes||[];if(!window.__mmdMeshes.includes(obj))window.__mmdMeshes.push(obj);if(!window.mesh)window.mesh=obj;else if(window.mesh!==obj&&!window.mesh2)window.mesh2=obj;setTimeout(()=>{if(isNew(obj))saveHairRest(obj)},500);log('[Global:v117] mesh='+(!!window.mesh)+' mesh2='+(!!window.mesh2),'info')}return add.call(this,obj,params)};const upd0=MMDAnimationHelper.prototype.update;MMDAnimationHelper.prototype.update=function(delta){const r=upd0.call(this,delta);clampHair();return r}}}catch(e){log('[Init] v117 prototype patch failed '+e.message,'error')}})(); | |
| waitReady(()=>{setVer();uiFix();injectUI();patchDebug();patchMat();setInterval(()=>{morphToggle();patchMat()},800);log('[Runtime:v117] app-extra.js v117 初期化完了','info')})})(); | |