Support named version resource in VxD files so we can handle MSGame.VxD
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6934 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
a8a53f6696
commit
b4b709769e
3 changed files with 100 additions and 118 deletions
|
@ -268,7 +268,7 @@ int my_open(const TCHAR *pathname, int flags);
|
|||
|
||||
#define OPEN(a, b) _topen(a, b)
|
||||
|
||||
#endif // ~_WIN32
|
||||
#endif //~ _WIN32
|
||||
|
||||
FILE* my_fopen(const TCHAR *path, const char *mode);
|
||||
#define FOPEN(a, b) my_fopen((a), (b))
|
||||
|
@ -279,6 +279,10 @@ const UINT64 invalid_file_size64 = ~ (UINT64) 0;
|
|||
BYTE* alloc_and_read_file(FILE *f, unsigned long &size);
|
||||
BYTE* alloc_and_read_file(const TCHAR *filepath, unsigned long &size);
|
||||
|
||||
typedef struct { char*base; size_t internal; } FILEVIEW;
|
||||
void close_file_view(FILEVIEW&mmfv);
|
||||
char* create_file_view_readonly(const TCHAR *filepath, FILEVIEW&mmfv);
|
||||
|
||||
// round a value up to be a multiple of 512
|
||||
// assumption: T is an int type
|
||||
template <class T> inline T align_to_512(const T x) { return (x+511) & ~511; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue