mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-04 07:38:47 +00:00 
			
		
		
		
	Merge pull request #211 from linkmauve/master
Remove trailing spaces from the entire project
This commit is contained in:
		
						commit
						c0cd0fa78e
					
				
					 84 changed files with 459 additions and 459 deletions
				
			
		| 
						 | 
				
			
			@ -9,7 +9,7 @@
 | 
			
		|||
////////////////////////////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
// Namespace AC_U
 | 
			
		||||
 | 
			
		||||
// socket service "ac:u" 
 | 
			
		||||
// socket service "ac:u"
 | 
			
		||||
 | 
			
		||||
namespace AC_U {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,7 +27,7 @@ enum class SignalType : u32 {
 | 
			
		|||
 | 
			
		||||
void Initialize(Service::Interface* self) {
 | 
			
		||||
    u32* cmd_buff = Service::GetCommandBuffer();
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    cmd_buff[3] = Kernel::CreateEvent(RESETTYPE_ONESHOT, "APT_U:Menu");  // APT menu event handle
 | 
			
		||||
    cmd_buff[4] = Kernel::CreateEvent(RESETTYPE_ONESHOT, "APT_U:Pause"); // APT pause event handle
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -168,7 +168,7 @@ void AppletUtility(Service::Interface* self) {
 | 
			
		|||
    cmd_buff[1] = 0; // No error
 | 
			
		||||
 | 
			
		||||
    WARN_LOG(KERNEL, "(STUBBED) called unk=0x%08X, buffer1_size=0x%08x, buffer2_size=0x%08x, "
 | 
			
		||||
             "buffer1_addr=0x%08x, buffer2_addr=0x%08x", unk, buffer1_size, buffer2_size, 
 | 
			
		||||
             "buffer1_addr=0x%08x, buffer2_addr=0x%08x", unk, buffer1_size, buffer2_size,
 | 
			
		||||
             buffer1_addr, buffer2_addr);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,8 +13,8 @@ namespace APT_U {
 | 
			
		|||
 | 
			
		||||
// Application and title launching service. These services handle signaling for home/power button as
 | 
			
		||||
// well. Only one session for either APT service can be open at a time, normally processes close the
 | 
			
		||||
// service handle immediately once finished using the service. The commands for APT:U and APT:S are 
 | 
			
		||||
// exactly the same, however certain commands are only accessible with APT:S(NS module will call 
 | 
			
		||||
// service handle immediately once finished using the service. The commands for APT:U and APT:S are
 | 
			
		||||
// exactly the same, however certain commands are only accessible with APT:S(NS module will call
 | 
			
		||||
// svcBreak when the command isn't accessible). See http://3dbrew.org/wiki/NS#APT_Services.
 | 
			
		||||
 | 
			
		||||
/// Interface to "APT:U" service
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,8 +21,8 @@ namespace BOSS_U {
 | 
			
		|||
    Interface::Interface() {
 | 
			
		||||
        Register(FunctionTable, ARRAY_SIZE(FunctionTable));
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    Interface::~Interface() {
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
} // namespace
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,8 +20,8 @@ namespace ERR_F {
 | 
			
		|||
    Interface::Interface() {
 | 
			
		||||
        Register(FunctionTable, ARRAY_SIZE(FunctionTable));
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    Interface::~Interface() {
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
} // namespace
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,5 +23,5 @@ namespace ERR_F {
 | 
			
		|||
            return "err:f";
 | 
			
		||||
        }
 | 
			
		||||
    };
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
} // namespace
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -269,7 +269,7 @@ static void IsSdmcDetected(Service::Interface* self) {
 | 
			
		|||
 | 
			
		||||
    cmd_buff[1] = 0;
 | 
			
		||||
    cmd_buff[2] = Settings::values.use_virtual_sd ? 1 : 0;
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    DEBUG_LOG(KERNEL, "called");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,7 +15,7 @@
 | 
			
		|||
 | 
			
		||||
namespace HID_User {
 | 
			
		||||
 | 
			
		||||
/** 
 | 
			
		||||
/**
 | 
			
		||||
 * Structure of a Pad controller state.
 | 
			
		||||
 */
 | 
			
		||||
struct PadState {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,7 +27,7 @@ const Interface::FunctionInfo FunctionTable[] = {
 | 
			
		|||
    {0x000D0040, nullptr,               "SetClamp"},
 | 
			
		||||
    {0x000E0000, nullptr,               "GetClamp"},
 | 
			
		||||
    {0x000F0040, nullptr,               "unknown_input1"},
 | 
			
		||||
    {0x00100040, nullptr,               "unknown_input2"},	
 | 
			
		||||
    {0x00100040, nullptr,               "unknown_input2"},
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
////////////////////////////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -75,7 +75,7 @@ Interface* Manager::FetchFromPortName(const std::string& port_name) {
 | 
			
		|||
/// Initialize ServiceManager
 | 
			
		||||
void Init() {
 | 
			
		||||
    g_manager = new Manager;
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    g_manager->AddService(new SRV::Interface);
 | 
			
		||||
    g_manager->AddService(new AC_U::Interface);
 | 
			
		||||
    g_manager->AddService(new APT_U::Interface);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -38,7 +38,7 @@ class Manager;
 | 
			
		|||
class Interface  : public Kernel::Object {
 | 
			
		||||
    friend class Manager;
 | 
			
		||||
public:
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    std::string GetName() const override { return GetPortName(); }
 | 
			
		||||
    std::string GetTypeName() const override { return GetPortName(); }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -76,7 +76,7 @@ public:
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Synchronize kernel object 
 | 
			
		||||
     * Synchronize kernel object
 | 
			
		||||
     * @param wait Boolean wait set if current thread should wait as a result of sync operation
 | 
			
		||||
     * @return Result of operation, 0 on success, otherwise error code
 | 
			
		||||
     */
 | 
			
		||||
| 
						 | 
				
			
			@ -85,23 +85,23 @@ public:
 | 
			
		|||
        auto itr = m_functions.find(cmd_buff[0]);
 | 
			
		||||
 | 
			
		||||
        if (itr == m_functions.end()) {
 | 
			
		||||
            ERROR_LOG(OSHLE, "unknown/unimplemented function: port=%s, command=0x%08X", 
 | 
			
		||||
            ERROR_LOG(OSHLE, "unknown/unimplemented function: port=%s, command=0x%08X",
 | 
			
		||||
                GetPortName().c_str(), cmd_buff[0]);
 | 
			
		||||
 | 
			
		||||
            // TODO(bunnei): Hack - ignore error
 | 
			
		||||
            u32* cmd_buff = Service::GetCommandBuffer();
 | 
			
		||||
            cmd_buff[1] = 0;
 | 
			
		||||
            return 0; 
 | 
			
		||||
            return 0;
 | 
			
		||||
        }
 | 
			
		||||
        if (itr->second.func == nullptr) {
 | 
			
		||||
            ERROR_LOG(OSHLE, "unimplemented function: port=%s, name=%s", 
 | 
			
		||||
            ERROR_LOG(OSHLE, "unimplemented function: port=%s, name=%s",
 | 
			
		||||
                GetPortName().c_str(), itr->second.name.c_str());
 | 
			
		||||
 | 
			
		||||
            // TODO(bunnei): Hack - ignore error
 | 
			
		||||
            u32* cmd_buff = Service::GetCommandBuffer();
 | 
			
		||||
            cmd_buff[1] = 0;
 | 
			
		||||
            return 0; 
 | 
			
		||||
        } 
 | 
			
		||||
            return 0;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        itr->second.func(this);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue