Skip to content

Commit

Permalink
rename PPL to PML
Browse files Browse the repository at this point in the history
  • Loading branch information
18107 committed Sep 19, 2021
1 parent 0647a3e commit 4666b72
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
title: "PPL v${{ steps.version.outputs.number }}"
title: "PML v${{ steps.version.outputs.number }}"
files: |
*.zip
Expand Down
6 changes: 3 additions & 3 deletions PulsarModLoader/Chat/Commands/DebugModeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public override void Execute(string arguments)
DebugMode = !DebugMode;

//Write new DebugMode value to settings xml file
PLXMLOptionsIO.Instance.CurrentOptions.SetStringValue("PPLDebugMode", DebugMode.ToString());
PLXMLOptionsIO.Instance.CurrentOptions.SetStringValue("PMLDebugMode", DebugMode.ToString());

//notify player of new DebugMode value
Messaging.Notification($"PPLDebugMode is now {DebugMode}");
Messaging.Notification($"PMLDebugMode is now {DebugMode}");
}

public string UsageExample()
Expand All @@ -39,7 +39,7 @@ class LoadSetting
{
static void Postfix()
{//load DebugMoad from settings.xml
if (bool.TryParse(PLXMLOptionsIO.Instance.CurrentOptions.GetStringValue("PPLDebugMode"), out bool result))
if (bool.TryParse(PLXMLOptionsIO.Instance.CurrentOptions.GetStringValue("PMLDebugMode"), out bool result))
{
DebugModeCommand.DebugMode = result;
}
Expand Down
2 changes: 1 addition & 1 deletion PulsarModLoader/CustomGUI/GUIMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void WindowFunction(int WindowID)
case 2:
GUI.skin.label.alignment = TextAnchor.MiddleCenter;
Label($"PulsarModLoader - Unofficial mod loader for PULSAR: Lost Colony.");
Label($"Version: {ModManager.Instance.PPLVersionInfo.FileVersion}");
Label($"Version: {ModManager.Instance.PMLVersionInfo.FileVersion}");
Label($"\n\nDeveloped by Tom Richter");
Label($"Contributors:\nDragonFire47\n18107\nBadRyuner");
BeginHorizontal();
Expand Down
4 changes: 2 additions & 2 deletions PulsarModLoader/ModManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ModManager
public delegate void ModUnloaded(PulsarMod mod);
public event ModLoaded OnModSuccessfullyLoaded;
public event ModUnloaded OnModUnloaded;
public FileVersionInfo PPLVersionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location);
public FileVersionInfo PMLVersionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location);

private readonly Dictionary<string, PulsarMod> activeMods;
private readonly HashSet<string> modDirectories;
Expand All @@ -38,7 +38,7 @@ public static ModManager Instance

public ModManager()
{
Logger.Info($"Starting {PPLVersionInfo.ProductName} v{PPLVersionInfo.FileVersion}");
Logger.Info($"Starting {PMLVersionInfo.ProductName} v{PMLVersionInfo.FileVersion}");

activeMods = new Dictionary<string, PulsarMod>();
modDirectories = new HashSet<string>();
Expand Down
4 changes: 2 additions & 2 deletions PulsarModLoader/ModMessage/ModMessageHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ public void ReceiveMessage(string modID, object[] arguments, PhotonMessageInfo p
}
}
[PunRPC]
public void ReceiveConnectionMessage(string modList, string PPLVersion, PhotonMessageInfo pmi) //Pong
public void ReceiveConnectionMessage(string modList, string PMLVersion, PhotonMessageInfo pmi) //Pong
{
PhotonPlayer sender = pmi.sender;
Utilities.Logger.Info($"ConnectionMessage received message from a sender with the following PPL Version and modlist:\nPPLVersion: {PPLVersion}\nModlist:\n{modList}");
Utilities.Logger.Info($"ConnectionMessage received message from a sender with the following PML Version and modlist:\nPMLVersion: {PMLVersion}\nModlist:\n{modList}");

if (!PlayersWithMods.ContainsKey(sender))
{
Expand Down
2 changes: 1 addition & 1 deletion PulsarModLoader/Utilities/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static Logger()

public static void Info(string message)
{
string line = $"[PPL] {message}";
string line = $"[PML] {message}";

Console.WriteLine(line);

Expand Down

0 comments on commit 4666b72

Please sign in to comment.