mirror of
https://git.citron-emu.org/Citron/Citron.git
synced 2025-01-22 08:36:32 +01:00
shader_recompiler: Add stubs for CSM/FCSM flow test conditions
Add stub implementations for previously unhandled flow test conditions in the shader recompiler's IR emitter. These conditions were previously throwing "Not Implemented" exceptions when encountered. The following flow test cases are now stubbed: - FCSM_TR (Fragment Shader Coarse/Fine Mode Test and Reject) - CSM_TA (Coarse/Fine Mode Test Accept) - CSM_TR (Coarse/Fine Mode Test and Reject) - CSM_MX (Coarse/Fine Mode Maximum) - FCSM_TA (Fragment Shader Coarse/Fine Mode Test Accept) - FCSM_MX (Fragment Shader Coarse/Fine Mode Maximum) Currently these stubs: 1. Return false (ir.Imm1(false)) as a placeholder value 2. Log a warning message indicating the stub 3. Allow shaders using these conditions to compile rather than fail This is a step toward proper implementation of coarse/fine mode shader operations. The stubs prevent crashes while making it clear which code paths need full implementation. Technical notes: - Removed the previous FCSM_TR implementation that used flag operations - Added consistent warning messages for tracking stub usage - Kept within the existing GetFlowTest switch statement structure
This commit is contained in:
parent
ee0beea82a
commit
382999025a
30 changed files with 128 additions and 112 deletions
4
dist/languages/ar.ts
vendored
4
dist/languages/ar.ts
vendored
|
@ -409,7 +409,7 @@ This would ban both their forum username and their IP address.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6074,7 +6074,7 @@ Please, only use this feature to install updates and DLC.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation>Mii تحرير التطبيق الصغير</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/ca.ts
vendored
4
dist/languages/ca.ts
vendored
|
@ -407,7 +407,7 @@ This would ban both their forum username and their IP address.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6111,7 +6111,7 @@ Si us plau, utilitzi aquesta funció només per a instal·lar actualitzacions i
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/cs.ts
vendored
4
dist/languages/cs.ts
vendored
|
@ -407,7 +407,7 @@ This would ban both their forum username and their IP address.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6095,7 +6095,7 @@ Tuto funkci prosím používejte pouze k instalaci aktualizací a DLC.</translat
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/da.ts
vendored
4
dist/languages/da.ts
vendored
|
@ -409,7 +409,7 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6101,7 +6101,7 @@ Please, only use this feature to install updates and DLC.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/de.ts
vendored
4
dist/languages/de.ts
vendored
|
@ -408,7 +408,7 @@ Dies würde deren Forum-Benutzernamen und deren IP-Adresse sperren.</translation
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6121,7 +6121,7 @@ Bitte nutze diese Funktion nur zum Installieren von Updates und DLC.</translatio
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation>Mii-Edit-Applet</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/el.ts
vendored
4
dist/languages/el.ts
vendored
|
@ -409,7 +409,7 @@ This would ban both their forum username and their IP address.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6097,7 +6097,7 @@ Please, only use this feature to install updates and DLC.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/es.ts
vendored
4
dist/languages/es.ts
vendored
|
@ -409,7 +409,7 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation>Editor de Mii</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6167,7 +6167,7 @@ Por favor, utiliza esta función sólo para instalar actualizaciones y DLCs.</tr
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation>Applet de Editor de Mii</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/fr.ts
vendored
4
dist/languages/fr.ts
vendored
|
@ -410,7 +410,7 @@ Cela bannirait à la fois son nom d'utilisateur du forum et son adresse IP.
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation>Édition de Mii</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6160,7 +6160,7 @@ Veuillez n'utiliser cette fonctionnalité que pour installer des mises à j
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation>Applet de l'éditeur Mii</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/hu.ts
vendored
4
dist/languages/hu.ts
vendored
|
@ -409,7 +409,7 @@ Ez kitiltaná a fórum felhasználóneve és az IP címe alapján.</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation>Mii szerkesztés</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6134,7 +6134,7 @@ Kérjük, csak frissítések és DLC-k telepítéséhez használd ezt a funkció
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation>Mii szerkesztő applet</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/id.ts
vendored
4
dist/languages/id.ts
vendored
|
@ -409,7 +409,7 @@ Ini akan melarang nama pengguna forum mereka dan alamat IP mereka.</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation>Ubah Mii</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6154,7 +6154,7 @@ Please, only use this feature to install updates and DLC.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/it.ts
vendored
4
dist/languages/it.ts
vendored
|
@ -409,7 +409,7 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6130,7 +6130,7 @@ Configurazione &gt; Web.</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation>Editor dei Mii</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/ja_JP.ts
vendored
4
dist/languages/ja_JP.ts
vendored
|
@ -409,7 +409,7 @@ This would ban both their forum username and their IP address.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6116,7 +6116,7 @@ Please, only use this feature to install updates and DLC.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation>Mii 編集アプレット</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/ko_KR.ts
vendored
4
dist/languages/ko_KR.ts
vendored
|
@ -409,7 +409,7 @@ This would ban both their forum username and their IP address.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6115,7 +6115,7 @@ Please, only use this feature to install updates and DLC.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/nb.ts
vendored
4
dist/languages/nb.ts
vendored
|
@ -409,7 +409,7 @@ Dette vil bannlyse både deres forum brukernavn og deres IP adresse.</translatio
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6120,7 +6120,7 @@ Bruk kun denne funksjonen til å installere oppdateringer og DLC.</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/nl.ts
vendored
4
dist/languages/nl.ts
vendored
|
@ -409,7 +409,7 @@ Dit zou zowel hun forum gebruikersnaam als hun IP-adres verbannen.</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6108,7 +6108,7 @@ Gebruik deze functie alleen om updates en DLC te installeren.</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/pl.ts
vendored
4
dist/languages/pl.ts
vendored
|
@ -409,7 +409,7 @@ To zbanuje jego/jej nick na forum, oraz jego/jej adres IP.</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6111,7 +6111,7 @@ Proszę, używaj tej funkcji tylko do instalowania łatek i DLC.</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/pt_BR.ts
vendored
4
dist/languages/pt_BR.ts
vendored
|
@ -409,7 +409,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation>Editar Mii</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6169,7 +6169,7 @@ Por favor, use esse recurso apenas para instalar atualizações e DLCs.</transla
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation>Miniaplicativo Editor de Mii</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/pt_PT.ts
vendored
4
dist/languages/pt_PT.ts
vendored
|
@ -409,7 +409,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation>Editar Mii</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6152,7 +6152,7 @@ Por favor, use esse recurso apenas para instalar atualizações e DLC.</translat
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation>Applet Editor de Miis</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
6
dist/languages/ru_RU.ts
vendored
6
dist/languages/ru_RU.ts
vendored
|
@ -409,7 +409,7 @@ This would ban both their forum username and their IP address.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation>Mii редактор</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6165,8 +6165,8 @@ Please, only use this feature to install updates and DLC.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<translation>Mii Edit Applet</translation>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation>Mii Editor Applet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4452"/>
|
||||
|
|
4
dist/languages/sv.ts
vendored
4
dist/languages/sv.ts
vendored
|
@ -409,7 +409,7 @@ Detta kommer bannlysa både dennes användarnamn på forum samt IP-adress.</tran
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6090,7 +6090,7 @@ Please, only use this feature to install updates and DLC.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/tr_TR.ts
vendored
4
dist/languages/tr_TR.ts
vendored
|
@ -409,7 +409,7 @@ Bu işlem onların hem forum kullanıcı adını hem de IP adresini banlar.</tra
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6112,7 +6112,7 @@ Lütfen bu özelliği sadece güncelleme ve DLC yüklemek için kullanın.</tran
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/uk.ts
vendored
4
dist/languages/uk.ts
vendored
|
@ -409,7 +409,7 @@ This would ban both their forum username and their IP address.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6124,7 +6124,7 @@ Please, only use this feature to install updates and DLC.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/vi.ts
vendored
4
dist/languages/vi.ts
vendored
|
@ -409,7 +409,7 @@ Việc này sẽ ban tên người dùng trên diễn đàn và IP của họ lu
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6117,7 +6117,7 @@ Vui lòng, chỉ sử dụng tính năng này để cài đặt các bản cập
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
4
dist/languages/vi_VN.ts
vendored
4
dist/languages/vi_VN.ts
vendored
|
@ -409,7 +409,7 @@ This would ban both their forum username and their IP address.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<source>Mii Editor</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -6117,7 +6117,7 @@ Vui lòng, chỉ sử dụng tính năng này để cài các bản cập nhật
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation type="unfinished"/>
|
||||
</message>
|
||||
<message>
|
||||
|
|
8
dist/languages/zh_CN.ts
vendored
8
dist/languages/zh_CN.ts
vendored
|
@ -409,8 +409,8 @@ This would ban both their forum username and their IP address.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<translation>Mii Edit</translation>
|
||||
<source>Mii Editor</source>
|
||||
<translation>Mii Editor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="38"/>
|
||||
|
@ -6165,8 +6165,8 @@ Please, only use this feature to install updates and DLC.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<translation>Mii Edit 小程序</translation>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation>Mii Editor 小程序</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4452"/>
|
||||
|
|
6
dist/languages/zh_TW.ts
vendored
6
dist/languages/zh_TW.ts
vendored
|
@ -409,8 +409,8 @@ This would ban both their forum username and their IP address.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="37"/>
|
||||
<source>Mii Edit</source>
|
||||
<translation>Mii Edit</translation>
|
||||
<source>Mii Editor</source>
|
||||
<translation>Mii Editor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/configuration/shared_translation.cpp" line="38"/>
|
||||
|
@ -6161,7 +6161,7 @@ Please, only use this feature to install updates and DLC.</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../src/citron/main.cpp" line="4451"/>
|
||||
<source>Mii Edit Applet</source>
|
||||
<source>Mii Editor Applet</source>
|
||||
<translation>Mii 編輯器小程式</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
|
@ -10,6 +10,7 @@ import android.content.DialogInterface
|
|||
import android.content.pm.ActivityInfo
|
||||
import android.content.res.Configuration
|
||||
import android.net.Uri
|
||||
import android.os.BatteryManager
|
||||
import android.os.Bundle
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
|
@ -531,59 +532,8 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
|||
if (emulationViewModel.emulationStarted.value &&
|
||||
!emulationViewModel.isEmulationStopping.value
|
||||
) {
|
||||
val thermalStatus = when (powerManager.currentThermalStatus) {
|
||||
PowerManager.THERMAL_STATUS_LIGHT -> 0.25f
|
||||
PowerManager.THERMAL_STATUS_MODERATE -> 0.5f
|
||||
PowerManager.THERMAL_STATUS_SEVERE -> 0.75f
|
||||
PowerManager.THERMAL_STATUS_CRITICAL,
|
||||
PowerManager.THERMAL_STATUS_EMERGENCY,
|
||||
PowerManager.THERMAL_STATUS_SHUTDOWN -> 1.0f
|
||||
else -> 0f
|
||||
}
|
||||
|
||||
// Get temperature from battery thermal sensor
|
||||
val temperature = try {
|
||||
val process = Runtime.getRuntime().exec("cat /sys/class/power_supply/battery/temp")
|
||||
val reader = process.inputStream.bufferedReader()
|
||||
val temp = reader.readLine().toFloat() / 10f // Convert from decidegrees to degrees
|
||||
reader.close()
|
||||
temp
|
||||
} catch (e: Exception) {
|
||||
0f
|
||||
}
|
||||
|
||||
// Convert to Fahrenheit
|
||||
val fahrenheit = (temperature * 9f / 5f) + 32f
|
||||
|
||||
if (_binding != null) {
|
||||
// Color interpolation based on temperature (green at 30°C, red at 45°C)
|
||||
val normalizedTemp = ((temperature - 30f) / 15f).coerceIn(0f, 1f)
|
||||
val red = (normalizedTemp * 255).toInt()
|
||||
val green = ((1f - normalizedTemp) * 255).toInt()
|
||||
val color = android.graphics.Color.rgb(red, green, 0)
|
||||
|
||||
// Create a modern progress bar using block elements
|
||||
val progressBarLength = 12
|
||||
val filledBars = (thermalStatus * progressBarLength).toInt()
|
||||
val progressBar = buildString {
|
||||
append("│") // Left border
|
||||
repeat(filledBars) { append("█") }
|
||||
repeat(progressBarLength - filledBars) { append("░") }
|
||||
append("│") // Right border
|
||||
|
||||
// Add percentage
|
||||
append(" ")
|
||||
append(String.format("%3d%%", (thermalStatus * 100).toInt()))
|
||||
}
|
||||
|
||||
binding.showThermalsText.setTextColor(color)
|
||||
binding.showThermalsText.text = String.format(
|
||||
"%s\n%.1f°C • %.1f°F",
|
||||
progressBar,
|
||||
temperature,
|
||||
fahrenheit
|
||||
)
|
||||
}
|
||||
val temperature = getBatteryTemperature(requireContext())
|
||||
updateThermalOverlay(temperature)
|
||||
thermalStatsUpdateHandler.postDelayed(thermalStatsUpdater!!, 1000)
|
||||
}
|
||||
}
|
||||
|
@ -595,6 +545,53 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
|||
}
|
||||
}
|
||||
|
||||
private fun updateThermalOverlay(temperature: Float) {
|
||||
if (BooleanSetting.SHOW_THERMAL_OVERLAY.getBoolean() &&
|
||||
emulationViewModel.emulationStarted.value &&
|
||||
!emulationViewModel.isEmulationStopping.value
|
||||
) {
|
||||
// Get thermal status
|
||||
val thermalStatus = when (powerManager.currentThermalStatus) {
|
||||
PowerManager.THERMAL_STATUS_LIGHT -> 0.25f
|
||||
PowerManager.THERMAL_STATUS_MODERATE -> 0.5f
|
||||
PowerManager.THERMAL_STATUS_SEVERE -> 0.75f
|
||||
PowerManager.THERMAL_STATUS_CRITICAL,
|
||||
PowerManager.THERMAL_STATUS_EMERGENCY,
|
||||
PowerManager.THERMAL_STATUS_SHUTDOWN -> 1.0f
|
||||
else -> 0f
|
||||
}
|
||||
|
||||
// Convert to Fahrenheit for additional info
|
||||
val fahrenheit = (temperature * 9f / 5f) + 32f
|
||||
|
||||
// Create progress bar using block elements
|
||||
val progressBarLength = 12
|
||||
val filledBars = (thermalStatus * progressBarLength).toInt()
|
||||
val progressBar = buildString {
|
||||
append("│") // Left border
|
||||
repeat(filledBars) { append("█") }
|
||||
repeat(progressBarLength - filledBars) { append("░") }
|
||||
append("│") // Right border
|
||||
append(" ")
|
||||
append(String.format("%3d%%", (thermalStatus * 100).toInt()))
|
||||
}
|
||||
|
||||
// Color interpolation based on temperature (green at 30°C, red at 45°C)
|
||||
val normalizedTemp = ((temperature - 30f) / 15f).coerceIn(0f, 1f)
|
||||
val red = (normalizedTemp * 255).toInt()
|
||||
val green = ((1f - normalizedTemp) * 255).toInt()
|
||||
val color = android.graphics.Color.rgb(red, green, 0)
|
||||
|
||||
binding.showThermalsText.setTextColor(color)
|
||||
binding.showThermalsText.text = String.format(
|
||||
"%s\n%.1f°C • %.1f°F",
|
||||
progressBar,
|
||||
temperature,
|
||||
fahrenheit
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressLint("SourceLockedOrientationActivity")
|
||||
private fun updateOrientation() {
|
||||
emulationActivity?.let {
|
||||
|
@ -1095,4 +1092,12 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
|||
private val perfStatsUpdateHandler = Handler(Looper.myLooper()!!)
|
||||
private val thermalStatsUpdateHandler = Handler(Looper.myLooper()!!)
|
||||
}
|
||||
|
||||
private fun getBatteryTemperature(context: Context): Float {
|
||||
val batteryManager = context.getSystemService(Context.BATTERY_SERVICE) as BatteryManager
|
||||
// Get temperature in tenths of a degree Celsius
|
||||
val temperature = batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_TEMPERATURE)
|
||||
// Convert to degrees Celsius
|
||||
return temperature / 10.0f
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent) {
|
|||
INSERT(Settings, net_connect_applet_mode, tr("Net connect"), QStringLiteral());
|
||||
INSERT(Settings, player_select_applet_mode, tr("Player select"), QStringLiteral());
|
||||
INSERT(Settings, swkbd_applet_mode, tr("Software keyboard"), QStringLiteral());
|
||||
INSERT(Settings, mii_edit_applet_mode, tr("Mii Edit"), QStringLiteral());
|
||||
INSERT(Settings, mii_edit_applet_mode, tr("Mii Editor"), QStringLiteral());
|
||||
INSERT(Settings, web_applet_mode, tr("Online web"), QStringLiteral());
|
||||
INSERT(Settings, shop_applet_mode, tr("Shop"), QStringLiteral());
|
||||
INSERT(Settings, photo_viewer_applet_mode, tr("Photo viewer"), QStringLiteral());
|
||||
|
|
|
@ -4445,7 +4445,7 @@ void GMainWindow::OnMiiEdit() {
|
|||
|
||||
auto mii_applet_nca = bis_system->GetEntry(MiiEditId, FileSys::ContentRecordType::Program);
|
||||
if (!mii_applet_nca) {
|
||||
QMessageBox::warning(this, tr("Mii Edit Applet"),
|
||||
QMessageBox::warning(this, tr("Mii Editor Applet"),
|
||||
tr("Mii editor is not available. Please reinstall firmware."));
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -261,12 +261,23 @@ static U1 GetFlowTest(IREmitter& ir, FlowTest flow_test) {
|
|||
case FlowTest::RGT:
|
||||
return ir.LogicalAnd(ir.LogicalNot(ir.GetSFlag()), ir.LogicalNot(ir.GetZFlag()));
|
||||
case FlowTest::FCSM_TR:
|
||||
return ir.LogicalAnd(ir.GetSFlag(), ir.LogicalNot(ir.GetZFlag()));
|
||||
LOG_WARNING(Shader, "(STUBBED) FCSM_TR");
|
||||
return ir.Imm1(false);
|
||||
case FlowTest::CSM_TA:
|
||||
LOG_WARNING(Shader, "(STUBBED) CSM_TA");
|
||||
return ir.Imm1(false);
|
||||
case FlowTest::CSM_TR:
|
||||
LOG_WARNING(Shader, "(STUBBED) CSM_TR");
|
||||
return ir.Imm1(false);
|
||||
case FlowTest::CSM_MX:
|
||||
LOG_WARNING(Shader, "(STUBBED) CSM_MX");
|
||||
return ir.Imm1(false);
|
||||
case FlowTest::FCSM_TA:
|
||||
LOG_WARNING(Shader, "(STUBBED) FCSM_TA");
|
||||
return ir.Imm1(false);
|
||||
case FlowTest::FCSM_MX:
|
||||
LOG_WARNING(Shader, "(STUBBED) FCSM_MX");
|
||||
return ir.Imm1(false);
|
||||
default:
|
||||
throw NotImplementedException("Flow test {}", flow_test);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue