Skip to content

Commit 673c49c

Browse files
committed
Updating readme and workflow. Added a missed change
1 parent 6150fa2 commit 673c49c

14 files changed

Lines changed: 36 additions & 15 deletions

.github/workflows/master-build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Build ReClass.NET Master
1+
name: Build ReClass.NET
22

33
on:
44
push:
55
branches:
6-
- master
6+
- '**'
77

88
jobs:
99
build:

README.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# ReClass.NET
22
This is a port of ReClass to the .NET platform with lots of additional features.
33

4-
## Changes from base
4+
![](docs/readme_image_1_overview.jpg)
5+
6+
## Changes from upstream
7+
58
Merged the following pull requests:
69
- #228: Github action to build latest master push (Completely rewritten now)
710
- #262: Various Quality of Life features
@@ -11,7 +14,11 @@ Merged the following pull requests:
1114

1215
Added the following features:
1316
- Added reclassex project file importing
14-
- Added **{ClassName}** support to the address field
17+
- Added **{ClassName}** support to the address field (Super ugly implmentation, but I don't want to refactor that much)
18+
19+
The tips section has been expanded with more useful information.
20+
21+
Builds can be download as Action artifacts from [here (Master branch)](https://github.com/piepieonline/ReClass.NET/actions?query=branch%3Amaster).
1522

1623
## Features
1724
- Support for x86 / x64
@@ -22,7 +29,7 @@ Added the following features:
2229
- Int 8 / 16 / 32 / 64
2330
- UInt 8 / 16 / 32 / 64
2431
- Bool
25-
- Bits ![](https://abload.de/img/bitsnhlql.jpg)
32+
- Bits ![](docs/readme_image_2_bits.jpg)
2633
- Enumerations
2734
- Float / Double
2835
- Vector 2 / 3 / 4
@@ -113,27 +120,27 @@ RUN apt-get update \
113120

114121
## Screenshots
115122
Process Selection
116-
![](https://abload.de/img/processgya2k.jpg)
123+
![](docs/readme_image_3_process.jpg)
117124

118125
Memory Viewer
119-
![](https://abload.de/img/memoryviewerb4y1s.jpg)
126+
![](docs/readme_image_4_memory_viewer.jpg)
120127

121128
Memory Scanner
122-
![](https://abload.de/img/scannerytub1.jpg)
129+
![](docs/readme_image_5_memory_scanner.jpg)
123130

124131
Pointer Preview
125-
![](https://abload.de/img/memorypreview2gsfp.jpg)
132+
![](docs/readme_image_6_pointer_preview.jpg)
126133

127134
Code Generator
128-
![](https://abload.de/img/codegeneratorqdat2.jpg)
129-
![](https://abload.de/img/codegenerator24qzce.jpg)
135+
![](docs/readme_image_7_codegen_1.jpg)
136+
![](docs/readme_image_8_codegen_2.jpg)
130137

131138
Plugins
132-
![](https://abload.de/img/plugin1mda4r.jpg)
133-
![](https://abload.de/img/plugin25dxk1.jpg)
139+
![](docs/readme_image_9_plugins.jpg)
140+
![](docs/readme_image_10_plugins_2.jpg)
134141

135142
Settings
136-
![](https://abload.de/img/settings8sz4b.jpg)
143+
![](docs/readme_image_11_settings.jpg)
137144

138145
## Authors / Special Thanks
139146
- [KN4CK3R](https://github.com/KN4CK3R)

ReClass.NET/AddressParser/DynamicCompiler.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections.Generic;
23
using System.Diagnostics.Contracts;
34
using System.Linq;
45
using System.Linq.Expressions;
@@ -12,6 +13,19 @@ namespace ReClassNET.AddressParser
1213
{
1314
public class DynamicCompiler : IExecutor
1415
{
16+
// TODO: Find a neater way to get the project context, which is only referenced in the UI currently.
17+
public interface IProjectContext
18+
{
19+
IReadOnlyList<ClassNode> Classes { get; }
20+
}
21+
22+
public class MainFormProjectContext : IProjectContext
23+
{
24+
public IReadOnlyList<ClassNode> Classes => MainForm.CurrentProject.Classes;
25+
}
26+
27+
public static IProjectContext projectContext = new MainFormProjectContext();
28+
1529
public IntPtr Execute(IExpression expression, IProcessReader processReader)
1630
{
1731
Contract.Requires(expression != null);
@@ -103,7 +117,7 @@ private static Expression GenerateMethodBody(IExpression expression, Expression
103117
}
104118
case TypeExpression typeExpression:
105119
{
106-
var classNode = MainForm.CurrentProject.Classes.Where(classNode => classNode.Name == typeExpression.Name).FirstOrDefault();
120+
var classNode = projectContext.Classes.Where(classNode => classNode.Name == typeExpression.Name).FirstOrDefault();
107121
var classNameConstant = Expression.Constant(classNode);
108122
var resolveFn = typeof(ClassUtil).GetRuntimeMethod(
109123
nameof(ClassUtil.ResolveClassAddress),

docs/readme_image_10_plugins_2.jpg

115 KB
Loading

docs/readme_image_11_settings.jpg

86.7 KB
Loading

docs/readme_image_1_overview.jpg

507 KB
Loading

docs/readme_image_2_bits.jpg

59.7 KB
Loading

docs/readme_image_3_process.jpg

193 KB
Loading
269 KB
Loading
167 KB
Loading

0 commit comments

Comments
 (0)