mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
* Ubuntux's patch for Windows (now PreGame runs but we cannot start any game)
This commit is contained in:
@@ -87,7 +87,10 @@ void CDefHandler::openFromMemory(unsigned char *table, std::string name)
|
|||||||
palette[it].F = 0;
|
palette[it].F = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
p = reinterpret_cast<unsigned char *>(de.blocks);
|
// The SDefEntryBlock starts just after the SDefEntry
|
||||||
|
p = reinterpret_cast<unsigned char *>(&de);
|
||||||
|
p += sizeof(de);
|
||||||
|
|
||||||
totalEntries=0;
|
totalEntries=0;
|
||||||
for (unsigned int z=0; z<totalBlocks; z++)
|
for (unsigned int z=0; z<totalBlocks; z++)
|
||||||
{
|
{
|
||||||
|
@@ -47,7 +47,9 @@ struct SDefEntry {
|
|||||||
unsigned char B;
|
unsigned char B;
|
||||||
} palette[256];
|
} palette[256];
|
||||||
|
|
||||||
struct SDefEntryBlock blocks[];
|
// SDefEntry is followed by a series of SDefEntryBlock
|
||||||
|
// This is commented out because VC++ doesn't accept C99 syntax.
|
||||||
|
//struct SDefEntryBlock blocks[];
|
||||||
};
|
};
|
||||||
|
|
||||||
// Def entry in file. Integer fields are all little endian and will
|
// Def entry in file. Integer fields are all little endian and will
|
||||||
|
Reference in New Issue
Block a user