mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 11:43:47 +01:00
Minor cleanups and fixes. sceJpeg will not work without HLE, so removed from disable-list.
This commit is contained in:
1 parent
5a6c9051f2
commit
62cd4bbefc
5 files changed
+11
-9
No files matched your search
@@ -1,3 +1,4 @@
|
||||
#include <algorithm>
|
||||
#include <cstdarg>
|
||||
#include <climits>
|
||||
#include <cstdio>
|
||||
@@ -166,7 +167,8 @@ StringWriter &StringWriter::F(const char *format, ...) {
|
||||
}
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
p_ += vsnprintf(p_, remainder, format, args);
|
||||
int wouldHaveBeenWritten = vsnprintf(p_, remainder, format, args);
|
||||
p_ += std::min((int)remainder, wouldHaveBeenWritten);
|
||||
va_end(args);
|
||||
return *this;
|
||||
}
|
||||
+2
-3
@@ -124,9 +124,8 @@ enum class DisableHLEFlags : int {
|
||||
scePsmfPlayer = (1 << 3),
|
||||
sceMpeg = (1 << 4),
|
||||
sceMp3 = (1 << 5),
|
||||
sceJpeg = (1 << 6),
|
||||
sceParseHttp = (1 << 7),
|
||||
Count = 8,
|
||||
sceParseHttp = (1 << 6),
|
||||
Count = 7,
|
||||
// TODO: Some of the networking libraries may be interesting candidates, like HTTP.
|
||||
};
|
||||
ENUM_CLASS_BITOPS(DisableHLEFlags);
|
||||
|
||||
+4
-3
@@ -122,6 +122,7 @@ static const HLEModuleMeta g_moduleMeta[] = {
|
||||
{"SceFont_Library", "sceLibFttt", DisableHLEFlags::sceFont},
|
||||
{"SceHttp_Library", "sceHttp"},
|
||||
{"sceMpeg_library", "sceMpeg", DisableHLEFlags::sceMpeg},
|
||||
{"sceMp3_Library", "sceMp3", DisableHLEFlags::sceMp3},
|
||||
{"sceNetAdhocctl_Library"},
|
||||
{"sceNetAdhocDownload_Library"},
|
||||
{"sceNetAdhocMatching_Library"},
|
||||
@@ -154,9 +155,9 @@ static const HLEModuleMeta g_moduleMeta[] = {
|
||||
{"SceParseHTTPheader_Library", "sceParseHttp", DisableHLEFlags::sceParseHttp},
|
||||
{"SceParseURI_Library"},
|
||||
// Guessing these names
|
||||
{"sceJpeg", "sceJpeg", DisableHLEFlags::sceJpeg},
|
||||
{"sceJpeg_library", "sceJpeg", DisableHLEFlags::sceJpeg},
|
||||
{"sceJpeg_Library", "sceJpeg", DisableHLEFlags::sceJpeg},
|
||||
{"sceJpeg", "sceJpeg"},
|
||||
{"sceJpeg_library", "sceJpeg"},
|
||||
{"sceJpeg_Library", "sceJpeg"},
|
||||
};
|
||||
|
||||
const HLEModuleMeta *GetHLEModuleMeta(std::string_view modname) {
|
||||
|
||||
@@ -1058,7 +1058,7 @@ static PSPModule *__KernelLoadELFFromPtr(const u8 *ptr, size_t elfSize, u32 load
|
||||
}
|
||||
|
||||
if (wasDisabled) {
|
||||
g_OSD.Show(OSDType::MESSAGE_WARNING, StringFromFormat("HLE for %s has been manually disabled", head->modname));
|
||||
g_OSD.Show(OSDType::MESSAGE_WARNING, StringFromFormat("HLE for '%s' has been manually disabled", head->modname));
|
||||
}
|
||||
const u8 *in = ptr;
|
||||
const auto isGzip = head->comp_attribute & 1;
|
||||
|
||||
@@ -1500,7 +1500,7 @@ static void DrawModules(const MIPSDebugInterface *debug, ImConfig &cfg, ImContro
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, IM_COL32(255, 255, 255, 170));
|
||||
}
|
||||
ImGui::Text("%s %d.%d (%s)\n", mod->GetName(), mod->nm.version[1], mod->nm.version[0], mod->isFake ? "FAKE/HLE" : "normal");
|
||||
ImGui::Text("Attr: %08x (%s)\n", (mod->nm.attribute & 0x1000) ? "Kernel" : "User");
|
||||
ImGui::Text("Attr: %08x (%s)\n", mod->nm.attribute, (mod->nm.attribute & 0x1000) ? "Kernel" : "User");
|
||||
char buf[512];
|
||||
mod->GetLongInfo(buf, sizeof(buf));
|
||||
ImGui::TextUnformatted(buf);
|
||||
|
||||
Reference in new issue
Block a user