Separated DirectX content from:

1) dll entry functions
2) Server (inside the dll)
3) Server-Client interface.

uMod now detects if a DirectX device was created and is under "control" of uMod (a counter is shown after the game name). Thus if the injection did not work properly, uMod wont show a DX9 or DX9EX count.
This commit is contained in:
code@koerner-de.net
2012-03-22 20:35:16 +00:00
parent 0c11963a9c
commit 56844968e4
52 changed files with 1329 additions and 1416 deletions
+10 -1
View File
@@ -38,7 +38,13 @@ public:
// You *must* copy here the data to be transported
uMod_Event( const uMod_Event &event )
: wxCommandEvent(event) { this->SetText( event.GetText()); PipeIn=((uMod_Event&)event).GetPipeIn(); PipeOut=((uMod_Event&)event).GetPipeOut(); Name=((uMod_Event&)event).GetName(); Client=((uMod_Event&)event).GetClient();}
: wxCommandEvent(event)
{ this->SetText( event.GetText());
Value=((uMod_Event&)event).GetValue();
PipeIn=((uMod_Event&)event).GetPipeIn(); PipeOut=((uMod_Event&)event).GetPipeOut();
Name=((uMod_Event&)event).GetName();
Client=((uMod_Event&)event).GetClient();
}
// Required for sending with wxPostEvent()
wxEvent* Clone() const { return new uMod_Event(*this); }
@@ -46,11 +52,13 @@ public:
wxString GetText() const { return m_Text; }
void SetText( const wxString& text ) { m_Text = text; }
int GetValue(void) {return Value;}
wxString GetName(void) {return Name;}
HANDLE GetPipeIn(void) {return PipeIn;}
HANDLE GetPipeOut(void) {return PipeOut;}
uMod_Client * GetClient(void) {return Client;}
void SetValue(int value) {Value=value;}
void SetName( wxString name) {Name=name;}
void SetPipeIn( HANDLE pipe) {PipeIn=pipe;}
void SetPipeOut( HANDLE pipe) {PipeOut=pipe;}
@@ -58,6 +66,7 @@ public:
private:
int Value;
wxString Name;
HANDLE PipeIn;
HANDLE PipeOut;