Skip to content

Commit

Permalink
Use PascalCase filenames
Browse files Browse the repository at this point in the history
Signed-off-by: Visual Ehrmanntraut <[email protected]>
  • Loading branch information
VisualEhrmanntraut committed Sep 12, 2023
1 parent eae2a4f commit 61c9c98
Show file tree
Hide file tree
Showing 26 changed files with 135 additions and 135 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ DerivedData/
!*.xcworkspace/contents.xcworkspacedata
**/xcshareddata/WorkspaceSettings.xcsettings
/Lilu.kext
/NootedRed/kern_fw.cpp
/NootedRed/Firmware.cpp
.vscode/
.cache/
CompilationDatabase/
Expand Down
170 changes: 85 additions & 85 deletions NootedRed.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions NootedRed/kern_dyld_patches.cpp → NootedRed/DYLDPatches.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright © 2022-2023 ChefKiss Inc. Licensed under the Thou Shalt Not Profit License version 1.5. See LICENSE for
// details.

#include "kern_dyld_patches.hpp"
#include "kern_nred.hpp"
#include "DYLDPatches.hpp"
#include "NRed.hpp"
#include <Headers/kern_api.hpp>
#include <Headers/kern_devinfo.hpp>
#include <IOKit/IODeviceTreeSupport.h>
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions NootedRed/kern_hdmi.cpp → NootedRed/HDMI.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright © 2022-2023 ChefKiss Inc. Licensed under the Thou Shalt Not Profit License version 1.0. See LICENSE for
// details.

#include "kern_hdmi.hpp"
#include "kern_nred.hpp"
#include "kern_patcherplus.hpp"
#include "HDMI.hpp"
#include "NRed.hpp"
#include "PatcherPlus.hpp"
#include <Headers/kern_api.hpp>

static const char *pathAppleGFXHDA = "/System/Library/Extensions/AppleGFXHDA.kext/Contents/MacOS/AppleGFXHDA";
Expand Down
2 changes: 1 addition & 1 deletion NootedRed/kern_hdmi.hpp → NootedRed/HDMI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// details.

#pragma once
#include "kern_amd.hpp"
#include "AMDCommon.hpp"
#include <Headers/kern_patcher.hpp>
#include <Headers/kern_util.hpp>

Expand Down
6 changes: 3 additions & 3 deletions NootedRed/kern_hwlibs.cpp → NootedRed/HWLibs.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright © 2022-2023 ChefKiss Inc. Licensed under the Thou Shalt Not Profit License version 1.5. See LICENSE for
// details.

#include "kern_hwlibs.hpp"
#include "kern_nred.hpp"
#include "kern_patcherplus.hpp"
#include "HWLibs.hpp"
#include "NRed.hpp"
#include "PatcherPlus.hpp"
#include <Headers/kern_api.hpp>

static const char *pathRadeonX5000HWLibs = "/System/Library/Extensions/AMDRadeonX5000HWServices.kext/Contents/PlugIns/"
Expand Down
2 changes: 1 addition & 1 deletion NootedRed/kern_hwlibs.hpp → NootedRed/HWLibs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// details.

#pragma once
#include "kern_amd.hpp"
#include "AMDCommon.hpp"
#include <Headers/kern_patcher.hpp>
#include <Headers/kern_util.hpp>

Expand Down
File renamed without changes.
18 changes: 9 additions & 9 deletions NootedRed/kern_nred.cpp → NootedRed/NRed.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Copyright © 2022-2023 ChefKiss Inc. Licensed under the Thou Shalt Not Profit License version 1.5. See LICENSE for
// details.

#include "kern_nred.hpp"
#include "kern_dyld_patches.hpp"
#include "kern_hdmi.hpp"
#include "kern_hwlibs.hpp"
#include "kern_model.hpp"
#include "kern_patcherplus.hpp"
#include "kern_x5000.hpp"
#include "kern_x6000.hpp"
#include "kern_x6000fb.hpp"
#include "NRed.hpp"
#include "DYLDPatches.hpp"
#include "HDMI.hpp"
#include "HWLibs.hpp"
#include "Model.hpp"
#include "PatcherPlus.hpp"
#include "X5000.hpp"
#include "X6000.hpp"
#include "X6000FB.hpp"
#include <Headers/kern_api.hpp>
#include <Headers/kern_devinfo.hpp>

Expand Down
6 changes: 3 additions & 3 deletions NootedRed/kern_nred.hpp → NootedRed/NRed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// details.

#pragma once
#include "kern_amd.hpp"
#include "kern_fw.hpp"
#include "kern_vbios.hpp"
#include "AMDCommon.hpp"
#include "ATOMBIOS.hpp"
#include "Firmware.hpp"
#include <Headers/kern_patcher.hpp>
#include <IOKit/acpi/IOACPIPlatformExpert.h>
#include <IOKit/graphics/IOFramebuffer.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright © 2022-2023 ChefKiss Inc. Licensed under the Thou Shalt Not Profit License version 1.5. See LICENSE for
// details.

#include "kern_patcherplus.hpp"
#include "PatcherPlus.hpp"

bool SolveRequestPlus::solve(KernelPatcher &patcher, size_t id, mach_vm_address_t address, size_t maxSize) {
PANIC_COND(!this->address, "patcher+", "this->address is null");
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions NootedRed/kern_start.cpp → NootedRed/PluginStart.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright © 2022-2023 ChefKiss Inc. Licensed under the Thou Shalt Not Profit License version 1.5. See LICENSE for
// details.

#include "kern_nred.hpp"
#include "kern_x6000fb.hpp"
#include "NRed.hpp"
#include "X6000FB.hpp"
#include <Headers/kern_api.hpp>
#include <Headers/kern_version.hpp>
#include <Headers/plugin_start.hpp>
Expand Down
8 changes: 4 additions & 4 deletions NootedRed/kern_x5000.cpp → NootedRed/X5000.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright © 2022-2023 ChefKiss Inc. Licensed under the Thou Shalt Not Profit License version 1.5. See LICENSE for
// details.

#include "kern_x5000.hpp"
#include "kern_nred.hpp"
#include "kern_patcherplus.hpp"
#include "kern_x6000.hpp"
#include "X5000.hpp"
#include "NRed.hpp"
#include "PatcherPlus.hpp"
#include "X6000.hpp"
#include <Headers/kern_api.hpp>

static const char *pathRadeonX5000 = "/System/Library/Extensions/AMDRadeonX5000.kext/Contents/MacOS/AMDRadeonX5000";
Expand Down
2 changes: 1 addition & 1 deletion NootedRed/kern_x5000.hpp → NootedRed/X5000.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// details.

#pragma once
#include "kern_amd.hpp"
#include "AMDCommon.hpp"
#include <Headers/kern_patcher.hpp>

class X5000 {
Expand Down
8 changes: 4 additions & 4 deletions NootedRed/kern_x6000.cpp → NootedRed/X6000.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright © 2022-2023 ChefKiss Inc. Licensed under the Thou Shalt Not Profit License version 1.5. See LICENSE for
// details.

#include "kern_x6000.hpp"
#include "kern_nred.hpp"
#include "kern_patcherplus.hpp"
#include "kern_x5000.hpp"
#include "X6000.hpp"
#include "NRed.hpp"
#include "PatcherPlus.hpp"
#include "X5000.hpp"
#include <Headers/kern_api.hpp>

static const char *pathRadeonX6000 = "/System/Library/Extensions/AMDRadeonX6000.kext/Contents/MacOS/AMDRadeonX6000";
Expand Down
2 changes: 1 addition & 1 deletion NootedRed/kern_x6000.hpp → NootedRed/X6000.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// details.

#pragma once
#include "kern_amd.hpp"
#include "AMDCommon.hpp"
#include <Headers/kern_patcher.hpp>

class X6000 {
Expand Down
6 changes: 3 additions & 3 deletions NootedRed/kern_x6000fb.cpp → NootedRed/X6000FB.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright © 2022-2023 ChefKiss Inc. Licensed under the Thou Shalt Not Profit License version 1.5. See LICENSE for
// details.

#include "kern_x6000fb.hpp"
#include "kern_nred.hpp"
#include "kern_patcherplus.hpp"
#include "X6000FB.hpp"
#include "NRed.hpp"
#include "PatcherPlus.hpp"
#include <Headers/kern_api.hpp>

static const char *pathRadeonX6000Framebuffer =
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions Scripts/FwGen.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

target_file="${PROJECT_DIR}/NootedRed/kern_fw.cpp"
target_file="${PROJECT_DIR}/NootedRed/Firmware.cpp"
if [ -f "$target_file" ]; then
rm -f "$target_file"
fi
Expand All @@ -16,4 +16,4 @@ do
done

script_file="${PROJECT_DIR}/Scripts/GenerateFirmware.py"
python3 "${script_file}" "${target_file}" "${fw_files}"
python3 "${script_file}" "${target_file}" "${fw_files}"
2 changes: 1 addition & 1 deletion Scripts/GenerateFirmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Copyright © 2022-2023 ChefKiss Inc. Licensed under the Thou Shalt Not Profit License version 1.5. See LICENSE for
// details.
#include "kern_fw.hpp"
#include "Firmware.hpp"
'''


Expand Down
16 changes: 8 additions & 8 deletions Scripts/NRedWrapGen.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,18 @@ def locate_line(lines: list[str], needle: str) -> int:


moduleToClass = {
"hwlibs": "X5000HWLibs",
"x5000": "X5000",
"x6000": "X6000",
"x6000fb": "X6000FB",
"agfxhda": "AppleGFXHDA"
"HWLibs": "X5000HWLibs",
"X5000": "X5000",
"X6000": "X6000",
"X6000FB": "X6000FB",
"HDMI": "HDMI",
}

module: str = input("Filename without extension: ./NootedRed/kern_")
module: str = input("Filename without extension: ./NootedRed/")
assert module in moduleToClass
className = moduleToClass[module]
cpp_path: str = f"./NootedRed/kern_{module}.cpp"
hpp_path: str = f"./NootedRed/kern_{module}.hpp"
cpp_path: str = f"./NootedRed/{module}.cpp"
hpp_path: str = f"./NootedRed/{module}.hpp"

with open(cpp_path) as cpp_file:
cpp_lines: list[str] = cpp_file.readlines()
Expand Down

0 comments on commit 61c9c98

Please sign in to comment.