資源簡介
CE官方6.8.3源碼

代碼片段和文件信息
/*
?*?api.c
?*
?*??Created?on:?Jul?20?2011
?*??????Author:?erich
?*
?*??????This?unit?will?implement?the?api‘s?CE?uses
?*??????This?will?be?the?main?point?of?interest?when?porting?to?another?system
?*/
//#define?_XOPEN_SOURCE?500
//todo?for?in?the?far?future:?Hook?syscalls
#define?_FILE_OFFSET_BITS?64
#define?_LARGEFILE64_SOURCE
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#ifndef?__x86_64__
#include?
#endif
#include?
#include?
#include?
#include?
#include?
#include?
#ifndef?__x86_64__
#include?
#include?
#endif
#ifdef?__arm__
#include?
#endif
//blatantly?stolen?from?the?kernel?source
#define?PTRACE_GETHBPREGS?29
#define?PTRACE_SETHBPREGS?30
/*?Breakpoint?*/
#define?ARM_BREAKPOINT_EXECUTE??0
/*?Watchpoints?*/
#define?ARM_BREAKPOINT_LOAD?????1
#define?ARM_BREAKPOINT_STORE????2
/*?Privilege?Levels?*/
#define?ARM_BREAKPOINT_PRIV?????1
#define?ARM_BREAKPOINT_USER?????2
/*?Lengths?*/
#define?ARM_BREAKPOINT_LEN_1????0x1
#define?ARM_BREAKPOINT_LEN_2????0x3
#define?ARM_BREAKPOINT_LEN_4????0xf
#define?ARM_BREAKPOINT_LEN_8????0xff
static?inline?unsigned?int?encode_ctrl_reg(int?mismatch?int?len?int?type?int?privilege?int?enabled)
{
????????return?(mismatch?<22)?|?(len?<5)?|?(type?<3)?|?(privilege?<1)?|?enabled;
}
#ifndef?__ANDROID__
??#if?defined(__i386__)?||?defined(__x86_64__)
????#include?
??#endif
#endif
#include?“api.h“
#include?“porthelp.h“
#include?“ceserver.h“
#include?“threads.h“
#include?“symbols.h“
#include?“context.h“
//#include?
sem_t?sem_DebugThreadEvent;
pthread_mutex_t?memorymutex;
pthread_mutex_t?debugsocketmutex;
//pthread_mutex_t?mut_RPM;
typedef?struct
{
??int?ReferenceCount;
??int?processListIterator;
??int?processCount;
??PProcessListEntry?processList;
}?ProcessList?*PProcessList;
typedef?struct
{
??int?ReferenceCount;
??int?moduleListIterator;
??int?moduleCount;
??PModuleListEntry?moduleList;
}?ModuleList?*PModuleList;
int?VerboseLevel=0;
int?WakeDebuggerThread()
{
??sem_post(&sem_DebugThreadEvent);
}
void?mychildhandler(int?signal?struct?siginfo?*info?void?*context)
{
??//only?call?re-entrant?functions
??int?orig_errno?=?errno;
??WakeDebuggerThread();
??errno?=?orig_errno;
}
int?GetDebugPort(HANDLE?hProcess)
//return?the?debugserver?fd
{
??if?(GetHandleType(hProcess)?==?htProcesHandle?)
??{
????PProcessData?p=(PProcessData)GetPointerFromHandle(hProcess);
????if?(p->isDebugged)
????{
??????return?p->debuggerServer;
????}
??}
??return?-1;
}
int?FindPaused
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????55??2019-02-08?03:03??ce6.8.3官方源碼\.gitignore
?????文件?????????51??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\aboutunit.ddp
?????文件??????31836??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\aboutunit.lfm
?????文件???????1062??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\aboutunit.lrt
?????文件???????7095??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\aboutunit.pas
?????文件???????1511??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\AccessCheck.pas
?????文件???????6565??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\accessedmemory.lfm
?????文件???????1122??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\accessedmemory.lrt
?????文件???????6011??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\accessedmemory.pas
?????文件?????????51??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\AddAddress.ddp
?????文件????????762??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\AddAddress.lrt
?????文件???????1266??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\addressedit.pas
?????文件??????67565??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\addresslist.pas
?????文件???????4890??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\addresslisteditor.pas
?????文件???????3350??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\addresslisthandlerunit.pas
?????文件???????9118??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\addressparser.pas
?????文件?????????51??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\AdvancedOptionsUnit.ddp
?????文件???????8407??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\AdvancedOptionsUnit.lfm
?????文件???????1076??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\AdvancedOptionsUnit.lrt
?????文件??????24171??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\AdvancedOptionsUnit.pas
?????文件???????1201??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\allochook\allochook.dpr
?????文件???????7772??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\allochook\allochook.lpi
?????文件????????590??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\allochook\allochook.lpr
?????文件???????9873??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\allochook\hookedfunctions.pas
?????文件???????4288??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\APIhooktemplatesettingsfrm.lfm
?????文件????????575??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\APIhooktemplatesettingsfrm.lrt
?????文件???????1152??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\APIhooktemplatesettingsfrm.pas
?????文件??????15438??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\asktorunluasc
?????文件???????1806??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\asktorunluasc
?????文件?????????74??2019-02-08?03:03??ce6.8.3官方源碼\Cheat?Engine\Assembler.pas
............此處省略1647個文件信息
- 上一篇:動態電力系統的理論和分析
- 下一篇:灰色系統理論建模軟件
評論
共有 條評論