From 46ef6c6f48bb33c057904f29934bbdbdd22c91ab Mon Sep 17 00:00:00 2001 From: NeKzor Date: Fri, 29 Dec 2017 20:06:32 +0100 Subject: [PATCH] Update to 1.5 --- README.md | 4 ++-- src/Injector/Program.cs | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index adb44e40..8b2255ae 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Version](https://img.shields.io/badge/version-v1.4-brightgreen.svg)](https://github.com/NeKzor/SourceAutoRecord/projects/1) +[![Build Version](https://img.shields.io/badge/version-v1.5-brightgreen.svg)](https://github.com/NeKzor/SourceAutoRecord/projects/1) [![Release Status](https://img.shields.io/github/release/NeKzor/SourceAutoRecord/all.svg)](https://github.com/NeKzor/SourceAutoRecord/releases) **SourceAutoRecord** allows automatic demo recording, automatic binding, demo parsing, session timing and [much more](#features). @@ -18,7 +18,7 @@ - [Optional](#optional) - [Stats](#stats) - [Cheats](#cheats) - - [Accessible](#accessible) + - [Unlocked](#unlocked) - [Patches](#patches) - [Config](#config) - [Mapping](#mapping) diff --git a/src/Injector/Program.cs b/src/Injector/Program.cs index 917c636b..7a485eb4 100644 --- a/src/Injector/Program.cs +++ b/src/Injector/Program.cs @@ -84,11 +84,7 @@ string Inject(Process processToInject, string dllPath) } } - if (proc == null) - { - Console.WriteLine($"Could not find supported process!"); - } - else + if (proc != null) { var result = Inject(proc, dll); if (!string.IsNullOrEmpty(result)) @@ -96,6 +92,9 @@ string Inject(Process processToInject, string dllPath) else Console.WriteLine($"Successfully injected {dll} into process {proc.ProcessName}!"); } + else + Console.WriteLine($"Could not find supported process!"); + Console.ReadKey(); } }