VERY experimental Nintendo Switch 2 emulator
C++
[externals/stb] only include JPEG functions, disable all others (#4179)
lizziebfc0e6033331
diff --git a/src/common/stb.cpp b/src/common/stb.cppindex d3b16665d4..c80cc2526d 100644--- a/src/common/stb.cpp+++ b/src/common/stb.cpp@@ -1,8 +1,12 @@+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project+// SPDX-License-Identifier: GPL-3.0-or-later+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later-#define STB_IMAGE_IMPLEMENTATION-#define STB_IMAGE_RESIZE_IMPLEMENTATION-#define STB_IMAGE_WRITE_IMPLEMENTATION+#define STB_IMAGE_IMPLEMENTATION 1+#define STB_IMAGE_RESIZE_IMPLEMENTATION 1+#define STB_IMAGE_WRITE_IMPLEMENTATION 1+#define STBI_ONLY_JPEG 1#include "common/stb.h"diff --git a/src/common/stb.h b/src/common/stb.hindex e5c197c11d..c2b5f54de5 100644--- a/src/common/stb.h+++ b/src/common/stb.h@@ -1,8 +1,12 @@+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project+// SPDX-License-Identifier: GPL-3.0-or-later+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later#pragma once+#define STBI_ONLY_JPEG 1#include <stb_image.h>#include <stb_image_resize.h>#include <stb_image_write.h>diff --git a/src/core/hle/service/ns/read_only_application_control_data_interface.cpp b/src/core/hle/service/ns/read_only_application_control_data_interface.cppindex 0f3228e601..6227fc44cc 100644--- a/src/core/hle/service/ns/read_only_application_control_data_interface.cpp+++ b/src/core/hle/service/ns/read_only_application_control_data_interface.cpp@@ -7,10 +7,12 @@#include <algorithm>#include <vector>#include <optional>+#include <string>++#define STBI_ONLY_JPEG 1#include <stb_image.h>#include <stb_image_resize.h>#include <stb_image_write.h>-#include <string>#include "common/settings.h"#include "core/file_sys/control_metadata.h"