mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Add binaryBlob::getExtra()
This needs to be done because m_headers is a private member of binaryBlob.
This commit is contained in:
@@ -173,3 +173,19 @@ char* binaryBlob::getAddress(int _index)
|
|||||||
{
|
{
|
||||||
return m_memblocks[_index];
|
return m_memblocks[_index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::vector<int> binaryBlob::getExtra()
|
||||||
|
{
|
||||||
|
std::vector<int> result;
|
||||||
|
for (int i = 0; i < 128; i += 1)
|
||||||
|
{
|
||||||
|
if (m_headers[i].valid
|
||||||
|
#define FOREACH_TRACK(track_name) && strcmp(m_headers[i].name, track_name) != 0
|
||||||
|
TRACK_NAMES
|
||||||
|
#undef FOREACH_TRACK
|
||||||
|
) {
|
||||||
|
result.push_back(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
#ifndef BINARYBLOB_H
|
#ifndef BINARYBLOB_H
|
||||||
#define BINARYBLOB_H
|
#define BINARYBLOB_H
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
/* Laaaazyyyyyyy -flibit */
|
/* Laaaazyyyyyyy -flibit */
|
||||||
// #define VVV_COMPILEMUSIC
|
// #define VVV_COMPILEMUSIC
|
||||||
|
|
||||||
@@ -47,6 +49,8 @@ public:
|
|||||||
|
|
||||||
int getSize(int _index);
|
int getSize(int _index);
|
||||||
|
|
||||||
|
std::vector<int> getExtra();
|
||||||
|
|
||||||
char* getAddress(int _index);
|
char* getAddress(int _index);
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user