dcc_interface.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #include "dcc_interface.h"
  2. #include "dcc.h"
  3. #include "project.h"
  4. struct DccImpl : public IDcc{
  5. // IDcc interface
  6. public:
  7. void BaseInit()
  8. {
  9. }
  10. void Init(QObject *tgt)
  11. {
  12. }
  13. ilFunction GetFirstFuncHandle()
  14. {
  15. }
  16. ilFunction GetCurFuncHandle()
  17. {
  18. }
  19. void analysis_Once()
  20. {
  21. }
  22. void load(QString name)
  23. {
  24. option.filename = name;
  25. Project::get()->create(name);
  26. }
  27. void prtout_asm(IXmlTarget *, int level)
  28. {
  29. }
  30. void prtout_cpp(IXmlTarget *, int level)
  31. {
  32. }
  33. size_t getFuncCount()
  34. {
  35. }
  36. const lFunction &validFunctions() const
  37. {
  38. return Project::get()->functions();
  39. }
  40. void SetCurFunc_by_Name(QString)
  41. {
  42. }
  43. QDir installDir() {
  44. return QDir(".");
  45. }
  46. QDir dataDir(QString kind) { // return directory containing decompilation helper data -> signatures/includes/etc.
  47. QDir res(installDir());
  48. res.cd(kind);
  49. return res;
  50. }
  51. };
  52. IDcc* IDcc::get() {
  53. static IDcc *v=0;
  54. if(nullptr == v)
  55. v = new DccImpl;
  56. return v;
  57. }