This is a custom patcher for applying modifications to firefox source code. It processes patch files located in the `./patches` directory and applies them to files in a specified root path.
</p>
## How to Use
1. Place your patch files in the `./patches` directory. Example of patch file:
Here are the details of each parameter used in the patching system:
### **`i:` (Input)**
- Specifies the input file to which the patch should be applied.
- This is the file that will be read and modified based on the patch instructions.
- **Example:**
```
i:/browser/branding/official/configure.sh
```
- This means the input file is located at `/browser/branding/official/configure.sh`.
### **`o:` (Output)**
- Specifies the output file where the modified content will be saved.
- If the input and output paths are the same, the original file will be overwritten.
- **Example:**
```
o:/browser/branding/official/configure.sh
```
- This means the output file is `/browser/branding/official/configure.sh`.
### **`t:` (Type)**
- Defines the type of patch being applied. This parameter can be skipped if not applicable.
- Common types:
1.**`pref`:** Indicates that the patch is modifying preference settings (e.g., Firefox `prefs.js`).
- When `t:pref` is specified, the script will search for existing preferences in the input file and replace them with the new ones provided in the patch. If not found, it will add the new preference.