From db5efedca78d8afb6de5c6ddbf214f9d0ca2aabf Mon Sep 17 00:00:00 2001 From: Seeky <58006653+SeekyCt@users.noreply.github.com> Date: Tue, 3 Sep 2024 18:25:44 +0100 Subject: [PATCH] Remove spm-headers ppcdis support --- .vscode.example/c_cpp_properties.json | 2 -- configure.py | 1 - spm-headers/README.md | 4 ---- spm-headers/configure.py | 2 +- spm-headers/include/common.h | 7 +------ 5 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.vscode.example/c_cpp_properties.json b/.vscode.example/c_cpp_properties.json index 8ee54ba..eb13512 100644 --- a/.vscode.example/c_cpp_properties.json +++ b/.vscode.example/c_cpp_properties.json @@ -9,7 +9,6 @@ ], "defines": [ "DECOMP", - "SKIP_PPCDIS", "SPM_EU0" ], "cStandard": "c99", @@ -33,7 +32,6 @@ ], "defines": [ "DECOMP", - "SKIP_PPCDIS", "SPM_EU0" ], "cStandard": "c99", diff --git a/configure.py b/configure.py index 6ea53cc..5317e69 100644 --- a/configure.py +++ b/configure.py @@ -189,7 +189,6 @@ # spm-headers "-DDECOMP", - "-DSKIP_PPCDIS", f"-DSPM_{config.version.upper()}", f"-i {SPM_HEADERS}/include", f"-i {SPM_HEADERS}/decomp", diff --git a/spm-headers/README.md b/spm-headers/README.md index 2015dcd..03268d2 100644 --- a/spm-headers/README.md +++ b/spm-headers/README.md @@ -21,10 +21,6 @@ It is recommended to use this with [git subrepo](https://github.com/ingydotnet/g For use in decomp, the `include` and `decomp` folders should be added to the include path, and the preprocessor define `DECOMP` should be used. -### Testing - -The `SKIP_PPCDIS` preprocessor define will stop `ppcdis.h` being included. - ## Mods For use in mods, the `include` and `mod` folder should be added to the include path and an lst from `linker` should be used. If including your compiler's C++ standard library, the preprocessor define `USE_STL` should be used. diff --git a/spm-headers/configure.py b/spm-headers/configure.py index 14927e5..b18969f 100644 --- a/spm-headers/configure.py +++ b/spm-headers/configure.py @@ -245,7 +245,7 @@ def test_old_mod_ctx(regions: List[str]): def test_decomp_ctx(regions: List[str]): assert args.codewarrior, "Error: decomp_ctx test requires --codewarrior" compile_regions(os.path.join("$builddir", "{region}", "decomp.o"), "$decomp_source", regions, - DECOMP_INCLUDES, ["DECOMP", "SKIP_PPCDIS"], True) + DECOMP_INCLUDES, ["DECOMP"], True) # Test shuffled include orders def test_mod_ctx_shuffle(regions: List[str]): diff --git a/spm-headers/include/common.h b/spm-headers/include/common.h index ede2b25..5d15183 100644 --- a/spm-headers/include/common.h +++ b/spm-headers/include/common.h @@ -1,12 +1,7 @@ #pragma once -#if (defined DECOMP) && !(defined SKIP_PPCDIS) -// Decomp should include ppcdis.h in all files -#include -#else -// Unknown function is useful outside of decomp too +// Unknown function declaration #define UNKNOWN_FUNCTION(name) void name(void) -#endif // Intellisense doesn't like asm compiler extensions #ifdef __INTELLISENSE__