1 |
using System; |
#region Logging Defines |
2 |
|
// include this any class or method that required logging, and comment-out what is not needed |
3 |
|
|
4 |
|
#region Enabled logging levels |
5 |
|
#define LOGGING_ENABLE_INFO |
6 |
|
#define LOGGING_ENABLE_WARN |
7 |
|
#define LOGGING_ENABLE_DEBUG |
8 |
|
//#define LOGGING_ENABLE_VERBOSEDEBUG |
9 |
|
#define LOGGING_ENABLE_ERROR |
10 |
|
#define LOGGING_ENABLE_VERBOSEERROR |
11 |
|
#define LOGGING_ENABLE_PROFILER |
12 |
|
#endregion |
13 |
|
#endregion |
14 |
|
using System; |
15 |
using System.Collections.Generic; |
using System.Collections.Generic; |
16 |
using System.ComponentModel; |
using System.ComponentModel; |
17 |
using System.Data; |
using System.Data; |
21 |
using System.Windows.Forms; |
using System.Windows.Forms; |
22 |
using WeifenLuo.WinFormsUI.Docking; |
using WeifenLuo.WinFormsUI.Docking; |
23 |
using RomCheater.PluginFramework.Core; |
using RomCheater.PluginFramework.Core; |
24 |
|
using RomCheater.Logging; |
25 |
|
|
26 |
namespace RomCheater.EmuMMAPPlugin |
namespace RomCheater.EmuMMAPPlugin |
27 |
{ |
{ |
33 |
public EmuMEMMapDockControl(UserControlPlugin plugin) |
public EmuMEMMapDockControl(UserControlPlugin plugin) |
34 |
{ |
{ |
35 |
this.plugin = plugin; |
this.plugin = plugin; |
36 |
|
InitPluginFramework(); |
37 |
InitializeComponent(); |
InitializeComponent(); |
38 |
CreateMaps(); |
CreateMaps(); |
39 |
} |
} |
40 |
|
private void InitPluginFramework() |
41 |
|
{ |
42 |
|
if (this.plugin == null) { return; } |
43 |
|
this.plugin.OnSelectedProcessChanged += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged); |
44 |
|
this.plugin.OnSelectedConfigChanged += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged); |
45 |
|
this.plugin.OnPEDataUpdated += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated); |
46 |
|
} |
47 |
|
void plugin_OnPEDataUpdated(PluginFramework.Events.PEViewerDataUpdatedEventArgs e) |
48 |
|
{ |
49 |
|
logger.Warn.WriteLine("plugin_OnPEDataUpdated::has not been implemented!"); |
50 |
|
} |
51 |
|
void plugin_OnSelectedConfigChanged(PluginFramework.Events.ConfigChangedEventArgs e) |
52 |
|
{ |
53 |
|
logger.Warn.WriteLine("plugin_OnSelectedConfigChanged::has not been implemented!"); |
54 |
|
} |
55 |
|
void plugin_OnSelectedProcessChanged(PluginFramework.Events.ProcessChangedEventArgs e) |
56 |
|
{ |
57 |
|
logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!"); |
58 |
|
} |
59 |
private void EmuMEMMapDockControl_Shown(object sender, EventArgs e) |
private void EmuMEMMapDockControl_Shown(object sender, EventArgs e) |
60 |
{ |
{ |
61 |
txtDeviceMap.Clear(); |
txtDeviceMap.Clear(); |