demos/3d/flatwav: small update, add to ISO, fix RUS menu.dat
git-svn-id: svn://kolibrios.org@7930 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -100,6 +100,7 @@ struct collection_int
|
||||
void alloc();
|
||||
void add();
|
||||
dword get();
|
||||
dword len();
|
||||
dword get_last();
|
||||
void pop();
|
||||
void drop();
|
||||
@@ -127,6 +128,11 @@ struct collection_int
|
||||
return ESDWORD[pos * sizeof(dword) + buf];
|
||||
}
|
||||
|
||||
:dword collection_int::len(dword pos) {
|
||||
if (pos<0) || (pos+1>=count) return 0;
|
||||
return get(pos+1) - get(pos);
|
||||
}
|
||||
|
||||
:dword collection_int::get_last() {
|
||||
return get(count-1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user