Queue: add method ModifyAtPosition()
This commit is contained in:
@@ -240,6 +240,17 @@ struct queue {
|
||||
*/
|
||||
void IncrementVersion();
|
||||
|
||||
/**
|
||||
* Marks the specified song as "modified". Call
|
||||
* IncrementVersion() after all modifications have been made.
|
||||
* number.
|
||||
*/
|
||||
void ModifyAtPosition(unsigned position) {
|
||||
assert(position < length);
|
||||
|
||||
items[position].version = version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Marks the specified song as "modified". Call
|
||||
* IncrementVersion() after all modifications have been made.
|
||||
|
Reference in New Issue
Block a user