From b0a5746b6e96a64d3805c22c0bd703dac88ef4bc Mon Sep 17 00:00:00 2001 From: zervo Date: Fri, 15 Nov 2024 14:59:35 +0100 Subject: [PATCH] Update Development --- Development.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Development.md b/Development.md index 3eae64b..1090808 100644 --- a/Development.md +++ b/Development.md @@ -16,4 +16,13 @@ Here are instructions for setting up your development environment. **4.** Open the `Directory.Build.props` file located in your `DevDir` and change the path to your `ReferenceDir`. Can be relative or absolute. -**5.** Open your `DevDir` in your IDE and you're done! You have now set up your development environment. \ No newline at end of file +**5.** Open your `DevDir` in your IDE and you're done! You have now set up your development environment. + +## **Patching** + +The patching process is explained in multiple of the websites linked in [Resources](https://git.zervo.org/zervo/SEB-Patcher/wiki/Resources). + +If you are targeting a namespace with internal/protected classes, you need to publicize it first. This is done using a tool like [NStrip](https://github.com/bbepis/NStrip). +It essentially just creates a copy of the provided input file, with all classes/methods made public so that you can reference them in your solution. + +An example of this in SEB is the SafeExamBrowser.Client namespace, however at the time of writing I am yet to actually create a patch for that class. Why? Because as soon as I modify it, the chromium browser (or maybe something else) within SEB seems to malfunction and just displays a white page without loading the exam. Being able to modify classes in this namespace could be very useful though, so any solution to this problem is greatly appreciated. \ No newline at end of file