Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PEBMLOADER_H_INCLUDED
- #define PEBMLOADER_H_INCLUDED
- #include <vector>
- #include <stdio.h>
- #include "WindowsDef.h"
- //FD
- class ALLEGRO_BITMAP;
- struct GfxFile
- {
- const char * dir;
- DWORD ResourceDirectoryAddress;
- DWORD SecAddress;
- DWORD SecRVA;
- };
- struct BitMapDat
- {
- BITMAPFILEHEADER bitmap_file_header;
- DWORD entry_address;
- int dump_size;
- int total_size;
- };
- class PeBmLoader
- {
- public :
- bool LoadGfxFile(const char * dir);
- ALLEGRO_BITMAP * Get_Bit_Map(int id,const char *dir);
- ALLEGRO_BITMAP * Get_Bit_Map(int id,int index);
- private :
- std::vector <GfxFile> gfxs;
- bool Get_Bit_Map_Dat(BitMapDat *& bitmapdat,
- int id,
- int gfxfileindex,
- FILE *file);
- void Get_Bit_Map_File(char *& b_file,
- BitMapDat * bitmapdat,
- FILE *file);
- };
- #endif // PEBMLOADER_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement