From 80d032c0450973a84ece991dad4756bd4004e930 Mon Sep 17 00:00:00 2001 From: purpasmart96 Date: Sun, 21 Sep 2014 15:03:36 -0700 Subject: [PATCH] fixed indentation --- src/core/hle/service/gsp.cpp | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/core/hle/service/gsp.cpp b/src/core/hle/service/gsp.cpp index 34baabbd0..d7b6fbc35 100644 --- a/src/core/hle/service/gsp.cpp +++ b/src/core/hle/service/gsp.cpp @@ -463,24 +463,25 @@ void ExecuteCommand(const Command& command, u32 thread_id) { } } + /// This triggers handling of the GX command written to the command buffer in shared memory. void TriggerCmdReqQueue(Service::Interface* self) { - // Iterate through each thread's command queue... - for (unsigned thread_id = 0; thread_id < 0x4; ++thread_id) { - CommandBuffer* command_buffer = (CommandBuffer*)GetCommandBuffer(thread_id); + // Iterate through each thread's command queue... + for (unsigned thread_id = 0; thread_id < 0x4; ++thread_id) { + CommandBuffer* command_buffer = (CommandBuffer*)GetCommandBuffer(thread_id); - // Iterate through each command... - for (unsigned i = 0; i < command_buffer->number_commands; ++i) { - g_debugger.GXCommandProcessed((u8*)&command_buffer->commands[i]); + // Iterate through each command... + for (unsigned i = 0; i < command_buffer->number_commands; ++i) { + g_debugger.GXCommandProcessed((u8*)&command_buffer->commands[i]); - // Decode and execute command - ExecuteCommand(command_buffer->commands[i], thread_id); + // Decode and execute command + ExecuteCommand(command_buffer->commands[i], thread_id); - // Indicates that command has completed - command_buffer->number_commands = command_buffer->number_commands - 1; - } - } + // Indicates that command has completed + command_buffer->number_commands = command_buffer->number_commands - 1; + } + } } const Interface::FunctionInfo FunctionTable[] = {