Do some include untangling, to limit the spread of the Windows.h include from SevenZipFileReader.h

This commit is contained in:
Henrik Rydgård
2026-03-27 11:12:26 -06:00
parent 8380e13f10
commit 0c077acc74
10 changed files with 43 additions and 27 deletions
+2 -1
View File
@@ -1,5 +1,7 @@
#pragma once
#ifdef _WIN32
#if defined(_MSC_VER) && _MSC_VER < 1700
#error You need a newer version of Visual Studio
#else
@@ -12,7 +14,6 @@
#undef _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
#ifdef _WIN32
#pragma warning(disable:4091)
#ifndef WIN32_LEAN_AND_MEAN
+2
View File
@@ -7,6 +7,8 @@
#include <string_view>
#include <vector>
#include "Common/CommonWindows.h"
#include "ext/lzma-sdk/7z.h"
#include "ext/lzma-sdk/7zFile.h"
+2 -1
View File
@@ -25,7 +25,6 @@
#include "Core/MIPS/JitCommon/JitBlockCache.h"
#include "Core/MIPS/JitCommon/JitCommon.h"
#include "Core/MIPS/IR/IRRegCache.h"
#include "Core/MIPS/IR/IRInst.h"
#include "Core/MIPS/IR/IRFrontend.h"
#include "Core/MIPS/MIPSVFPUUtils.h"
@@ -43,6 +42,8 @@
#error
#endif
struct IRInst;
namespace MIPSComp {
// TODO : Use arena allocators. For now let's just malloc.
+1
View File
@@ -18,6 +18,7 @@
#pragma once
#include <unordered_map>
#include "Core/MIPS/IR/IRJit.h"
#include "Core/MIPS/JitCommon/JitBlockCache.h"
+2 -1
View File
@@ -23,7 +23,6 @@
#include "Common/CommonTypes.h"
#include "Core/MIPS/MIPS.h"
#include "Core/MIPS/IR/IRAnalysis.h"
#include "Core/MIPS/IR/IRInst.h"
// Have to account for all of them due to temps, etc.
@@ -91,6 +90,8 @@ static inline MIPSMap operator &(const MIPSMap &lhs, const MIPSMap &rhs) {
return MIPSMap((uint8_t)lhs & (uint8_t)rhs);
}
struct IRInst;
class IRNativeRegCacheBase {
protected:
enum class MIPSLoc {
+4 -2
View File
@@ -28,13 +28,15 @@
#include "Common/UI/Tween.h"
#include "Core/KeyMap.h"
#include "Core/ControlMapper.h"
#include "UI/ImDebugger/ImDebugger.h"
#include "UI/ImDebugger/ImCommand.h"
struct AxisInput;
class AsyncImageFileView;
class ChatMenu;
class ImDebugger;
struct ImCommand;
struct ImGuiContext;
class EmuScreen : public UIScreen, protected ControlListener {
public:
+24
View File
@@ -0,0 +1,24 @@
#pragma once
#include <cstdint>
enum class ImCmd {
NONE = 0,
TRIGGER_FIND_POPUP,
SHOW_IN_CPU_DISASM,
SHOW_IN_GE_DISASM,
SHOW_IN_MEMORY_VIEWER, // param is address, param2 is viewer index
SHOW_IN_PIXEL_VIEWER, // param is address, param2 is stride, |0x80000000 if depth, param3 is w/h
SHOW_IN_MEMORY_DUMPER, // param is address, param2 is size, param3 is mode
};
struct ImCommand {
ImCmd cmd;
uint32_t param;
uint32_t param2;
uint32_t param3;
};
struct ImControl {
ImCommand command;
};
+2 -22
View File
@@ -23,6 +23,7 @@
#include "UI/ImDebugger/ImJitViewer.h"
#include "UI/ImDebugger/ImGe.h"
#include "UI/ImDebugger/ImConsole.h"
#include "UI/ImDebugger/ImCommand.h"
// This is the main state container of the whole Dear ImGUI-based in-game cross-platform debugger.
//
@@ -162,28 +163,7 @@ public:
void Draw(ImConfig &cfg);
private:
bool AutoScroll = true; // Keep scrolling if already at the bottom.
};
enum class ImCmd {
NONE = 0,
TRIGGER_FIND_POPUP,
SHOW_IN_CPU_DISASM,
SHOW_IN_GE_DISASM,
SHOW_IN_MEMORY_VIEWER, // param is address, param2 is viewer index
SHOW_IN_PIXEL_VIEWER, // param is address, param2 is stride, |0x80000000 if depth, param3 is w/h
SHOW_IN_MEMORY_DUMPER, // param is address, param2 is size, param3 is mode
};
struct ImCommand {
ImCmd cmd;
uint32_t param;
uint32_t param2;
uint32_t param3;
};
struct ImControl {
ImCommand command;
bool AutoScroll = true; // Keep scrolling if already at the bottom.
};
class ImDebugger {
+1
View File
@@ -105,6 +105,7 @@
<ClInclude Include="CwCheatScreen.h" />
<ClInclude Include="GPUDriverTestScreen.h" />
<ClInclude Include="IAPScreen.h" />
<ClInclude Include="ImDebugger\ImCommand.h" />
<ClInclude Include="ImDebugger\ImConsole.h" />
<ClInclude Include="ImDebugger\ImDebugger.h" />
<ClInclude Include="ImDebugger\ImDisasmView.h" />
+3
View File
@@ -291,6 +291,9 @@
<ClInclude Include="AdhocServerScreen.h">
<Filter>Screens</Filter>
</ClInclude>
<ClInclude Include="ImDebugger\ImCommand.h">
<Filter>ImDebugger</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Filter Include="Screens">