Skip to content

Commit

Permalink
Fix headings and more.
Browse files Browse the repository at this point in the history
  • Loading branch information
Parlane committed Aug 27, 2013
1 parent d493525 commit 75c3981
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 76 deletions.
21 changes: 4 additions & 17 deletions Source/Core/Common/Src/SettingsHandler.cpp
@@ -1,19 +1,6 @@
// Copyright (C) 2003 Dolphin Project.

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.

// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/

// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.

// Thanks to Treeki for writing the original class - 29/01/2012

Expand Down Expand Up @@ -89,7 +76,7 @@ void SettingsHandler::Reset()
{
decoded = "";
m_position = 0;
m_key = 0x73B5DBFA;
m_key = INITIAL_SEED;
memset(m_buffer, 0, SETTINGS_SIZE);
}

Expand Down
23 changes: 6 additions & 17 deletions Source/Core/Common/Src/SettingsHandler.h
@@ -1,19 +1,6 @@
// Copyright (C) 2003 Dolphin Project.

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.

// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/

// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.

// Thanks to Treeki for writing the original class - 29/01/2012

Expand All @@ -30,7 +17,9 @@ class SettingsHandler

enum
{
SETTINGS_SIZE = 0x100
SETTINGS_SIZE = 0x100,
// Key used to encrypt/decrypt setting.txt contents
INITIAL_SEED = 0x73B5DBFA
};

void AddSetting(const char *key, const char *value);
Expand Down
18 changes: 9 additions & 9 deletions Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.h
Expand Up @@ -136,15 +136,15 @@ class CWII_IPC_HLE_Device_es : public IWII_IPC_HLE_Device

typedef struct ecc_cert_t
{
u32 sig_type ;
u8 sig [0x3c] ;
u8 pad [0x40] ;
u8 issuer [0x40] ;
u32 key_type ;
u8 key_name [0x40] ;
u32 ng_key_id ;
u8 ecc_pubkey [0x3c] ;
u8 padding [0x3c] ;
u32 sig_type ;
u8 sig [0x3c];
u8 pad [0x40];
u8 issuer [0x40];
u32 key_type ;
u8 key_name [0x40];
u32 ng_key_id ;
u8 ecc_pubkey [0x3c];
u8 padding [0x3c];
} ecc_cert_t;
};

Expand Down
19 changes: 3 additions & 16 deletions Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_hid.cpp
@@ -1,19 +1,6 @@
// Copyright (C) 2003 Dolphin Project.

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.

// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/

// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.

#include "../Core.h"
#include "../Debugger/Debugger_SymbolMap.h"
Expand Down
24 changes: 7 additions & 17 deletions Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_hid.h
@@ -1,21 +1,9 @@
// Copyright (C) 2003 Dolphin Project.
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.

// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/

// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/

#pragma once
#ifndef _WII_IPC_HLE_DEVICE_HID_H_
#define _WII_IPC_HLE_DEVICE_HID_H_

#include "WII_IPC_HLE.h"
#include "WII_IPC_HLE_Device.h"
Expand Down Expand Up @@ -149,3 +137,5 @@ class CWII_IPC_HLE_Device_hid : public IWII_IPC_HLE_Device

std::list<_hidevent> event_list;
};

#endif

0 comments on commit 75c3981

Please sign in to comment.