Skip to content

Commit

Permalink
Spelling is hard
Browse files Browse the repository at this point in the history
  • Loading branch information
keton committed Jan 22, 2024
1 parent adac7b8 commit 856f9a2
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: chiuaua
name: chihuahua
path: ${{github.workspace}}/publish/*.*
if-no-files-found: error
12 changes: 6 additions & 6 deletions Chiuaua.cs → Chihuahua.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
using System.CommandLine.Parsing;
using System.CommandLine.Help;
using Spectre.Console;
using chiuaua;
using chihuahua;
using System.Text;

internal class Chiuaua {
internal class Chihuahua {
private enum ConsoleCtrlType {
CTRL_C_EVENT = 0,
CTRL_BREAK_EVENT = 1,
Expand Down Expand Up @@ -51,7 +51,7 @@ private static int ParseArgs(string[] args) {
var gameExeArgument = new Argument<FileInfo>(name: "full path to game.exe", description: "Unreal Engine executable to spawn and inject");
var verboseOption = new Option<bool>(aliases: ["--verbose", "-v"], description: "enable debug output");

var rootCommand = new RootCommand("No frills UEVR injector. Chiuaua goes where bigger dogs won't.") {
var rootCommand = new RootCommand("No frills UEVR injector. Chihuahua goes where bigger dogs won't.") {
delayOption,
launchCmdOption,
launchCmdArgsOption,
Expand All @@ -67,7 +67,7 @@ private static int ParseArgs(string[] args) {

ctx.HelpBuilder.CustomizeLayout(_ => HelpBuilder.Default.GetLayout()
.Append(_ => {
AnsiConsole.MarkupLine("Chiuaua is a good dogo!");
AnsiConsole.MarkupLine("Chihuahua is a good dogo!");
AnsiConsole.Write(new Padder(new Markup("It will take care of downloading necessary .dlls, removing pesky VR plugins and streamline whole injection process."
+ "\n\nIn case of any error console window with explanation will wait for you when you exit your game."
+ "If main game process exits it will clean up the leftovers and terminate. [underline]No window afterwards is a good sign.[/]"
Expand All @@ -82,7 +82,7 @@ private static int ParseArgs(string[] args) {
var width = AnsiConsole.Profile.Width;
AnsiConsole.Profile.Width = 400;

AnsiConsole.Write(new Padder(new Markup("[dim]chiuaua \"D:\\Games\\SteamLibrary\\steamapps\\common\\The Entropy Centre\\Project_Kilo\\Binaries\\Win64\\EntropyCentre-Win64-Shipping.exe\" --launch-cmd \"steam://rungameid/1730590\" --delay 10[/]")).Padding(2, 0));
AnsiConsole.Write(new Padder(new Markup("[dim]chihuahua \"D:\\Games\\SteamLibrary\\steamapps\\common\\The Entropy Centre\\Project_Kilo\\Binaries\\Win64\\EntropyCentre-Win64-Shipping.exe\" --launch-cmd \"steam://rungameid/1730590\" --delay 10[/]")).Padding(2, 0));

AnsiConsole.Profile.Width = width;

Expand Down Expand Up @@ -145,7 +145,7 @@ private static async Task RunAndInject(string gameExe, string? launchCmd, string
Helpers.ExitWithMessage($"Files still missing after download, you may want to add [dim]{ownExePath}[/] to your antivirus exceptions");
}
} else {
if(await Helpers.UpdateUEVRAsync() == false) {
if (await Helpers.UpdateUEVRAsync() == false) {
Logger.Warn("Failed to check UEVR updates");
}
}
Expand Down
4 changes: 2 additions & 2 deletions Helpers.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using chiuaua;
using chihuahua;
using GitHub;
using GitHub.Client;
using Microsoft.Extensions.FileSystemGlobbing;
Expand Down Expand Up @@ -174,7 +174,7 @@ public static async Task<bool> UpdateUEVRAsync(bool forceDownload = false) {

Logger.Debug($"Latest version: {latestRelease.TagName}");

// don't update if version file is missing. Allows manual unpacking UEVR to chiuaua directory
// don't update if version file is missing. Allows manual unpacking UEVR to chihuahua directory
if (forceDownload || ((currentVersion != latestRelease.TagName) && (currentVersion != ""))) {
Logger.Info($"Updating UEVR to {latestRelease.TagName}");

Expand Down
2 changes: 1 addition & 1 deletion Injector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Runtime.InteropServices;
using System.Text;

namespace chiuaua {
namespace chihuahua {
/*
* Shamelessly stolen from UEVR frontend: https://github.com/praydog/uevr-frontend/blob/main/UEVR/Injector.cs
*
Expand Down
2 changes: 1 addition & 1 deletion Logger.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Spectre.Console;

namespace chiuaua {
namespace chihuahua {
internal static class Logger {

public static bool verbose = false;
Expand Down
2 changes: 1 addition & 1 deletion Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"profiles": {
"chiuaua": {
"chihuahua": {
"commandName": "Project",
"commandLineArgs": "\"D:\\Games\\SteamLibrary\\steamapps\\common\\The Entropy Centre\\EntropyCentre.exe\" --delay 20 --verbose"
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion chiuaua.sln → chihuahua.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34408.163
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "chiuaua", "chiuaua.csproj", "{34DA4CDC-DA3C-451F-86AF-EBE22161BA2C}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "chihuahua", "chihuahua.csproj", "{34DA4CDC-DA3C-451F-86AF-EBE22161BA2C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
7 changes: 5 additions & 2 deletions rai-pal-manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"version": "0.1",
"runnable": {
"path": "chiuaua.exe",
"path": "chihuahua.exe",
"args": [
"{{ExecutablePath}}", "--delay", "20", "--launch-cmd", "{{StartCommand}}", "--launch-args", "{{StartCommandArgs}}"
"{{ExecutablePath}}",
"--delay", "20",
"--launch-cmd", "{{StartCommand}}",
"--launch-args", "{{StartCommandArgs}}"
]
},
"engine": "Unreal",
Expand Down

0 comments on commit 856f9a2

Please sign in to comment.