mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-17 10:30:47 +02:00
3DS system language detection, fix trash in video textures
This commit is contained in:
@@ -511,6 +511,11 @@ namespace GAPI {
|
|||||||
ret = C3D_TexInitWithParams(&tex, &texCube, params);
|
ret = C3D_TexInitWithParams(&tex, &texCube, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (width != origWidth || height != origHeight) {
|
||||||
|
uint32 texSize = C3D_TexCalcTotalSize(tex.size, tex.maxLevel);
|
||||||
|
memset(tex.data, 0, texSize);
|
||||||
|
}
|
||||||
|
|
||||||
ASSERT(ret);
|
ASSERT(ret);
|
||||||
|
|
||||||
mmLogVRAM();
|
mmLogVRAM();
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
C:\devkitPro\tools\bin\3dslink.exe OpenLara.3dsx -a 192.168.1.63
|
|
2
src/platform/3ds/deploy.sh
Normal file
2
src/platform/3ds/deploy.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
make
|
||||||
|
/C/devkitPro/tools/bin/3dslink.exe OpenLara.3dsx -a 192.168.1.68
|
@@ -175,7 +175,30 @@ void sndFree() {
|
|||||||
linearFree((uint32*)sndBuffer);
|
linearFree((uint32*)sndBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int checkLanguage()
|
||||||
|
{
|
||||||
|
uint8 id;
|
||||||
|
CFGU_GetSystemLanguage(&id);
|
||||||
|
|
||||||
|
int str = STR_LANG_EN;
|
||||||
|
switch (id)
|
||||||
|
{
|
||||||
|
case CFG_LANGUAGE_EN : str = STR_LANG_EN; break;
|
||||||
|
case CFG_LANGUAGE_FR : str = STR_LANG_FR; break;
|
||||||
|
case CFG_LANGUAGE_DE : str = STR_LANG_DE; break;
|
||||||
|
case CFG_LANGUAGE_ES : str = STR_LANG_ES; break;
|
||||||
|
case CFG_LANGUAGE_IT : str = STR_LANG_IT; break;
|
||||||
|
case CFG_LANGUAGE_PT : str = STR_LANG_PT; break;
|
||||||
|
case CFG_LANGUAGE_RU : str = STR_LANG_RU; break;
|
||||||
|
case CFG_LANGUAGE_JP : str = STR_LANG_JA; break;
|
||||||
|
case CFG_LANGUAGE_ZH : str = STR_LANG_CN; break;
|
||||||
|
}
|
||||||
|
return str - STR_LANG_EN;
|
||||||
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
cfguInit();
|
||||||
|
|
||||||
setBottomScreen(false);
|
setBottomScreen(false);
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -192,6 +215,8 @@ int main() {
|
|||||||
|
|
||||||
Stream::init();
|
Stream::init();
|
||||||
|
|
||||||
|
Core::defLang = checkLanguage();
|
||||||
|
|
||||||
sndInit();
|
sndInit();
|
||||||
inputInit();
|
inputInit();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user