Skip to content

Commit

Permalink
Oops wrong names lol
Browse files Browse the repository at this point in the history
  • Loading branch information
archie426 committed Jul 27, 2020
1 parent cdd188a commit b20b045
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions RocketToOpenMod/API/Job.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ protected async Task<PermissionRoleData> GetRoleFromRocketGroup(RocketPermission
data.Permissions.Add(rocketPerm.Name);

return data;

}

protected Job(WriteFileType write, string name)
Expand All @@ -51,7 +50,7 @@ protected Job(WriteFileType write, string name)
protected async Task<RocketPermissions> LoadRocketPermissionsAsync()
{
Console.WriteLine("[~] Loading Rocket permissions");
FileStream stream = File.Open("Rocket.Permissions.xml", FileMode.Open);
FileStream stream = File.Open("Permissions.Config.xml", FileMode.Open);
RocketPermissions rocket = (RocketPermissions) new XmlSerializer(typeof(RocketPermissions)).Deserialize(stream);
stream.Close();
return rocket;
Expand All @@ -60,7 +59,7 @@ protected async Task<RocketPermissions> LoadRocketPermissionsAsync()
protected async Task<TranslationList> LoadTranslationsAsync()
{
Console.WriteLine("[~] Loading Rocket translations");
FileStream stream = File.Open("Rocket.Translations.xml", FileMode.Open);
FileStream stream = File.Open("Rocket.en.translation.xml", FileMode.Open);
TranslationList rocket = (TranslationList) new XmlSerializer(typeof(TranslationList)).Deserialize(stream);
stream.Close();
return rocket;
Expand Down
2 changes: 1 addition & 1 deletion RocketToOpenMod/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static async Task Main(string[] args)
Console.WriteLine("RocketMod to OpenMod");
Console.WriteLine("If you haven't already please place this file inside the Rocket folder");

if (!File.Exists("Rocket.Permissions.Xml"))
if (!File.Exists("Permissions.Config.Xml"))
{
Console.WriteLine("Wrong folder! Exiting");
await Task.Delay(3000);
Expand Down
Binary file not shown.

0 comments on commit b20b045

Please sign in to comment.