Cleanup excess redefines and maybe fixed result in HLE sceIo::sceIoGetDevType()

This commit is contained in:
Herman Semenov 2024-04-02 14:25:26 +03:00
parent 83bd9fd665
commit 0f94ac9189
4 changed files with 2 additions and 4 deletions

View file

@ -68,7 +68,6 @@ void ShaderLanguageDesc::Init(ShaderLanguage lang) {
gles = true;
forceMatrix4x4 = true;
glslES30 = true;
texelFetch = "texelFetch";
break;
case GLSL_VULKAN:
fragColor0 = "fragColor0";

View file

@ -1325,7 +1325,8 @@ static u32 sceIoGetDevType(int id) {
WARN_LOG(SCEIO, "sceIoGetDevType(%d - %s)", id, f->fullpath.c_str());
if (f->isTTY)
result = (u32)PSPDevType::FILE;
result = (u32)pspFileSystem.DevType(f->handle) & (u32)PSPDevType::EMU_MASK;
else
result = (u32)pspFileSystem.DevType(f->handle) & (u32)PSPDevType::EMU_MASK;
} else {
ERROR_LOG(SCEIO, "sceIoGetDevType: unknown id %d", id);
result = SCE_KERNEL_ERROR_BADF;

View file

@ -58,7 +58,6 @@ GPU_GLES::GPU_GLES(GraphicsContext *gfxCtx, Draw::DrawContext *draw)
textureCache_ = textureCacheGL_;
drawEngineCommon_ = &drawEngine_;
shaderManager_ = shaderManagerGL_;
drawEngineCommon_ = &drawEngine_;
drawEngine_.SetShaderManager(shaderManagerGL_);
drawEngine_.SetTextureCache(textureCacheGL_);

View file

@ -338,7 +338,6 @@ void SavedataButton::Draw(UIContext &dc) {
}
int txOffset = down_ ? 4 : 0;
txOffset = 0;
Bounds overlayBounds = bounds_;