2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 04:27:42 +00:00

Windows refactors

This commit is contained in:
Jack Andersen
2015-08-30 17:44:42 -10:00
parent 7223a9dce5
commit d1faf4e72d
40 changed files with 129 additions and 80 deletions

View File

@@ -87,7 +87,7 @@ public:
inline std::string toString() const
{
char buf[17];
snprintf(buf, 17, "%016lX", m_id);
snprintf(buf, 17, "%016llX", m_id);
return std::string(buf);
}
};
@@ -143,7 +143,7 @@ public:
inline std::string toString() const
{
char buf[33];
snprintf(buf, 33, "%016lX%016lX", m_id[0], m_id[1]);
snprintf(buf, 33, "%016llX%016llX", m_id[0], m_id[1]);
return std::string(buf);
}
};
@@ -173,10 +173,11 @@ struct CaseInsensitiveCompare
};
/* Word Bitmap reader/writer */
struct WordBitmap
class WordBitmap
{
std::vector<atUint32> m_words;
size_t m_bitCount = 0;
public:
void read(Athena::io::IStreamReader& reader, size_t bitCount)
{
m_bitCount = bitCount;