Closed monokotech closed 3 weeks ago
Could the request_id be directly stored in the listeners? This way, there is no need to add the FileRequestBinding in the class.
std::vector<std::pair<FileRequestBindingWeak, std::function<void(FileRequestResult*)> > > listeners;
to:
std::vector<std::pair<int, std::function<void(FileRequestResult*)> > > listeners;
And I am starting to work on the callback API.
I will add the following lines to the namespace of Player:
std::vector<std::function<void(int dir)>> main_player_moved_listeners; ... more listeners
lets move this to #3224
Could the request_id be directly stored in the listeners? This way, there is no need to add the FileRequestBinding in the class.
to:
And I am starting to work on the callback API.
I will add the following lines to the namespace of Player: