mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Add binaryBlob::getExtra()
This needs to be done because m_headers is a private member of binaryBlob.
This commit is contained in:
parent
09dbe8113b
commit
4c2f5ed032
2 changed files with 20 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue