mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-28 03:14:15 +08:00
don't log the periodic callback messages, they fill the log with non-useful events
This commit is contained in:
parent
2ba6f90904
commit
206732dc8e
@ -269,7 +269,7 @@ static void background_rumble(Rumble_Thread_Data *data)
|
||||
|
||||
static void steam_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("steam_controller_run_every_runcb\n");
|
||||
// PRINT_DEBUG("steam_controller_run_every_runcb\n");
|
||||
|
||||
Steam_Controller *steam_controller = (Steam_Controller *)object;
|
||||
steam_controller->RunCallbacks();
|
||||
@ -415,7 +415,7 @@ void EnableActionEventCallbacks( SteamInputActionEventCallbackPointer pCallback
|
||||
// possible latency, you call this directly before reading controller state.
|
||||
void RunFrame(bool bReservedValue)
|
||||
{
|
||||
PRINT_DEBUG("Steam_Controller::RunFrame()\n");
|
||||
// PRINT_DEBUG("Steam_Controller::RunFrame()\n");
|
||||
if (disabled || !initialized) {
|
||||
return;
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ struct Avatar_Numbers add_friend_avatars(CSteamID id)
|
||||
public:
|
||||
static void steam_friends_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("Steam_Friends::steam_friends_callback\n");
|
||||
// PRINT_DEBUG("Steam_Friends::steam_friends_callback\n");
|
||||
|
||||
Steam_Friends *steam_friends = (Steam_Friends *)object;
|
||||
steam_friends->Callback(msg);
|
||||
@ -210,7 +210,7 @@ static void steam_friends_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_friends_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("Steam_Friends::steam_friends_run_every_runcb\n");
|
||||
// PRINT_DEBUG("Steam_Friends::steam_friends_run_every_runcb\n");
|
||||
|
||||
Steam_Friends *steam_friends = (Steam_Friends *)object;
|
||||
steam_friends->RunCallbacks();
|
||||
@ -1152,13 +1152,14 @@ uint32 GetProfileItemPropertyUint( CSteamID steamID, ECommunityProfileItemType i
|
||||
|
||||
void RunCallbacks()
|
||||
{
|
||||
PRINT_DEBUG("Steam_Friends::RunCallbacks\n");
|
||||
// PRINT_DEBUG("Steam_Friends::RunCallbacks\n");
|
||||
if (settings->get_lobby() != lobby_id) {
|
||||
lobby_id = settings->get_lobby();
|
||||
resend_friend_data();
|
||||
}
|
||||
|
||||
if (modified) {
|
||||
PRINT_DEBUG("Steam_Friends::RunCallbacks sending modified data\n");
|
||||
Common_Message msg;
|
||||
msg.set_source_id(settings->get_local_steam_id().ConvertToUint64());
|
||||
Friend *f = new Friend(us);
|
||||
|
@ -41,7 +41,7 @@ void push_incoming(std::string message)
|
||||
public:
|
||||
static void steam_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("steam_gamecoordinator_callback\n");
|
||||
// PRINT_DEBUG("steam_gamecoordinator_callback\n");
|
||||
|
||||
Steam_Game_Coordinator *steam_gamecoordinator = (Steam_Game_Coordinator *)object;
|
||||
steam_gamecoordinator->Callback(msg);
|
||||
@ -49,7 +49,7 @@ static void steam_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("steam_gamecoordinator_run_every_runcb\n");
|
||||
// PRINT_DEBUG("steam_gamecoordinator_run_every_runcb\n");
|
||||
|
||||
Steam_Game_Coordinator *steam_gamecoordinator = (Steam_Game_Coordinator *)object;
|
||||
steam_gamecoordinator->RunCallbacks();
|
||||
|
@ -31,7 +31,7 @@ public ISteamGameSearch
|
||||
public:
|
||||
static void steam_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("steam_gamesearch_callback\n");
|
||||
// PRINT_DEBUG("steam_gamesearch_callback\n");
|
||||
|
||||
Steam_Game_Search *steam_gamesearch = (Steam_Game_Search *)object;
|
||||
steam_gamesearch->Callback(msg);
|
||||
@ -39,7 +39,7 @@ static void steam_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("steam_gamesearch_run_every_runcb\n");
|
||||
// PRINT_DEBUG("steam_gamesearch_run_every_runcb\n");
|
||||
|
||||
Steam_Game_Search *steam_gamesearch = (Steam_Game_Search *)object;
|
||||
steam_gamesearch->RunCallbacks();
|
||||
|
@ -112,7 +112,7 @@ public:
|
||||
|
||||
static void run_every_runcb_cb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("Steam_Inventory::run_every_runcb\n");
|
||||
// PRINT_DEBUG("Steam_Inventory::run_every_runcb\n");
|
||||
|
||||
Steam_Inventory *obj = (Steam_Inventory *)object;
|
||||
obj->RunCallbacks();
|
||||
|
@ -29,7 +29,7 @@ public ISteamMasterServerUpdater
|
||||
public:
|
||||
static void steam_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("steam_masterserverupdater_callback\n");
|
||||
// PRINT_DEBUG("steam_masterserverupdater_callback\n");
|
||||
|
||||
Steam_Masterserver_Updater *steam_masterserverupdater = (Steam_Masterserver_Updater *)object;
|
||||
steam_masterserverupdater->Callback(msg);
|
||||
@ -37,7 +37,7 @@ static void steam_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("steam_masterserverupdater_run_every_runcb\n");
|
||||
// PRINT_DEBUG("steam_masterserverupdater_run_every_runcb\n");
|
||||
|
||||
Steam_Masterserver_Updater *steam_masterserverupdater = (Steam_Masterserver_Updater *)object;
|
||||
steam_masterserverupdater->RunCallbacks();
|
||||
|
@ -289,7 +289,7 @@ void on_self_enter_leave_lobby(CSteamID id, int type, bool leaving)
|
||||
public:
|
||||
static void steam_matchmaking_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("Steam_MatchMaking::steam_matchmaking_callback\n");
|
||||
// PRINT_DEBUG("Steam_MatchMaking::steam_matchmaking_callback\n");
|
||||
|
||||
Steam_Matchmaking *steam_matchmaking = (Steam_Matchmaking *)object;
|
||||
steam_matchmaking->Callback(msg);
|
||||
@ -297,7 +297,7 @@ static void steam_matchmaking_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_matchmaking_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("Steam_MatchMaking::steam_matchmaking_run_every_runcb\n");
|
||||
// PRINT_DEBUG("Steam_MatchMaking::steam_matchmaking_run_every_runcb\n");
|
||||
|
||||
Steam_Matchmaking *steam_matchmaking = (Steam_Matchmaking *)object;
|
||||
steam_matchmaking->RunCallbacks();
|
||||
|
@ -221,7 +221,7 @@ void remove_killed_connection_sockets()
|
||||
public:
|
||||
static void steam_networking_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("steam_networking_callback\n");
|
||||
// PRINT_DEBUG("steam_networking_callback\n");
|
||||
|
||||
Steam_Networking *steam_networking = (Steam_Networking *)object;
|
||||
steam_networking->Callback(msg);
|
||||
@ -229,7 +229,7 @@ static void steam_networking_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_networking_run_every_runcp(void *object)
|
||||
{
|
||||
PRINT_DEBUG("steam_networking_run_every_runcp\n");
|
||||
// PRINT_DEBUG("steam_networking_run_every_runcp\n");
|
||||
|
||||
Steam_Networking *steam_networking = (Steam_Networking *)object;
|
||||
steam_networking->RunCallbacks();
|
||||
@ -906,13 +906,11 @@ void RunCallbacks()
|
||||
void Callback(Common_Message *msg)
|
||||
{
|
||||
if (msg->has_network()) {
|
||||
#ifndef EMU_RELEASE_BUILD
|
||||
PRINT_DEBUG(
|
||||
"Steam_Networking: got msg from: " "%" PRIu64 " to: " "%" PRIu64 " size %zu type %u | messages %p: %zu\n",
|
||||
msg->source_id(), msg->dest_id(), msg->network().data().size(), msg->network().type(), &messages, messages.size()
|
||||
);
|
||||
PRINT_DEBUG("Steam_Networking msg data: '%s'\n", common_helpers::uint8_vector_to_hex_string( std::vector<uint8_t>(msg->network().data().begin(), msg->network().data().end()) ).c_str());
|
||||
#endif
|
||||
|
||||
if (msg->network().type() == Network_pb::DATA) {
|
||||
unprocessed_messages.push_back(Common_Message(*msg));
|
||||
|
@ -51,7 +51,7 @@ public:
|
||||
|
||||
static void steam_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("steam_networking_messages_callback\n");
|
||||
// PRINT_DEBUG("steam_networking_messages_callback\n");
|
||||
|
||||
Steam_Networking_Messages *steam_networking_messages = (Steam_Networking_Messages *)object;
|
||||
steam_networking_messages->Callback(msg);
|
||||
@ -59,7 +59,7 @@ static void steam_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("steam_networking_messages_run_every_runcb\n");
|
||||
// PRINT_DEBUG("steam_networking_messages_run_every_runcb\n");
|
||||
|
||||
Steam_Networking_Messages *steam_networking_messages = (Steam_Networking_Messages *)object;
|
||||
steam_networking_messages->RunCallbacks();
|
||||
|
@ -94,7 +94,7 @@ public ISteamNetworkingSockets
|
||||
public:
|
||||
static void steam_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("steam_networkingsockets_callback\n");
|
||||
// PRINT_DEBUG("steam_networkingsockets_callback\n");
|
||||
|
||||
Steam_Networking_Sockets *steam_networkingsockets = (Steam_Networking_Sockets *)object;
|
||||
steam_networkingsockets->Callback(msg);
|
||||
@ -102,7 +102,7 @@ static void steam_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("steam_networkingsockets_run_every_runcb\n");
|
||||
// PRINT_DEBUG("steam_networkingsockets_run_every_runcb\n");
|
||||
|
||||
Steam_Networking_Sockets *steam_networkingsockets = (Steam_Networking_Sockets *)object;
|
||||
steam_networkingsockets->RunCallbacks();
|
||||
|
@ -32,7 +32,7 @@ public ISteamNetworkingSocketsSerialized005
|
||||
public:
|
||||
static void steam_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("steam_networkingsockets_callback\n");
|
||||
// PRINT_DEBUG("steam_networkingsockets_callback\n");
|
||||
|
||||
Steam_Networking_Sockets_Serialized *steam_networkingsockets = (Steam_Networking_Sockets_Serialized *)object;
|
||||
steam_networkingsockets->Callback(msg);
|
||||
@ -40,7 +40,7 @@ static void steam_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("steam_networkingsockets_serialized_run_every_runcb\n");
|
||||
// PRINT_DEBUG("steam_networkingsockets_serialized_run_every_runcb\n");
|
||||
|
||||
Steam_Networking_Sockets_Serialized *steam_networkingsockets = (Steam_Networking_Sockets_Serialized *)object;
|
||||
steam_networkingsockets->RunCallbacks();
|
||||
|
@ -36,7 +36,7 @@ public ISteamNetworkingUtils
|
||||
public:
|
||||
static void steam_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("steam_networkingutils_callback\n");
|
||||
// PRINT_DEBUG("steam_networkingutils_callback\n");
|
||||
|
||||
Steam_Networking_Utils *steam_networkingutils = (Steam_Networking_Utils *)object;
|
||||
steam_networkingutils->Callback(msg);
|
||||
@ -44,7 +44,7 @@ static void steam_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("steam_networkingutils_run_every_runcb\n");
|
||||
// PRINT_DEBUG("steam_networkingutils_run_every_runcb\n");
|
||||
|
||||
Steam_Networking_Utils *steam_networkingutils = (Steam_Networking_Utils *)object;
|
||||
steam_networkingutils->RunCallbacks();
|
||||
|
@ -31,7 +31,7 @@ public ISteamParties
|
||||
public:
|
||||
static void steam_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("steam_parties_callback\n");
|
||||
// PRINT_DEBUG("steam_parties_callback\n");
|
||||
|
||||
Steam_Parties *steam_parties = (Steam_Parties *)object;
|
||||
steam_parties->Callback(msg);
|
||||
@ -39,7 +39,7 @@ static void steam_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("steam_parties_run_every_runcb\n");
|
||||
// PRINT_DEBUG("steam_parties_run_every_runcb\n");
|
||||
|
||||
Steam_Parties *steam_parties = (Steam_Parties *)object;
|
||||
steam_parties->RunCallbacks();
|
||||
|
@ -30,7 +30,7 @@ public ISteamRemotePlay
|
||||
public:
|
||||
static void steam_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("steam_remoteplay_callback\n");
|
||||
// PRINT_DEBUG("steam_remoteplay_callback\n");
|
||||
|
||||
Steam_RemotePlay *steam_remoteplay = (Steam_RemotePlay *)object;
|
||||
steam_remoteplay->Callback(msg);
|
||||
@ -38,7 +38,7 @@ static void steam_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("steam_remoteplay_run_every_runcb\n");
|
||||
// PRINT_DEBUG("steam_remoteplay_run_every_runcb\n");
|
||||
|
||||
Steam_RemotePlay *steam_remoteplay = (Steam_RemotePlay *)object;
|
||||
steam_remoteplay->RunCallbacks();
|
||||
|
@ -31,7 +31,7 @@ public ISteamTV
|
||||
public:
|
||||
static void steam_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("TODO Steam_TV::steam_tv_callback\n");
|
||||
// PRINT_DEBUG("TODO Steam_TV::steam_tv_callback\n");
|
||||
|
||||
Steam_TV *steam_parties = (Steam_TV *)object;
|
||||
steam_parties->Callback(msg);
|
||||
@ -39,7 +39,7 @@ static void steam_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("steam_tv_run_every_runcb\n");
|
||||
// PRINT_DEBUG("steam_tv_run_every_runcb\n");
|
||||
|
||||
Steam_TV *steam_parties = (Steam_TV *)object;
|
||||
steam_parties->RunCallbacks();
|
||||
|
@ -29,7 +29,7 @@ public ISteamUnifiedMessages
|
||||
public:
|
||||
static void steam_callback(void *object, Common_Message *msg)
|
||||
{
|
||||
PRINT_DEBUG("steam_steamunifiedmessages_callback\n");
|
||||
// PRINT_DEBUG("steam_steamunifiedmessages_callback\n");
|
||||
|
||||
Steam_Unified_Messages *steam_steamunifiedmessages = (Steam_Unified_Messages *)object;
|
||||
steam_steamunifiedmessages->Callback(msg);
|
||||
@ -37,7 +37,7 @@ static void steam_callback(void *object, Common_Message *msg)
|
||||
|
||||
static void steam_run_every_runcb(void *object)
|
||||
{
|
||||
PRINT_DEBUG("steam_steamunifiedmessages_run_every_runcb\n");
|
||||
// PRINT_DEBUG("steam_steamunifiedmessages_run_every_runcb\n");
|
||||
|
||||
Steam_Unified_Messages *steam_steamunifiedmessages = (Steam_Unified_Messages *)object;
|
||||
steam_steamunifiedmessages->RunCallbacks();
|
||||
|
@ -1881,36 +1881,36 @@ void Steam_Client::RunCallbacks(bool runClientCB, bool runGameserverCB, bool run
|
||||
PRINT_DEBUG("Steam_Client::RunCallbacks spawned background thread *********\n");
|
||||
}
|
||||
|
||||
PRINT_DEBUG("Steam_Client::RunCallbacks network *********\n");
|
||||
// PRINT_DEBUG("Steam_Client::RunCallbacks network *********\n");
|
||||
network->Run();
|
||||
|
||||
PRINT_DEBUG("Steam_Client::RunCallbacks steam_matchmaking_servers *********\n");
|
||||
// PRINT_DEBUG("Steam_Client::RunCallbacks steam_matchmaking_servers *********\n");
|
||||
steam_matchmaking_servers->RunCallbacks();
|
||||
|
||||
PRINT_DEBUG("Steam_Client::RunCallbacks run_every_runcb *********\n");
|
||||
// PRINT_DEBUG("Steam_Client::RunCallbacks run_every_runcb *********\n");
|
||||
run_every_runcb->run();
|
||||
|
||||
PRINT_DEBUG("Steam_Client::RunCallbacks steam_gameserver *********\n");
|
||||
// PRINT_DEBUG("Steam_Client::RunCallbacks steam_gameserver *********\n");
|
||||
steam_gameserver->RunCallbacks();
|
||||
|
||||
if (runClientCB) {
|
||||
PRINT_DEBUG("Steam_Client::RunCallbacks callback_results_client *********\n");
|
||||
// PRINT_DEBUG("Steam_Client::RunCallbacks callback_results_client *********\n");
|
||||
callback_results_client->runCallResults();
|
||||
}
|
||||
|
||||
if (runGameserverCB) {
|
||||
PRINT_DEBUG("Steam_Client::RunCallbacks callback_results_server *********\n");
|
||||
// PRINT_DEBUG("Steam_Client::RunCallbacks callback_results_server *********\n");
|
||||
callback_results_server->runCallResults();
|
||||
}
|
||||
|
||||
PRINT_DEBUG("Steam_Client::RunCallbacks callbacks_server *********\n");
|
||||
// PRINT_DEBUG("Steam_Client::RunCallbacks callbacks_server *********\n");
|
||||
callbacks_server->runCallBacks();
|
||||
|
||||
PRINT_DEBUG("Steam_Client::RunCallbacks callbacks_client *********\n");
|
||||
// PRINT_DEBUG("Steam_Client::RunCallbacks callbacks_client *********\n");
|
||||
callbacks_client->runCallBacks();
|
||||
|
||||
last_cb_run = std::chrono::duration_cast<std::chrono::duration<unsigned long long>>(std::chrono::system_clock::now().time_since_epoch()).count();
|
||||
PRINT_DEBUG("Steam_Client::RunCallbacks done ------------------------------------------------------\n");
|
||||
// PRINT_DEBUG("Steam_Client::RunCallbacks done ------------------------------------------------------\n");
|
||||
}
|
||||
|
||||
void Steam_Client::DestroyAllInterfaces()
|
||||
|
@ -94,7 +94,7 @@ static inline bool ImGuiHelper_BeginListBox(const char* label, int items_count)
|
||||
|
||||
void Steam_Overlay::overlay_run_callback(void* object)
|
||||
{
|
||||
PRINT_DEBUG("overlay_run_every_runcb %p\n", object);
|
||||
// PRINT_DEBUG("overlay_run_every_runcb %p\n", object);
|
||||
Steam_Overlay* _this = reinterpret_cast<Steam_Overlay*>(object);
|
||||
_this->steam_run_callback();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user