Advertisement
Guest User

PeBmLoader.h

a guest
Feb 11th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #ifndef PEBMLOADER_H_INCLUDED
  2. #define PEBMLOADER_H_INCLUDED
  3.  
  4.  
  5. #include <vector>
  6. #include <stdio.h>
  7.  
  8. #include "WindowsDef.h"
  9.  
  10. //FD
  11. class ALLEGRO_BITMAP;
  12.  
  13. struct GfxFile
  14. {
  15. const char * dir;
  16. DWORD ResourceDirectoryAddress;
  17. DWORD SecAddress;
  18. DWORD SecRVA;
  19.  
  20. };
  21. struct BitMapDat
  22. {
  23. BITMAPFILEHEADER bitmap_file_header;
  24. DWORD entry_address;
  25. int dump_size;
  26. int total_size;
  27.  
  28. };
  29. class PeBmLoader
  30. {
  31.  
  32. public :
  33. bool LoadGfxFile(const char * dir);
  34. ALLEGRO_BITMAP * Get_Bit_Map(int id,const char *dir);
  35. ALLEGRO_BITMAP * Get_Bit_Map(int id,int index);
  36.  
  37. private :
  38.  
  39. std::vector <GfxFile> gfxs;
  40. bool Get_Bit_Map_Dat(BitMapDat *& bitmapdat,
  41. int id,
  42. int gfxfileindex,
  43. FILE *file);
  44.  
  45. void Get_Bit_Map_File(char *& b_file,
  46. BitMapDat * bitmapdat,
  47. FILE *file);
  48.  
  49.  
  50.  
  51. };
  52.  
  53.  
  54.  
  55.  
  56.  
  57. #endif // PEBMLOADER_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement