code cleanup
This commit is contained in:
parent
de43f874b8
commit
2cd8fdd6e3
3 changed files with 1 additions and 21 deletions
|
@ -16,7 +16,7 @@ namespace WeeXnes.Core
|
||||||
public static string encryptionKey = "8zf5#RdyQ]$4x4_";
|
public static string encryptionKey = "8zf5#RdyQ]$4x4_";
|
||||||
public static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "WeeXnes");
|
public static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "WeeXnes");
|
||||||
public static string SettingsFileName = "settings.ini";
|
public static string SettingsFileName = "settings.ini";
|
||||||
public static string version = "3.6.2";
|
public static string version = "3.6.3";
|
||||||
public static bool info_isRpcRunning = false;
|
public static bool info_isRpcRunning = false;
|
||||||
public static bool info_RpcAutoStart;
|
public static bool info_RpcAutoStart;
|
||||||
public static string apiUrl = "http://weexnes.com:5169/";
|
public static string apiUrl = "http://weexnes.com:5169/";
|
||||||
|
|
|
@ -84,15 +84,8 @@ namespace WeeXnes.MVVM.View
|
||||||
public void writeLog(customEvent _content, bool _timestamp = true)
|
public void writeLog(customEvent _content, bool _timestamp = true)
|
||||||
{
|
{
|
||||||
string timestamp = DateTime.Now.ToString("HH:mm:ss");
|
string timestamp = DateTime.Now.ToString("HH:mm:ss");
|
||||||
/*if (_timestamp)
|
|
||||||
{
|
|
||||||
_content = "[" + timestamp + "] " + _content;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
this.Dispatcher.Invoke(() =>
|
this.Dispatcher.Invoke(() =>
|
||||||
{
|
{
|
||||||
//RpcLog.AppendText(_content + "\n");
|
|
||||||
//RpcLog.ScrollToEnd();
|
|
||||||
|
|
||||||
ListViewVersions.Items.Add(_content);
|
ListViewVersions.Items.Add(_content);
|
||||||
LogViewer.ScrollToEnd();
|
LogViewer.ScrollToEnd();
|
||||||
|
|
|
@ -110,14 +110,7 @@ namespace WeeXnes.RPC
|
||||||
{
|
{
|
||||||
if (foundProcess)
|
if (foundProcess)
|
||||||
{
|
{
|
||||||
//Do when Process is launched
|
|
||||||
//message.running(this.ProcessName);
|
|
||||||
start();
|
start();
|
||||||
|
|
||||||
/*
|
|
||||||
Globals.logContent.Value = output;
|
|
||||||
Globals.logUpdateTrigger.Value = "mjfgoklemkgoeg";
|
|
||||||
*/
|
|
||||||
DiscordRpcView.logContent = new customEvent("↪ " + this.Name + " [" + this.ProcessName + ".exe] started", EventType.ProcessStartedEvent);
|
DiscordRpcView.logContent = new customEvent("↪ " + this.Name + " [" + this.ProcessName + ".exe] started", EventType.ProcessStartedEvent);
|
||||||
DiscordRpcView.triggerLogupdate.Value = "nlejgmolegjog";
|
DiscordRpcView.triggerLogupdate.Value = "nlejgmolegjog";
|
||||||
this.isRunning = true;
|
this.isRunning = true;
|
||||||
|
@ -127,13 +120,7 @@ namespace WeeXnes.RPC
|
||||||
{
|
{
|
||||||
if (!foundProcess)
|
if (!foundProcess)
|
||||||
{
|
{
|
||||||
//Do when Process is closed
|
|
||||||
//message.closed(this.ProcessName);
|
|
||||||
stop();
|
stop();
|
||||||
/*
|
|
||||||
Globals.logContent.Value = output;
|
|
||||||
Globals.logUpdateTrigger.Value = "mjfgoklemkgoeg";
|
|
||||||
*/
|
|
||||||
DiscordRpcView.logContent = new customEvent( "↩ " + this.Name + " [" + this.ProcessName + ".exe] closed", EventType.ProcessStoppedEvent);
|
DiscordRpcView.logContent = new customEvent( "↩ " + this.Name + " [" + this.ProcessName + ".exe] closed", EventType.ProcessStoppedEvent);
|
||||||
DiscordRpcView.triggerLogupdate.Value = "nlejgmolegjog";
|
DiscordRpcView.triggerLogupdate.Value = "nlejgmolegjog";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue