diff --git a/Source/Project64/Multilanguage.h b/Source/Project64/Multilanguage.h index 9552415fd..aa677cd67 100644 --- a/Source/Project64/Multilanguage.h +++ b/Source/Project64/Multilanguage.h @@ -1,5 +1,14 @@ -#ifndef __MULTILANGUAGE__H__ -#define __MULTILANGUAGE__H__ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once enum LanguageStringID{ EMPTY_STRING = 0, @@ -499,5 +508,3 @@ enum LanguageStringID{ }; #include ".\\Multilanguage\Language Class.h" - -#endif diff --git a/Source/Project64/Multilanguage/Language Class.cpp b/Source/Project64/Multilanguage/Language Class.cpp index 063c7a1dd..7a179858e 100644 --- a/Source/Project64/Multilanguage/Language Class.cpp +++ b/Source/Project64/Multilanguage/Language Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CLanguage * _Lang = NULL; diff --git a/Source/Project64/Multilanguage/Language Class.h b/Source/Project64/Multilanguage/Language Class.h index 7237dcfff..7ce9f1d19 100644 --- a/Source/Project64/Multilanguage/Language Class.h +++ b/Source/Project64/Multilanguage/Language Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + #include "..\support.h" #pragma warning(disable:4786) diff --git a/Source/Project64/N64 System.h b/Source/Project64/N64 System.h index 1b2691d99..03c51cbf7 100644 --- a/Source/Project64/N64 System.h +++ b/Source/Project64/N64 System.h @@ -1,5 +1,14 @@ -#ifndef __N64_SYSTEM__H__ -#define __N64_SYSTEM__H__ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once #include "Support.h" #include //needed for stl string (std::string) @@ -17,7 +26,6 @@ class CNotification; #include "N64 System/Rom Information Class.h" #include "N64 System/Speed Limitor Class.h" #include "N64 System/Mips/OpCode.h" -#include "N64 System/Mips/OpCode Analysis Class.h" #include "N64 System/Recompiler/X86ops.h" #include "N64 System/Mips/Mempak.h" #include "N64 System/Mips/FlashRam.h" @@ -30,7 +38,6 @@ class CNotification; #include "N64 System/Mips/TLB Class.h" #include "N64 System/Mips/Memory Labels Class.h" #include "N64 System/Mips/Memory Class.h" -#include "N64 System/Mips/OpCode Class.h" #include "N64 System/Mips/Audio.h" #include "N64 System/Mips/System Timing.h" #include "N64 System/Mips/System Events.h" @@ -71,4 +78,3 @@ class CNotification; #include "N64 System/N64 Class.h" #include "N64 System/System Globals.h" -#endif diff --git a/Source/Project64/N64 System/C Core/Logging.cpp b/Source/Project64/N64 System/C Core/Logging.cpp index 01c84fc34..eb85b80c6 100644 --- a/Source/Project64/N64 System/C Core/Logging.cpp +++ b/Source/Project64/N64 System/C Core/Logging.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #if (!defined(EXTERNAL_RELEASE)) diff --git a/Source/Project64/N64 System/C Core/Logging.h b/Source/Project64/N64 System/C Core/Logging.h index 6da41b43c..7539494c6 100644 --- a/Source/Project64/N64 System/C Core/Logging.h +++ b/Source/Project64/N64 System/C Core/Logging.h @@ -1,29 +1,14 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once -/* - * Project 64 - A Nintendo 64 emulator. - * - * (c) Copyright 2001 zilmar (zilmar@emulation64.com) and - * Jabo (jabo@emulation64.com). - * - * pj64 homepage: www.pj64.net - * - * Permission to use, copy, modify and distribute Project64 in both binary and - * source form, for non-commercial purposes, is hereby granted without fee, - * providing that this license information and copyright notice appear with - * all copies and any derived work. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event shall the authors be held liable for any damages - * arising from the use of this software. - * - * Project64 is freeware for PERSONAL USE only. Commercial users should - * seek permission of the copyright holders first. Commercial use includes - * charging money for Project64 or software derived from Project64. - * - * The copyright holders request that bug fixes and improvements to the code - * should be forwarded to them so if they want them. - * - */ #ifdef __cplusplus extern "C" { #endif diff --git a/Source/Project64/N64 System/C Core/r4300i Commands.cpp b/Source/Project64/N64 System/C Core/r4300i Commands.cpp index 30f7ddacd..cb1348e4a 100644 --- a/Source/Project64/N64 System/C Core/r4300i Commands.cpp +++ b/Source/Project64/N64 System/C Core/r4300i Commands.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #define FPR_Type(Reg) (Reg) == R4300i_COP1_S ? "S" : (Reg) == R4300i_COP1_D ? "D" :\ diff --git a/Source/Project64/N64 System/C Core/r4300i Commands.h b/Source/Project64/N64 System/C Core/r4300i Commands.h index 0a1f88611..99f8990dd 100644 --- a/Source/Project64/N64 System/C Core/r4300i Commands.h +++ b/Source/Project64/N64 System/C Core/r4300i Commands.h @@ -1,31 +1,14 @@ -/* - * Project 64 - A Nintendo 64 emulator. - * - * (c) Copyright 2001 zilmar (zilmar@emulation64.com) and - * Jabo (jabo@emulation64.com). - * - * pj64 homepage: www.pj64.net - * - * Permission to use, copy, modify and distribute Project64 in both binary and - * source form, for non-commercial purposes, is hereby granted without fee, - * providing that this license information and copyright notice appear with - * all copies and any derived work. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event shall the authors be held liable for any damages - * arising from the use of this software. - * - * Project64 is freeware for PERSONAL USE only. Commercial users should - * seek permission of the copyright holders first. Commercial use includes - * charging money for Project64 or software derived from Project64. - * - * The copyright holders request that bug fixes and improvements to the code - * should be forwarded to them so if they want them. - * - */ - -#ifndef __r4300i_commands_h -#define __r4300i_commands_h +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once #ifdef __cplusplus extern "C" { @@ -50,6 +33,3 @@ char * R4300iOpcodeName ( DWORD OpCode, DWORD PC ); #ifdef __cplusplus } #endif - -#endif - diff --git a/Source/Project64/N64 System/Cheat Class.cpp b/Source/Project64/N64 System/Cheat Class.cpp index a85f0fa1f..ac4597541 100644 --- a/Source/Project64/N64 System/Cheat Class.cpp +++ b/Source/Project64/N64 System/Cheat Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Settings/SettingType/SettingsType-Cheats.h" diff --git a/Source/Project64/N64 System/Cheat Class.h b/Source/Project64/N64 System/Cheat Class.h index 53ac23a84..f27a8eec2 100644 --- a/Source/Project64/N64 System/Cheat Class.h +++ b/Source/Project64/N64 System/Cheat Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CCheats { typedef struct { DWORD Command; diff --git a/Source/Project64/N64 System/Debugger/Debugger - Memory Dump.cpp b/Source/Project64/N64 System/Debugger/Debugger - Memory Dump.cpp index 092b53beb..08a82d071 100644 --- a/Source/Project64/N64 System/Debugger/Debugger - Memory Dump.cpp +++ b/Source/Project64/N64 System/Debugger/Debugger - Memory Dump.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Debugger UI.h" diff --git a/Source/Project64/N64 System/Debugger/Debugger - Memory Dump.h b/Source/Project64/N64 System/Debugger/Debugger - Memory Dump.h index a229a9a7f..39a7d7b13 100644 --- a/Source/Project64/N64 System/Debugger/Debugger - Memory Dump.h +++ b/Source/Project64/N64 System/Debugger/Debugger - Memory Dump.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CDumpMemory : public CDebugDialog { diff --git a/Source/Project64/N64 System/Debugger/Debugger - Memory Search.cpp b/Source/Project64/N64 System/Debugger/Debugger - Memory Search.cpp index 742f3ea5a..b05a6035c 100644 --- a/Source/Project64/N64 System/Debugger/Debugger - Memory Search.cpp +++ b/Source/Project64/N64 System/Debugger/Debugger - Memory Search.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Debugger UI.h" diff --git a/Source/Project64/N64 System/Debugger/Debugger - Memory Search.h b/Source/Project64/N64 System/Debugger/Debugger - Memory Search.h index 2e22ab66b..16a18d2a0 100644 --- a/Source/Project64/N64 System/Debugger/Debugger - Memory Search.h +++ b/Source/Project64/N64 System/Debugger/Debugger - Memory Search.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CDebugMemorySearch : public CDebugDialog { diff --git a/Source/Project64/N64 System/Debugger/Debugger - TLB.cpp b/Source/Project64/N64 System/Debugger/Debugger - TLB.cpp index b39731fb7..3e5fb4275 100644 --- a/Source/Project64/N64 System/Debugger/Debugger - TLB.cpp +++ b/Source/Project64/N64 System/Debugger/Debugger - TLB.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Debugger UI.h" diff --git a/Source/Project64/N64 System/Debugger/Debugger - TLB.h b/Source/Project64/N64 System/Debugger/Debugger - TLB.h index 57ea57776..377252ac1 100644 --- a/Source/Project64/N64 System/Debugger/Debugger - TLB.h +++ b/Source/Project64/N64 System/Debugger/Debugger - TLB.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CDebugTlb : public CDebugDialog { diff --git a/Source/Project64/N64 System/Debugger/Debugger - View Memory.cpp b/Source/Project64/N64 System/Debugger/Debugger - View Memory.cpp index b6c3068b7..0443b1f75 100644 --- a/Source/Project64/N64 System/Debugger/Debugger - View Memory.cpp +++ b/Source/Project64/N64 System/Debugger/Debugger - View Memory.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Debugger UI.h" diff --git a/Source/Project64/N64 System/Debugger/Debugger - View Memory.h b/Source/Project64/N64 System/Debugger/Debugger - View Memory.h index e2eecd563..03b1f8c29 100644 --- a/Source/Project64/N64 System/Debugger/Debugger - View Memory.h +++ b/Source/Project64/N64 System/Debugger/Debugger - View Memory.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CDebugMemoryView : public CDebugDialog { diff --git a/Source/Project64/N64 System/Debugger/Debugger.cpp b/Source/Project64/N64 System/Debugger/Debugger.cpp index 77cc4b210..b36115375 100644 --- a/Source/Project64/N64 System/Debugger/Debugger.cpp +++ b/Source/Project64/N64 System/Debugger/Debugger.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Debugger UI.h" diff --git a/Source/Project64/N64 System/Debugger/debugger.h b/Source/Project64/N64 System/Debugger/debugger.h index 6240677de..39e755c9b 100644 --- a/Source/Project64/N64 System/Debugger/debugger.h +++ b/Source/Project64/N64 System/Debugger/debugger.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CDumpMemory; class CDebugMemoryView; class CDebugMemorySearch; diff --git a/Source/Project64/N64 System/Interpreter/Interpreter CPU.cpp b/Source/Project64/N64 System/Interpreter/Interpreter CPU.cpp index bf50ca0f9..24f39a350 100644 --- a/Source/Project64/N64 System/Interpreter/Interpreter CPU.cpp +++ b/Source/Project64/N64 System/Interpreter/Interpreter CPU.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" R4300iOp::Func * CInterpreterCPU::m_R4300i_Opcode = NULL; diff --git a/Source/Project64/N64 System/Interpreter/Interpreter CPU.h b/Source/Project64/N64 System/Interpreter/Interpreter CPU.h index d686d4ce4..2ab1833ba 100644 --- a/Source/Project64/N64 System/Interpreter/Interpreter CPU.h +++ b/Source/Project64/N64 System/Interpreter/Interpreter CPU.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CInterpreterCPU : private R4300iOp { diff --git a/Source/Project64/N64 System/Interpreter/Interpreter Ops 32.cpp b/Source/Project64/N64 System/Interpreter/Interpreter Ops 32.cpp index 76d16fa7d..642b9de5f 100644 --- a/Source/Project64/N64 System/Interpreter/Interpreter Ops 32.cpp +++ b/Source/Project64/N64 System/Interpreter/Interpreter Ops 32.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" //#include "../C Core/Logging.h" diff --git a/Source/Project64/N64 System/Interpreter/Interpreter Ops 32.h b/Source/Project64/N64 System/Interpreter/Interpreter Ops 32.h index 55dd02621..98afd22d7 100644 --- a/Source/Project64/N64 System/Interpreter/Interpreter Ops 32.h +++ b/Source/Project64/N64 System/Interpreter/Interpreter Ops 32.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class R4300iOp32 : public R4300iOp { diff --git a/Source/Project64/N64 System/Interpreter/Interpreter Ops.cpp b/Source/Project64/N64 System/Interpreter/Interpreter Ops.cpp index 3edef049d..53ef0aeca 100644 --- a/Source/Project64/N64 System/Interpreter/Interpreter Ops.cpp +++ b/Source/Project64/N64 System/Interpreter/Interpreter Ops.cpp @@ -1,28 +1,13 @@ -/* - * Project 64 - A Nintendo 64 emulator. - * - * (c) Copyright 2001 zilmar (zilmar@emulation64.com) and - * Jabo (jabo@emulation64.com). - * - * pj64 homepage: www.pj64.net - * - * Permission to use, copy, modify and distribute Project64 in both binary and - * source form, for non-commercial purposes, is hereby granted without fee, - * providing that this license information and copyright notice appear with - * all copies and any derived work. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event shall the authors be held liable for any damages - * arising from the use of this software. - * - * Project64 is freeware for PERSONAL USE only. Commercial users should - * seek permission of the copyright holders first. Commercial use includes - * charging money for Project64 or software derived from Project64. - * - * The copyright holders request that bug fixes and improvements to the code - * should be forwarded to them so if they want them. - * - */ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "../C Core/Logging.h" diff --git a/Source/Project64/N64 System/Interpreter/Interpreter Ops.h b/Source/Project64/N64 System/Interpreter/Interpreter Ops.h index b76d76a9f..757d7d9fb 100644 --- a/Source/Project64/N64 System/Interpreter/Interpreter Ops.h +++ b/Source/Project64/N64 System/Interpreter/Interpreter Ops.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class R4300iOp : protected CDebugSettings, protected CSystemRegisters diff --git a/Source/Project64/N64 System/Mips/Audio.cpp b/Source/Project64/N64 System/Mips/Audio.cpp index 070d3bb7c..81b3744a1 100644 --- a/Source/Project64/N64 System/Mips/Audio.cpp +++ b/Source/Project64/N64 System/Mips/Audio.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CAudio::CAudio (void) diff --git a/Source/Project64/N64 System/Mips/Audio.h b/Source/Project64/N64 System/Mips/Audio.h index 5e1c5e5c8..f51999dde 100644 --- a/Source/Project64/N64 System/Mips/Audio.h +++ b/Source/Project64/N64 System/Mips/Audio.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CAudio { public: diff --git a/Source/Project64/N64 System/Mips/Dma.cpp b/Source/Project64/N64 System/Mips/Dma.cpp index 7ed1ec8db..5bb5bfed3 100644 --- a/Source/Project64/N64 System/Mips/Dma.cpp +++ b/Source/Project64/N64 System/Mips/Dma.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CDMA::CDMA(CFlashram & FlashRam, CSram & Sram) : diff --git a/Source/Project64/N64 System/Mips/Dma.h b/Source/Project64/N64 System/Mips/Dma.h index 5d46082c9..a8c6c2dc4 100644 --- a/Source/Project64/N64 System/Mips/Dma.h +++ b/Source/Project64/N64 System/Mips/Dma.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CDMA { CDMA(); diff --git a/Source/Project64/N64 System/Mips/Eeprom.cpp b/Source/Project64/N64 System/Mips/Eeprom.cpp index 5af0c8e4f..cbad12fc6 100644 --- a/Source/Project64/N64 System/Mips/Eeprom.cpp +++ b/Source/Project64/N64 System/Mips/Eeprom.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include diff --git a/Source/Project64/N64 System/Mips/Eeprom.h b/Source/Project64/N64 System/Mips/Eeprom.h index 34d1f2413..4924cbb8b 100644 --- a/Source/Project64/N64 System/Mips/Eeprom.h +++ b/Source/Project64/N64 System/Mips/Eeprom.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CEeprom { public: diff --git a/Source/Project64/N64 System/Mips/FlashRam.cpp b/Source/Project64/N64 System/Mips/FlashRam.cpp index 9dce42dcc..a5395e0cd 100644 --- a/Source/Project64/N64 System/Mips/FlashRam.cpp +++ b/Source/Project64/N64 System/Mips/FlashRam.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CFlashram::CFlashram (bool ReadOnly): diff --git a/Source/Project64/N64 System/Mips/FlashRam.h b/Source/Project64/N64 System/Mips/FlashRam.h index 1d4e37466..f824b60b0 100644 --- a/Source/Project64/N64 System/Mips/FlashRam.h +++ b/Source/Project64/N64 System/Mips/FlashRam.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CFlashram { enum Modes { diff --git a/Source/Project64/N64 System/Mips/Memory Class.h b/Source/Project64/N64 System/Mips/Memory Class.h index f4d374063..f33d2988d 100644 --- a/Source/Project64/N64 System/Mips/Memory Class.h +++ b/Source/Project64/N64 System/Mips/Memory Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + interface CMipsMemory_CallBack { //Protected memory has been written to, returns true if that memory has been unprotected diff --git a/Source/Project64/N64 System/Mips/Memory Labels Class.cpp b/Source/Project64/N64 System/Mips/Memory Labels Class.cpp index fff806e47..f27b85cfb 100644 --- a/Source/Project64/N64 System/Mips/Memory Labels Class.cpp +++ b/Source/Project64/N64 System/Mips/Memory Labels Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" DWORD CMemoryLabel::AsciiToHex (char * HexValue) { diff --git a/Source/Project64/N64 System/Mips/Memory Labels Class.h b/Source/Project64/N64 System/Mips/Memory Labels Class.h index 6ba747221..5827897b3 100644 --- a/Source/Project64/N64 System/Mips/Memory Labels Class.h +++ b/Source/Project64/N64 System/Mips/Memory Labels Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + typedef std::map StringMap; class CMemoryLabel { diff --git a/Source/Project64/N64 System/Mips/Memory Virtual Mem.cpp b/Source/Project64/N64 System/Mips/Memory Virtual Mem.cpp index 2927dbf43..277ce08f8 100644 --- a/Source/Project64/N64 System/Mips/Memory Virtual Mem.cpp +++ b/Source/Project64/N64 System/Mips/Memory Virtual Mem.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" DWORD RegModValue; diff --git a/Source/Project64/N64 System/Mips/Memory Virtual Mem.h b/Source/Project64/N64 System/Mips/Memory Virtual Mem.h index 5b586e96f..13c5690a6 100644 --- a/Source/Project64/N64 System/Mips/Memory Virtual Mem.h +++ b/Source/Project64/N64 System/Mips/Memory Virtual Mem.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CMipsMemoryVM : public CMipsMemory, public CTransVaddr, diff --git a/Source/Project64/N64 System/Mips/Memory.cpp b/Source/Project64/N64 System/Mips/Memory.cpp deleted file mode 100644 index 1577c4e3b..000000000 --- a/Source/Project64/N64 System/Mips/Memory.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "stdafx.h" \ No newline at end of file diff --git a/Source/Project64/N64 System/Mips/Mempak.H b/Source/Project64/N64 System/Mips/Mempak.H index 5f5a13935..33c9d9e3b 100644 --- a/Source/Project64/N64 System/Mips/Mempak.H +++ b/Source/Project64/N64 System/Mips/Mempak.H @@ -1,5 +1,14 @@ -#ifndef _MEMPAK_H_ -#define _MEMPAK_H_ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once class Mempak { @@ -10,4 +19,3 @@ public: static void WriteTo ( int Control, int Address, BYTE * Buffer ); }; -#endif //_MEMPAK_H_ \ No newline at end of file diff --git a/Source/Project64/N64 System/Mips/Mempak.cpp b/Source/Project64/N64 System/Mips/Mempak.cpp index edff3aaa1..64cd1a282 100644 --- a/Source/Project64/N64 System/Mips/Mempak.cpp +++ b/Source/Project64/N64 System/Mips/Mempak.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" static BYTE Mempaks[4][0x8000]; HANDLE hMempakFile = NULL; diff --git a/Source/Project64/N64 System/Mips/OpCode Analysis Class.cpp b/Source/Project64/N64 System/Mips/OpCode Analysis Class.cpp deleted file mode 100644 index 786f240cd..000000000 --- a/Source/Project64/N64 System/Mips/OpCode Analysis Class.cpp +++ /dev/null @@ -1,1156 +0,0 @@ -#include "stdafx.h" - -#ifdef tofix -COpcodeAnalysis::COpcodeAnalysis(OPCODE &opcode) : - m_opcode(opcode) -{ -} - -bool COpcodeAnalysis::DelaySlotEffectsCompare (DWORD Reg1, DWORD Reg2) { - COpcode DelayOp(m_opcode.VirtualAddress + 4); - - switch (DelayOp.m_opcode.op) { - case R4300i_SPECIAL: - switch (DelayOp.m_opcode.funct) { - case R4300i_SPECIAL_SLL: case R4300i_SPECIAL_SRL: case R4300i_SPECIAL_SRA: - case R4300i_SPECIAL_SLLV: case R4300i_SPECIAL_SRLV: case R4300i_SPECIAL_SRAV: - case R4300i_SPECIAL_MFHI: case R4300i_SPECIAL_MTHI: case R4300i_SPECIAL_MFLO: - case R4300i_SPECIAL_MTLO: case R4300i_SPECIAL_DSLLV: case R4300i_SPECIAL_DSRLV: - case R4300i_SPECIAL_DSRAV: case R4300i_SPECIAL_ADD: case R4300i_SPECIAL_ADDU: - case R4300i_SPECIAL_SUB: case R4300i_SPECIAL_SUBU: case R4300i_SPECIAL_AND: - case R4300i_SPECIAL_OR: case R4300i_SPECIAL_XOR: case R4300i_SPECIAL_NOR: - case R4300i_SPECIAL_SLT: - case R4300i_SPECIAL_SLTU: - case R4300i_SPECIAL_DADD: - case R4300i_SPECIAL_DADDU: - case R4300i_SPECIAL_DSUB: - case R4300i_SPECIAL_DSUBU: - case R4300i_SPECIAL_DSLL: - case R4300i_SPECIAL_DSRL: - case R4300i_SPECIAL_DSRA: - case R4300i_SPECIAL_DSLL32: - case R4300i_SPECIAL_DSRL32: - case R4300i_SPECIAL_DSRA32: - if (DelayOp.m_opcode.rd == 0) { return false; } - if (DelayOp.m_opcode.rd == Reg1) { return true; } - if (DelayOp.m_opcode.rd == Reg2) { return true; } - break; - case R4300i_SPECIAL_MULT: - case R4300i_SPECIAL_MULTU: - case R4300i_SPECIAL_DIV: - case R4300i_SPECIAL_DIVU: - case R4300i_SPECIAL_DMULT: - case R4300i_SPECIAL_DMULTU: - case R4300i_SPECIAL_DDIV: - case R4300i_SPECIAL_DDIVU: - case R4300i_SPECIAL_BREAK: - case R4300i_SPECIAL_SYNC: - case R4300i_SPECIAL_SYSCALL: - break; - case R4300i_SPECIAL_JR: - case R4300i_SPECIAL_JALR: - return true; - default: - //g_Notify->DisplayError("%s\nDoes %s effect Delay slot at %X?",Name().c_str(),DelayOp.Name().c_str(),DelayOp.PC()); - return true; - } - break; - case R4300i_REGIMM: return true; - case R4300i_CP0: - switch (DelayOp.m_opcode.rs) { - case R4300i_COP0_MT: break; - case R4300i_COP0_MF: - if (DelayOp.m_opcode.rt == 0) { return false; } - if (DelayOp.m_opcode.rt == Reg1) { return true; } - if (DelayOp.m_opcode.rt == Reg2) { return true; } - break; - default: - if ( (DelayOp.m_opcode.rs & 0x10 ) != 0 ) { - switch( DelayOp.m_opcode.funct ) { - case R4300i_COP0_CO_TLBR: break; - case R4300i_COP0_CO_TLBWI: break; - case R4300i_COP0_CO_TLBWR: break; - case R4300i_COP0_CO_TLBP: break; - default: - //g_Notify->DisplayError("%s\nDoes %s effect Delay slot at %X?",Name().c_str(),DelayOp.Name().c_str(),DelayOp.PC()); - return true; - } - } else { - //g_Notify->DisplayError("%s\nDoes %s effect Delay slot at %X?",Name().c_str(),DelayOp.Name().c_str(),DelayOp.PC()); - return true; - } - } - break; - case R4300i_CP1: - switch (DelayOp.m_opcode.fmt) { - case R4300i_COP1_MF: - if (DelayOp.m_opcode.rt == 0) { return false; } - if (DelayOp.m_opcode.rt == Reg1) { return true; } - if (DelayOp.m_opcode.rt == Reg2) { return true; } - break; - case R4300i_COP1_CF: break; - case R4300i_COP1_MT: break; - case R4300i_COP1_CT: break; - case R4300i_COP1_BC: return true; - case R4300i_COP1_S: break; - case R4300i_COP1_D: break; - case R4300i_COP1_W: break; - case R4300i_COP1_L: break; - default: - //g_Notify->DisplayError("%s\nDoes %s effect Delay slot at %X?",Name().c_str(),DelayOp.Name().c_str(),DelayOp.PC(),DelayOp.m_opcode.op); - return true; - } - break; - case R4300i_J: - case R4300i_JAL: - case R4300i_BEQ: - case R4300i_BNE: - case R4300i_BLEZ: - case R4300i_BGTZ: - case R4300i_BEQL: - case R4300i_BNEL: - case R4300i_BLEZL: - case R4300i_BGTZL: - return true; - case R4300i_ANDI: - case R4300i_ORI: - case R4300i_XORI: - case R4300i_LUI: - case R4300i_ADDI: - case R4300i_ADDIU: - case R4300i_SLTI: - case R4300i_SLTIU: - case R4300i_DADDI: - case R4300i_DADDIU: - case R4300i_LB: - case R4300i_LH: - case R4300i_LW: - case R4300i_LWL: - case R4300i_LWR: - case R4300i_LDL: - case R4300i_LDR: - case R4300i_LBU: - case R4300i_LHU: - case R4300i_LD: - case R4300i_LWC1: - case R4300i_LDC1: - if (DelayOp.m_opcode.rt == 0) { return false; } - if (DelayOp.m_opcode.rt == Reg1) { return true; } - if (DelayOp.m_opcode.rt == Reg2) { return true; } - break; - case R4300i_CACHE: break; - case R4300i_SB: break; - case R4300i_SH: break; - case R4300i_SW: break; - case R4300i_SWR: break; - case R4300i_SWL: break; - case R4300i_SWC1: break; - case R4300i_SDC1: break; - case R4300i_SD: break; - //Unknown opcodes - case 0x12: - case 0x1C: - case 0x32: - case 0x3a: - case 0x3E: - break; - default: - //g_Notify->DisplayError("%s\nDoes %s effect Delay slot at %X?\n%x",Name().c_str(),DelayOp.Name().c_str(),DelayOp.PC(),DelayOp.m_opcode.op); - return true; - } - return false; -} - -bool COpcodeAnalysis::DelaySlotEffectsJump (void) { - switch (m_opcode.op) { - case R4300i_SPECIAL: - switch (m_opcode.funct) { - case R4300i_SPECIAL_JR: return DelaySlotEffectsCompare(m_opcode.rs,0); - case R4300i_SPECIAL_JALR: return DelaySlotEffectsCompare(m_opcode.rs,31); - } - break; - case R4300i_REGIMM: - switch (m_opcode.rt) { - case R4300i_REGIMM_BLTZ: - case R4300i_REGIMM_BGEZ: - case R4300i_REGIMM_BLTZL: - case R4300i_REGIMM_BGEZL: - case R4300i_REGIMM_BLTZAL: - case R4300i_REGIMM_BGEZAL: - return DelaySlotEffectsCompare(m_opcode.rs,0); - } - break; - case R4300i_JAL: - case R4300i_SPECIAL_JALR: return DelaySlotEffectsCompare(31,0); break; - case R4300i_J: return false; - case R4300i_BEQ: - case R4300i_BNE: - case R4300i_BLEZ: - case R4300i_BGTZ: - return DelaySlotEffectsCompare(m_opcode.rs,m_opcode.rt); - case R4300i_CP1: - switch (m_opcode.fmt) { - case R4300i_COP1_BC: - switch (m_opcode.ft) { - case R4300i_COP1_BC_BCF: - case R4300i_COP1_BC_BCT: - case R4300i_COP1_BC_BCFL: - case R4300i_COP1_BC_BCTL: - { - COpcode DelayOp(m_opcode.VirtualAddress + 4); - - if (DelayOp.m_opcode.op == R4300i_CP1) { - if (DelayOp.m_opcode.fmt == R4300i_COP1_S && (DelayOp.m_opcode.funct & 0x30) == 0x30 ) { - return true; - } - if (DelayOp.m_opcode.fmt == R4300i_COP1_D && (DelayOp.m_opcode.funct & 0x30) == 0x30 ) { - return true; - } - } - return false; - } - break; - } - break; - } - break; - case R4300i_BEQL: - case R4300i_BNEL: - case R4300i_BLEZL: - case R4300i_BGTZL: - return DelaySlotEffectsCompare(m_opcode.rs,m_opcode.rt); - } - return true; -} - -bool COpcodeAnalysis::HasDelaySlot ( void ) { - if (HardJump()) { return true; } - if (LinkedJump()) { return true; } - if (RelativeJump()) { return true; } - return false; -} - -//A non relative jump which does not record the address that it was at -//so it would be impossible to return. -bool COpcodeAnalysis::HardJump ( void ) { - switch (m_opcode.op) { - case R4300i_SPECIAL: - switch (m_opcode.funct) { - case R4300i_SPECIAL_JR: return true; - } - break; - case R4300i_J: return true; - } - return false; -} - -bool COpcodeAnalysis::IsCop1Instruction ( void ) { - if (m_opcode.op == R4300i_CP1) { return true; } - if (m_opcode.op == R4300i_LWC1) { return true; } - if (m_opcode.op == R4300i_LDC1) { return true; } - if (m_opcode.op == R4300i_SWC1) { return true; } - if (m_opcode.op == R4300i_SDC1) { return true; } - return false; -} - - -bool COpcodeAnalysis::LinkedJump ( void ) { - switch (m_opcode.op) { - case R4300i_JAL: return true; - case R4300i_REGIMM: - switch (m_opcode.rt) { - case R4300i_REGIMM_BLTZAL: - case R4300i_REGIMM_BGEZAL: - case R4300i_REGIMM_BLTZALL: - case R4300i_REGIMM_BGEZALL: - return true; - } - break; - } - return false; -} - -bool COpcodeAnalysis::RelativeJump ( void ) { - switch (m_opcode.op) { - case R4300i_BEQ: - case R4300i_BNE: - case R4300i_BLEZ: - case R4300i_BGTZ: - case R4300i_BEQL: - case R4300i_BNEL: - case R4300i_BLEZL: - case R4300i_BGTZL: - return true; - case R4300i_REGIMM: - switch (m_opcode.rt) { - case R4300i_REGIMM_BLTZ: - case R4300i_REGIMM_BGEZ: - case R4300i_REGIMM_BLTZL: - case R4300i_REGIMM_BGEZL: - case R4300i_REGIMM_BLTZAL: - case R4300i_REGIMM_BGEZAL: - case R4300i_REGIMM_BLTZALL: - case R4300i_REGIMM_BGEZALL: - return true; - } - break; - case R4300i_CP1: - if (m_opcode.fmt == R4300i_COP1_BC && m_opcode.ft == R4300i_COP1_BC_BCF) { return true; } - if (m_opcode.fmt == R4300i_COP1_BC && m_opcode.ft == R4300i_COP1_BC_BCT) { return true; } - if (m_opcode.fmt == R4300i_COP1_BC && m_opcode.ft == R4300i_COP1_BC_BCFL) { return true; } - if (m_opcode.fmt == R4300i_COP1_BC && m_opcode.ft == R4300i_COP1_BC_BCTL) { return true; } - break; - } - return false; -} - -bool COpcodeAnalysis::LikelyJump ( void ) { - switch (m_opcode.op) { - case R4300i_BEQL: - case R4300i_BNEL: - case R4300i_BLEZL: - case R4300i_BGTZL: - return true; - case R4300i_REGIMM: - switch (m_opcode.rt) { - case R4300i_REGIMM_BLTZL: - case R4300i_REGIMM_BGEZL: - case R4300i_REGIMM_BLTZALL: - case R4300i_REGIMM_BGEZALL: - return true; - } - break; - case R4300i_CP1: - if (m_opcode.fmt == R4300i_COP1_BC && m_opcode.ft == R4300i_COP1_BC_BCFL) { return true; } - if (m_opcode.fmt == R4300i_COP1_BC && m_opcode.ft == R4300i_COP1_BC_BCTL) { return true; } - break; - } - return false; -} - -//Always will jump -bool COpcodeAnalysis::NonConditionalJump ( void ) { - switch (m_opcode.op) { - case R4300i_J: - return true; - case R4300i_BEQ: - if (m_opcode.rs == 0 && m_opcode.rt == 0) { - return true; - } - break; - case R4300i_REGIMM: - switch (m_opcode.rt) { - case R4300i_REGIMM_BGEZ: - case R4300i_REGIMM_BGEZL: - case R4300i_REGIMM_BGEZAL: - case R4300i_REGIMM_BGEZALL: - if (m_opcode.rs == 0) { - return true; - } - } - break; - } - return false; -} - -DWORD COpcodeAnalysis::JumpLocation ( void ) { - switch (m_opcode.op) { - case R4300i_J: - case R4300i_JAL: - return (m_opcode.VirtualAddress & 0xF0000000) + (m_opcode.target << 2); - case R4300i_BEQ: - case R4300i_BNE: - case R4300i_BLEZ: - case R4300i_BGTZ: - case R4300i_BEQL: - case R4300i_BNEL: - case R4300i_BLEZL: - case R4300i_BGTZL: - return m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4; - case R4300i_REGIMM: - switch (m_opcode.rt) { - case R4300i_REGIMM_BLTZ: - case R4300i_REGIMM_BGEZ: - case R4300i_REGIMM_BLTZL: - case R4300i_REGIMM_BGEZL: - case R4300i_REGIMM_BLTZAL: - case R4300i_REGIMM_BGEZAL: - case R4300i_REGIMM_BLTZALL: - case R4300i_REGIMM_BGEZALL: - return m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4; - } - break; - case R4300i_CP1: - if ((m_opcode.fmt == R4300i_COP1_BC && m_opcode.ft == R4300i_COP1_BC_BCF) || - (m_opcode.fmt == R4300i_COP1_BC && m_opcode.ft == R4300i_COP1_BC_BCT) || - (m_opcode.fmt == R4300i_COP1_BC && m_opcode.ft == R4300i_COP1_BC_BCFL) || - (m_opcode.fmt == R4300i_COP1_BC && m_opcode.ft == R4300i_COP1_BC_BCTL)) - { - return m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4; - } - break; - } - return -1; -} - -bool COpcodeAnalysis::TerminateExecution ( void ) { - switch (m_opcode.op) { - case R4300i_SPECIAL: - switch (m_opcode.funct) { - case R4300i_SPECIAL_SYSCALL: return true; - case R4300i_SPECIAL_BREAK: return true; - } - break; - case R4300i_CP0: - if ( (m_opcode.rs & 0x10 ) != 0 ) { - switch( m_opcode.funct ) { - case R4300i_COP0_CO_ERET: return true; - } - } - break; - } - return false; -} - -stdstr COpcodeAnalysis::Name( void ) { - const char * szOpName = OpcodeName(); - char Command[200]; - OpcodeParam(Command); - return stdstr_f("%-15s%s",szOpName,Command); -} - -stdstr COpcodeAnalysis::FullName(bool * MultipleOps) { - stdstr OpName, OpParam; - - if (MultipleOps) { *MultipleOps = false; } - if (MultipleOps == NULL) { return Name(); } - - //Use LI macro - if (m_opcode.op == R4300i_LUI) { - DWORD Value = m_opcode.immediate * 0x10000; - int Register = m_opcode.rt; - - COpcode NextOp(m_opcode.VirtualAddress + 4); - if ((NextOp.m_opcode.op == R4300i_ADDIU || NextOp.m_opcode.op == R4300i_ORI) && - NextOp.m_opcode.rt == m_opcode.rt && NextOp.m_opcode.rs == m_opcode.rt) - { - Value += (DWORD)((short)NextOp.m_opcode.immediate); - *MultipleOps = true; - } - char Param[100]; - sprintf(Param, "%s, 0x%08X",CRegName::GPR[Register],Value); - - OpName = stdstr("li"); - OpParam = stdstr(Param); - } - if (m_opcode.op == R4300i_ADDIU && m_opcode.rs == 0) { - char Param[100]; - sprintf(Param, "%s, 0x%08X",CRegName::GPR[m_opcode.rt], (DWORD)((short)m_opcode.immediate)); - - OpName = stdstr("li"); - OpParam = stdstr(Param); - } - if (m_opcode.op == R4300i_ORI && m_opcode.rs == 0) { - char Param[100]; - sprintf(Param, "%s, 0x%08X",CRegName::GPR[m_opcode.rt],m_opcode.immediate); - - OpName = stdstr("li"); - OpParam = stdstr(Param); - } - - g_Notify->BreakPoint(__FILE__,__LINE__); -// if (OpName.length() == 0) { OpName = OpcodeName(); } -// if (OpParam.length() == 0) { OpParam = OpcodeParam(); } - while (OpName.length() < 7) { OpName += " "; } - return stdstr_f("%s\t%s",OpName.c_str(),OpParam.c_str()); -} - -const char * COpcodeAnalysis::OpcodeName ( void ) -{ - switch (m_opcode.op) { - case R4300i_SPECIAL: - switch (m_opcode.funct) { - case R4300i_SPECIAL_SLL: - if (m_opcode.Hex != 0) { - return "sll"; - } else { - return "nop"; - } - break; - case R4300i_SPECIAL_SRL: return "srl"; - case R4300i_SPECIAL_SRA: return "sra"; - case R4300i_SPECIAL_SLLV: return "sllv"; - case R4300i_SPECIAL_SRLV: return "srlv"; - case R4300i_SPECIAL_SRAV: return "srav"; - case R4300i_SPECIAL_JR: return "jr"; - case R4300i_SPECIAL_JALR: return "jalr"; - case R4300i_SPECIAL_SYSCALL: return "system call"; - case R4300i_SPECIAL_BREAK: return "break"; - case R4300i_SPECIAL_SYNC: return "sync"; - case R4300i_SPECIAL_MFHI: return "mfhi"; - case R4300i_SPECIAL_MTHI: return "mthi"; - case R4300i_SPECIAL_MFLO: return "mflo"; - case R4300i_SPECIAL_MTLO: return "mtlo"; - case R4300i_SPECIAL_DSLLV: return "dsllv"; - case R4300i_SPECIAL_DSRLV: return "dsrlv"; - case R4300i_SPECIAL_DSRAV: return "dsrav"; - case R4300i_SPECIAL_MULT: return "mult"; - case R4300i_SPECIAL_MULTU: return "multu"; - case R4300i_SPECIAL_DIV: return "div"; - case R4300i_SPECIAL_DIVU: return "divu"; - case R4300i_SPECIAL_DMULT: return "dmult"; - case R4300i_SPECIAL_DMULTU: return "dmultu"; - case R4300i_SPECIAL_DDIV: return "ddiv"; - case R4300i_SPECIAL_DDIVU: return "ddivu"; - case R4300i_SPECIAL_ADD: return "add"; - case R4300i_SPECIAL_ADDU: return "addu"; - case R4300i_SPECIAL_SUB: return "sub"; - case R4300i_SPECIAL_SUBU: return "subu"; - case R4300i_SPECIAL_AND: return "and"; - case R4300i_SPECIAL_OR: return "or"; - case R4300i_SPECIAL_XOR: return "xor"; - case R4300i_SPECIAL_NOR: return "nor"; - case R4300i_SPECIAL_SLT: return "slt"; - case R4300i_SPECIAL_SLTU: return "sltu"; - case R4300i_SPECIAL_DADD: return "dadd"; - case R4300i_SPECIAL_DADDU: return "daddu"; - case R4300i_SPECIAL_DSUB: return "dsub"; - case R4300i_SPECIAL_DSUBU: return "dsubu"; - case R4300i_SPECIAL_TGE: return "tge"; - case R4300i_SPECIAL_TGEU: return "tgeu"; - case R4300i_SPECIAL_TLT: return "tlt"; - case R4300i_SPECIAL_TLTU: return "tltu"; - case R4300i_SPECIAL_TEQ: return "teq"; - case R4300i_SPECIAL_TNE: return "tne"; - case R4300i_SPECIAL_DSLL: return "dsll"; - case R4300i_SPECIAL_DSRL: return "dsrl"; - case R4300i_SPECIAL_DSRA: return "dsra"; - case R4300i_SPECIAL_DSLL32: return "dsll32"; - case R4300i_SPECIAL_DSRL32: return "dsrl32"; - case R4300i_SPECIAL_DSRA32: return "dsra32"; - } - break; - case R4300i_REGIMM: - switch (m_opcode.rt) { - case R4300i_REGIMM_BLTZ: return "bltz"; - case R4300i_REGIMM_BGEZ: - if (m_opcode.rs == 0) { return "b"; } - return "bgez"; - case R4300i_REGIMM_BLTZL: return "bltzl"; - case R4300i_REGIMM_BGEZL: return "bgezl"; - case R4300i_REGIMM_TGEI: return "tgei"; - case R4300i_REGIMM_TGEIU: return "tgeiu"; - case R4300i_REGIMM_TLTI: return "tlti"; - case R4300i_REGIMM_TLTIU: return "tltiu"; - case R4300i_REGIMM_TEQI: return "teqi"; - case R4300i_REGIMM_TNEI: return "tnei"; - case R4300i_REGIMM_BLTZAL: return "bltzal"; - case R4300i_REGIMM_BGEZAL: - if (m_opcode.rs == 0) { return "bal"; } - return "bgezal"; - case R4300i_REGIMM_BLTZALL: return "bltzall"; - case R4300i_REGIMM_BGEZALL: return "bgezall"; - } - break; - case R4300i_J: return "j"; - case R4300i_JAL: return "jal"; - case R4300i_BEQ: - if (m_opcode.rs == 0 && m_opcode.rt == 0) { - return "b"; - } else if (m_opcode.rs == 0 || m_opcode.rt == 0) { - return "beqz"; - } else { - return "beq"; - } - break; - case R4300i_BNE: - if ((m_opcode.rs == 0) ^ (m_opcode.rt == 0)){ - return "bnez"; - } else { - return "bne"; - } - break; - case R4300i_BLEZ: return "blez"; - case R4300i_BGTZ: return "bgtz"; - case R4300i_ADDI: return "addi"; - case R4300i_ADDIU: return "addiu"; - case R4300i_SLTI: return "slti"; - case R4300i_SLTIU: return "sltiu"; - case R4300i_ANDI: return "andi"; - case R4300i_ORI: return "ori"; - case R4300i_XORI: return "xori"; - case R4300i_LUI: return "lui"; - case R4300i_CP0: - switch (m_opcode.rs) { - case R4300i_COP0_MF: return "mfc0"; - case R4300i_COP0_MT: return "mtc0"; - default: - if ( (m_opcode.rs & 0x10 ) != 0 ) { - switch( m_opcode.funct ) { - case R4300i_COP0_CO_TLBR: return "tlbr"; - case R4300i_COP0_CO_TLBWI: return "tlbwi"; - case R4300i_COP0_CO_TLBWR: return "tlbwr"; - case R4300i_COP0_CO_TLBP: return "tlbp"; - case R4300i_COP0_CO_ERET: return "eret"; - } - } - break; - } - break; - case R4300i_CP1: - switch (m_opcode.fmt) { - case R4300i_COP1_MF: return "mfc1"; - case R4300i_COP1_DMF: return "dmfc1"; - case R4300i_COP1_CF: return "cfc1"; - case R4300i_COP1_MT: return "mtc1"; - case R4300i_COP1_DMT: return "dmtc1"; - case R4300i_COP1_CT: return "ctc1"; - case R4300i_COP1_BC: - switch (m_opcode.ft) { - case R4300i_COP1_BC_BCF: return "BC1F"; - case R4300i_COP1_BC_BCT: return "BC1T"; - case R4300i_COP1_BC_BCFL: return "BC1FL"; - case R4300i_COP1_BC_BCTL: return "BC1TL"; - } - break; - case R4300i_COP1_S: - switch (m_opcode.funct) { - case R4300i_COP1_FUNCT_ADD: return "ADD.S"; - case R4300i_COP1_FUNCT_SUB: return "SUB.S"; - case R4300i_COP1_FUNCT_MUL: return "MUL.S"; - case R4300i_COP1_FUNCT_DIV: return "DIV.S"; - case R4300i_COP1_FUNCT_SQRT: return "SQRT.S"; - case R4300i_COP1_FUNCT_ABS: return "ABS.S"; - case R4300i_COP1_FUNCT_MOV: return "MOV.S"; - case R4300i_COP1_FUNCT_NEG: return "NEG.S"; - case R4300i_COP1_FUNCT_ROUND_L: return "ROUND.S"; - case R4300i_COP1_FUNCT_TRUNC_L: return "TRUNC.L.S"; - case R4300i_COP1_FUNCT_CEIL_L: return "CEIL.L.S"; - case R4300i_COP1_FUNCT_FLOOR_L: return "FLOOR.L.S"; - case R4300i_COP1_FUNCT_ROUND_W: return "ROUND.W.S"; - case R4300i_COP1_FUNCT_TRUNC_W: return "TRUNC.W.S"; - case R4300i_COP1_FUNCT_CEIL_W: return "CEIL.W.S"; - case R4300i_COP1_FUNCT_FLOOR_W: return "FLOOR.W.S"; - case R4300i_COP1_FUNCT_CVT_S: return "CVT.S.S"; - case R4300i_COP1_FUNCT_CVT_D: return "CVT.D.S"; - case R4300i_COP1_FUNCT_CVT_W: return "CVT.W.S"; - case R4300i_COP1_FUNCT_CVT_L: return "CVT.L.S"; - case R4300i_COP1_FUNCT_C_F: return "C.F.S"; - case R4300i_COP1_FUNCT_C_UN: return "C.UN.S"; - case R4300i_COP1_FUNCT_C_EQ: return "C.EQ.S"; - case R4300i_COP1_FUNCT_C_UEQ: return "C.UEQ.S"; - case R4300i_COP1_FUNCT_C_OLT: return "C.OLT.S"; - case R4300i_COP1_FUNCT_C_ULT: return "C.ULT.S"; - case R4300i_COP1_FUNCT_C_OLE: return "C.OLE.S"; - case R4300i_COP1_FUNCT_C_ULE: return "C.ULE.S"; - case R4300i_COP1_FUNCT_C_SF: return "C.SF.S"; - case R4300i_COP1_FUNCT_C_NGLE: return "C.NGLE.S"; - case R4300i_COP1_FUNCT_C_SEQ: return "C.SEQ.S"; - case R4300i_COP1_FUNCT_C_NGL: return "C.NGL.S"; - case R4300i_COP1_FUNCT_C_LT: return "C.LT.S"; - case R4300i_COP1_FUNCT_C_NGE: return "C.NGE.S"; - case R4300i_COP1_FUNCT_C_LE: return "C.LE.S"; - case R4300i_COP1_FUNCT_C_NGT: return "C.NGT.S"; - } - break; - case R4300i_COP1_D: - switch (m_opcode.funct) { - case R4300i_COP1_FUNCT_ADD: return "ADD.D"; - case R4300i_COP1_FUNCT_SUB: return "SUB.D"; - case R4300i_COP1_FUNCT_MUL: return "MUL.D"; - case R4300i_COP1_FUNCT_DIV: return "DIV.D"; - case R4300i_COP1_FUNCT_SQRT: return "SQRT.D"; - case R4300i_COP1_FUNCT_ABS: return "ABS.D"; - case R4300i_COP1_FUNCT_MOV: return "MOV.D"; - case R4300i_COP1_FUNCT_NEG: return "NEG.D"; - case R4300i_COP1_FUNCT_ROUND_L: return "ROUND.D"; - case R4300i_COP1_FUNCT_TRUNC_L: return "TRUNC.L.D"; - case R4300i_COP1_FUNCT_CEIL_L: return "CEIL.L.D"; - case R4300i_COP1_FUNCT_FLOOR_L: return "FLOOR.L.D"; - case R4300i_COP1_FUNCT_ROUND_W: return "ROUND.W.D"; - case R4300i_COP1_FUNCT_TRUNC_W: return "TRUNC.W.D"; - case R4300i_COP1_FUNCT_CEIL_W: return "CEIL.W.D"; - case R4300i_COP1_FUNCT_FLOOR_W: return "FLOOR.W.D"; - case R4300i_COP1_FUNCT_CVT_S: return "CVT.D.D"; - case R4300i_COP1_FUNCT_CVT_D: return "CVT.D.D"; - case R4300i_COP1_FUNCT_CVT_W: return "CVT.W.D"; - case R4300i_COP1_FUNCT_CVT_L: return "CVT.L.D"; - case R4300i_COP1_FUNCT_C_F: return "C.F.D"; - case R4300i_COP1_FUNCT_C_UN: return "C.UN.D"; - case R4300i_COP1_FUNCT_C_EQ: return "C.EQ.D"; - case R4300i_COP1_FUNCT_C_UEQ: return "C.UEQ.D"; - case R4300i_COP1_FUNCT_C_OLT: return "C.OLT.D"; - case R4300i_COP1_FUNCT_C_ULT: return "C.ULT.D"; - case R4300i_COP1_FUNCT_C_OLE: return "C.OLE.D"; - case R4300i_COP1_FUNCT_C_ULE: return "C.ULE.D"; - case R4300i_COP1_FUNCT_C_SF: return "C.DF.D"; - case R4300i_COP1_FUNCT_C_NGLE: return "C.NGLE.D"; - case R4300i_COP1_FUNCT_C_SEQ: return "C.DEQ.D"; - case R4300i_COP1_FUNCT_C_NGL: return "C.NGL.D"; - case R4300i_COP1_FUNCT_C_LT: return "C.LT.D"; - case R4300i_COP1_FUNCT_C_NGE: return "C.NGE.D"; - case R4300i_COP1_FUNCT_C_LE: return "C.LE.D"; - case R4300i_COP1_FUNCT_C_NGT: return "C.NGT.D"; - } - break; - case R4300i_COP1_W: - switch (m_opcode.funct) { - case R4300i_COP1_FUNCT_ADD: return "ADD.W"; - case R4300i_COP1_FUNCT_SUB: return "SUB.W"; - case R4300i_COP1_FUNCT_MUL: return "MUL.W"; - case R4300i_COP1_FUNCT_DIV: return "DIV.W"; - case R4300i_COP1_FUNCT_SQRT: return "SQRT.W"; - case R4300i_COP1_FUNCT_ABS: return "ABS.W"; - case R4300i_COP1_FUNCT_MOV: return "MOV.W"; - case R4300i_COP1_FUNCT_NEG: return "NEG.W"; - case R4300i_COP1_FUNCT_ROUND_L: return "ROUND.W"; - case R4300i_COP1_FUNCT_TRUNC_L: return "TRUNC.L.W"; - case R4300i_COP1_FUNCT_CEIL_L: return "CEIL.L.W"; - case R4300i_COP1_FUNCT_FLOOR_L: return "FLOOR.L.W"; - case R4300i_COP1_FUNCT_ROUND_W: return "ROUND.W.W"; - case R4300i_COP1_FUNCT_TRUNC_W: return "TRUNC.W.W"; - case R4300i_COP1_FUNCT_CEIL_W: return "CEIL.W.W"; - case R4300i_COP1_FUNCT_FLOOR_W: return "FLOOR.W.W"; - case R4300i_COP1_FUNCT_CVT_S: return "CVT.W.W"; - case R4300i_COP1_FUNCT_CVT_D: return "CVT.D.W"; - case R4300i_COP1_FUNCT_CVT_W: return "CVT.W.W"; - case R4300i_COP1_FUNCT_CVT_L: return "CVT.L.W"; - case R4300i_COP1_FUNCT_C_F: return "C.F.W"; - case R4300i_COP1_FUNCT_C_UN: return "C.UN.W"; - case R4300i_COP1_FUNCT_C_EQ: return "C.EQ.W"; - case R4300i_COP1_FUNCT_C_UEQ: return "C.UEQ.W"; - case R4300i_COP1_FUNCT_C_OLT: return "C.OLT.W"; - case R4300i_COP1_FUNCT_C_ULT: return "C.ULT.W"; - case R4300i_COP1_FUNCT_C_OLE: return "C.OLE.W"; - case R4300i_COP1_FUNCT_C_ULE: return "C.ULE.W"; - case R4300i_COP1_FUNCT_C_SF: return "C.WF.W"; - case R4300i_COP1_FUNCT_C_NGLE: return "C.NGLE.W"; - case R4300i_COP1_FUNCT_C_SEQ: return "C.WEQ.W"; - case R4300i_COP1_FUNCT_C_NGL: return "C.NGL.W"; - case R4300i_COP1_FUNCT_C_LT: return "C.LT.W"; - case R4300i_COP1_FUNCT_C_NGE: return "C.NGE.W"; - case R4300i_COP1_FUNCT_C_LE: return "C.LE.W"; - case R4300i_COP1_FUNCT_C_NGT: return "C.NGT.W"; - } - break; - case R4300i_COP1_L: - switch (m_opcode.funct) { - case R4300i_COP1_FUNCT_ADD: return "ADD.L"; - case R4300i_COP1_FUNCT_SUB: return "SUB.L"; - case R4300i_COP1_FUNCT_MUL: return "MUL.L"; - case R4300i_COP1_FUNCT_DIV: return "DIV.L"; - case R4300i_COP1_FUNCT_SQRT: return "SQRT.L"; - case R4300i_COP1_FUNCT_ABS: return "ABS.L"; - case R4300i_COP1_FUNCT_MOV: return "MOV.L"; - case R4300i_COP1_FUNCT_NEG: return "NEG.L"; - case R4300i_COP1_FUNCT_ROUND_L: return "ROUND.L"; - case R4300i_COP1_FUNCT_TRUNC_L: return "TRUNC.L.L"; - case R4300i_COP1_FUNCT_CEIL_L: return "CEIL.L.L"; - case R4300i_COP1_FUNCT_FLOOR_L: return "FLOOR.L.L"; - case R4300i_COP1_FUNCT_ROUND_W: return "ROUND.W.L"; - case R4300i_COP1_FUNCT_TRUNC_W: return "TRUNC.W.L"; - case R4300i_COP1_FUNCT_CEIL_W: return "CEIL.W.L"; - case R4300i_COP1_FUNCT_FLOOR_W: return "FLOOR.W.L"; - case R4300i_COP1_FUNCT_CVT_S: return "CVT.L.L"; - case R4300i_COP1_FUNCT_CVT_D: return "CVT.D.L"; - case R4300i_COP1_FUNCT_CVT_W: return "CVT.W.L"; - case R4300i_COP1_FUNCT_CVT_L: return "CVT.L.L"; - case R4300i_COP1_FUNCT_C_F: return "C.F.L"; - case R4300i_COP1_FUNCT_C_UN: return "C.UN.L"; - case R4300i_COP1_FUNCT_C_EQ: return "C.EQ.L"; - case R4300i_COP1_FUNCT_C_UEQ: return "C.UEQ.L"; - case R4300i_COP1_FUNCT_C_OLT: return "C.OLT.L"; - case R4300i_COP1_FUNCT_C_ULT: return "C.ULT.L"; - case R4300i_COP1_FUNCT_C_OLE: return "C.OLE.L"; - case R4300i_COP1_FUNCT_C_ULE: return "C.ULE.L"; - case R4300i_COP1_FUNCT_C_SF: return "C.LF.L"; - case R4300i_COP1_FUNCT_C_NGLE: return "C.NGLE.L"; - case R4300i_COP1_FUNCT_C_SEQ: return "C.LEQ.L"; - case R4300i_COP1_FUNCT_C_NGL: return "C.NGL.L"; - case R4300i_COP1_FUNCT_C_LT: return "C.LT.L"; - case R4300i_COP1_FUNCT_C_NGE: return "C.NGE.L"; - case R4300i_COP1_FUNCT_C_LE: return "C.LE.L"; - case R4300i_COP1_FUNCT_C_NGT: return "C.NGT.L"; - } - break; - } - break; - case R4300i_BEQL: - if (m_opcode.rs == m_opcode.rt) { - return "b"; - } else if ((m_opcode.rs == 0) ^ (m_opcode.rt == 0)){ - return "beqzl"; - } else { - return "beql"; - } - break; - case R4300i_BNEL: - if ((m_opcode.rs == 0) ^ (m_opcode.rt == 0)){ - return "bnezl"; - } else { - return "bnel"; - } - break; - case R4300i_BLEZL: return "blezl"; - case R4300i_BGTZL: return "bgtzl"; - case R4300i_DADDI: return "daddi"; - case R4300i_DADDIU: return "daddiu"; - case R4300i_LDL: return "ldl"; - case R4300i_LDR: return "ldr"; - case R4300i_LB: return "lb"; - case R4300i_LH: return "lh"; - case R4300i_LWL: return "lwl"; - case R4300i_LW: return "lw"; - case R4300i_LBU: return "lbu"; - case R4300i_LHU: return "lhu"; - case R4300i_LWR: return "lwr"; - case R4300i_LWU: return "lwu"; - case R4300i_SB: return "sb"; - case R4300i_SH: return "sh"; - case R4300i_SWL: return "swl"; - case R4300i_SW: return "sw"; - case R4300i_SDL: return "sdl"; - case R4300i_SDR: return "sdr"; - case R4300i_SWR: return "swr"; - case R4300i_CACHE: return "cache"; - case R4300i_LL: return "ll"; - case R4300i_LWC1: return "lwc1"; - case R4300i_LDC1: return "ldc1"; - case R4300i_LD: return "ld"; - case R4300i_SC: return "sc"; - case R4300i_SWC1: return "swc1"; - case R4300i_SDC1: return "sdc1"; - case R4300i_SD: return "sd"; - } - return "Unknown"; -} - -void COpcodeAnalysis::OpcodeParam(char * CommandName) -{ - sprintf(CommandName,"%02X %02X %02X %02X",m_opcode.Ascii[3], - m_opcode.Ascii[2],m_opcode.Ascii[1],m_opcode.Ascii[0]); - - switch (m_opcode.op) { - case R4300i_SPECIAL: - switch (m_opcode.funct) { - case R4300i_SPECIAL_SLL: - if (m_opcode.Hex != 0) { - sprintf(CommandName,"%s, %s, 0x%X",CRegName::GPR[m_opcode.rd],CRegName::GPR[m_opcode.rt], m_opcode.sa); - } else { - strcpy(CommandName,""); - } - break; - case R4300i_SPECIAL_SRL: - case R4300i_SPECIAL_SRA: - sprintf(CommandName,"%s, %s, 0x%X",CRegName::GPR[m_opcode.rd], CRegName::GPR[m_opcode.rt],m_opcode.sa); - break; - case R4300i_SPECIAL_SLLV: - case R4300i_SPECIAL_SRLV: - case R4300i_SPECIAL_SRAV: - case R4300i_SPECIAL_DSLLV: - case R4300i_SPECIAL_DSRLV: - case R4300i_SPECIAL_DSRAV: - sprintf(CommandName,"%s, %s, %s",CRegName::GPR[m_opcode.rd], CRegName::GPR[m_opcode.rt], - CRegName::GPR[m_opcode.rs]); - break; - case R4300i_SPECIAL_JR: - sprintf(CommandName,"%s",CRegName::GPR[m_opcode.rs]); - break; - case R4300i_SPECIAL_JALR: - sprintf(CommandName,"%s, %s",CRegName::GPR[m_opcode.rd],CRegName::GPR[m_opcode.rs]); - break; - case R4300i_SPECIAL_SYNC: - case R4300i_SPECIAL_SYSCALL: - case R4300i_SPECIAL_BREAK: - strcpy(CommandName,""); - break; - case R4300i_SPECIAL_MFHI: - case R4300i_SPECIAL_MFLO: - sprintf(CommandName,"%s",CRegName::GPR[m_opcode.rd]); - break; - case R4300i_SPECIAL_MTHI: - case R4300i_SPECIAL_MTLO: - sprintf(CommandName,"%s",CRegName::GPR[m_opcode.rs]); - break; - case R4300i_SPECIAL_MULT: - case R4300i_SPECIAL_MULTU: - case R4300i_SPECIAL_DIV: - case R4300i_SPECIAL_DIVU: - case R4300i_SPECIAL_DMULT: - case R4300i_SPECIAL_DMULTU: - case R4300i_SPECIAL_DDIV: - case R4300i_SPECIAL_DDIVU: - sprintf(CommandName,"%s, %s",CRegName::GPR[m_opcode.rs], CRegName::GPR[m_opcode.rt]); - break; - case R4300i_SPECIAL_ADD: - case R4300i_SPECIAL_ADDU: - case R4300i_SPECIAL_SUB: - case R4300i_SPECIAL_SUBU: - case R4300i_SPECIAL_AND: - case R4300i_SPECIAL_OR: - case R4300i_SPECIAL_XOR: - case R4300i_SPECIAL_NOR: - case R4300i_SPECIAL_SLT: - case R4300i_SPECIAL_SLTU: - case R4300i_SPECIAL_DADD: - case R4300i_SPECIAL_DADDU: - case R4300i_SPECIAL_DSUB: - case R4300i_SPECIAL_DSUBU: - sprintf(CommandName,"%s, %s, %s",CRegName::GPR[m_opcode.rd], CRegName::GPR[m_opcode.rs], - CRegName::GPR[m_opcode.rt]); - break; - case R4300i_SPECIAL_TGE: - case R4300i_SPECIAL_TGEU: - case R4300i_SPECIAL_TLT: - case R4300i_SPECIAL_TLTU: - case R4300i_SPECIAL_TEQ: - case R4300i_SPECIAL_TNE: - sprintf(CommandName,"%s, %s",CRegName::GPR[m_opcode.rs],CRegName::GPR[m_opcode.rt]); - break; - case R4300i_SPECIAL_DSLL: - case R4300i_SPECIAL_DSRL: - case R4300i_SPECIAL_DSRA: - sprintf(CommandName,"%s, %s, 0x%X",CRegName::GPR[m_opcode.rd], - CRegName::GPR[m_opcode.rt], m_opcode.sa); - break; - case R4300i_SPECIAL_DSLL32: - case R4300i_SPECIAL_DSRL32: - case R4300i_SPECIAL_DSRA32: - sprintf(CommandName,"%s, %s, 0x%X",CRegName::GPR[m_opcode.rd],CRegName::GPR[m_opcode.rt], m_opcode.sa); - break; - } - break; - case R4300i_J: - case R4300i_JAL: - sprintf(CommandName,"%s",_Labels->LabelName((m_opcode.VirtualAddress & 0xF0000000) + (m_opcode.target << 2))); - break; - case R4300i_BEQ: - if (m_opcode.rs == 0 && m_opcode.rt == 0) { - sprintf(CommandName,"%s", _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - } else if (m_opcode.rs == 0 || m_opcode.rt == 0) { - sprintf(CommandName,"%s, %s", CRegName::GPR[m_opcode.rs == 0 ? m_opcode.rt : m_opcode.rs ], - _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - } else { - sprintf(CommandName,"%s, %s, %s", CRegName::GPR[m_opcode.rs], CRegName::GPR[m_opcode.rt], - _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - } - break; - case R4300i_BNE: - if ((m_opcode.rs == 0) ^ (m_opcode.rt == 0)){ - sprintf(CommandName,"%s, %s", CRegName::GPR[m_opcode.rs == 0 ? m_opcode.rt : m_opcode.rs ], - _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - } else { - sprintf(CommandName,"%s, %s, %s", CRegName::GPR[m_opcode.rs], CRegName::GPR[m_opcode.rt], - _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - } - break; - case R4300i_REGIMM: - switch (m_opcode.rt) { - case R4300i_REGIMM_BLTZ: - case R4300i_REGIMM_BLTZL: - case R4300i_REGIMM_BGEZL: - case R4300i_REGIMM_BLTZAL: - case R4300i_REGIMM_BLTZALL: - case R4300i_REGIMM_BGEZALL: - sprintf(CommandName,"%s, %s", CRegName::GPR[m_opcode.rs], _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - break; - case R4300i_REGIMM_BGEZ: - case R4300i_REGIMM_BGEZAL: - if (m_opcode.rs == 0) { - sprintf(CommandName,"%s", _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - } else { - sprintf(CommandName,"%s, %s", CRegName::GPR[m_opcode.rs], _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - } - break; - case R4300i_REGIMM_TGEI: - case R4300i_REGIMM_TGEIU: - case R4300i_REGIMM_TLTI: - case R4300i_REGIMM_TLTIU: - case R4300i_REGIMM_TEQI: - case R4300i_REGIMM_TNEI: - sprintf(CommandName,"%s, 0x%X",CRegName::GPR[m_opcode.rs],m_opcode.immediate); - break; - } - break; - case R4300i_BLEZ: - case R4300i_BGTZ: - sprintf(CommandName,"%s, %s",CRegName::GPR[m_opcode.rs], _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - break; - case R4300i_ADDI: - case R4300i_ADDIU: - case R4300i_SLTI: - case R4300i_SLTIU: - case R4300i_ANDI: - case R4300i_ORI: - case R4300i_XORI: - if (m_opcode.rt == m_opcode.rs) { - sprintf(CommandName,"%s, 0x%X",CRegName::GPR[m_opcode.rt], m_opcode.immediate); - } else { - sprintf(CommandName,"%s, %s, 0x%X",CRegName::GPR[m_opcode.rt], CRegName::GPR[m_opcode.rs],m_opcode.immediate); - } - break; - case R4300i_LUI: - sprintf(CommandName,"%s, 0x%X",CRegName::GPR[m_opcode.rt], m_opcode.immediate); - break; - case R4300i_CP0: - switch (m_opcode.rs) { - case R4300i_COP0_MF: - case R4300i_COP0_MT: - sprintf(CommandName,"%s, %s",CRegName::GPR[m_opcode.rt], CRegName::Cop0[m_opcode.rd]); - break; - default: - if ( (m_opcode.rs & 0x10 ) != 0 ) { - switch( m_opcode.funct ) { - case R4300i_COP0_CO_TLBR: strcpy(CommandName,""); break; - case R4300i_COP0_CO_TLBWI: strcpy(CommandName,""); break; - case R4300i_COP0_CO_TLBWR: strcpy(CommandName,""); break; - case R4300i_COP0_CO_TLBP: strcpy(CommandName,""); break; - case R4300i_COP0_CO_ERET: strcpy(CommandName,""); break; - } - } - break; - } - break; - case R4300i_CP1: - switch (m_opcode.fmt) { - case R4300i_COP1_MF: - case R4300i_COP1_DMF: - case R4300i_COP1_MT: - case R4300i_COP1_DMT: - sprintf(CommandName,"%s, %s",CRegName::GPR[m_opcode.rt], CRegName::FPR[m_opcode.fs]); - break; - case R4300i_COP1_CF: - case R4300i_COP1_CT: - sprintf(CommandName,"%s, %s",CRegName::GPR[m_opcode.rt], CRegName::FPR_Ctrl[m_opcode.fs]); - break; - case R4300i_COP1_BC: - switch (m_opcode.ft) { - case R4300i_COP1_BC_BCF: - case R4300i_COP1_BC_BCT: - case R4300i_COP1_BC_BCFL: - case R4300i_COP1_BC_BCTL: - sprintf(CommandName,"%s",_Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - break; - } - break; - case R4300i_COP1_S: - case R4300i_COP1_D: - case R4300i_COP1_W: - case R4300i_COP1_L: - switch (m_opcode.funct) { - case R4300i_COP1_FUNCT_ADD: - case R4300i_COP1_FUNCT_SUB: - case R4300i_COP1_FUNCT_MUL: - case R4300i_COP1_FUNCT_DIV: - sprintf(CommandName,"%s, %s, %s",CRegName::FPR[m_opcode.fd], CRegName::FPR[m_opcode.fs], - CRegName::FPR[m_opcode.ft]); - break; - case R4300i_COP1_FUNCT_SQRT: - case R4300i_COP1_FUNCT_ABS: - case R4300i_COP1_FUNCT_MOV: - case R4300i_COP1_FUNCT_NEG: - case R4300i_COP1_FUNCT_ROUND_L: - case R4300i_COP1_FUNCT_TRUNC_L: - case R4300i_COP1_FUNCT_CEIL_L: - case R4300i_COP1_FUNCT_FLOOR_L: - case R4300i_COP1_FUNCT_ROUND_W: - case R4300i_COP1_FUNCT_TRUNC_W: - case R4300i_COP1_FUNCT_CEIL_W: - case R4300i_COP1_FUNCT_FLOOR_W: - case R4300i_COP1_FUNCT_CVT_S: - case R4300i_COP1_FUNCT_CVT_D: - case R4300i_COP1_FUNCT_CVT_W: - case R4300i_COP1_FUNCT_CVT_L: - sprintf(CommandName,"%s, %s",CRegName::FPR[m_opcode.fd], CRegName::FPR[m_opcode.fs]); - break; - case R4300i_COP1_FUNCT_C_F: - case R4300i_COP1_FUNCT_C_UN: - case R4300i_COP1_FUNCT_C_EQ: - case R4300i_COP1_FUNCT_C_UEQ: - case R4300i_COP1_FUNCT_C_OLT: - case R4300i_COP1_FUNCT_C_ULT: - case R4300i_COP1_FUNCT_C_OLE: - case R4300i_COP1_FUNCT_C_ULE: - case R4300i_COP1_FUNCT_C_SF: - case R4300i_COP1_FUNCT_C_NGLE: - case R4300i_COP1_FUNCT_C_SEQ: - case R4300i_COP1_FUNCT_C_NGL: - case R4300i_COP1_FUNCT_C_LT: - case R4300i_COP1_FUNCT_C_NGE: - case R4300i_COP1_FUNCT_C_LE: - case R4300i_COP1_FUNCT_C_NGT: - sprintf(CommandName,"%s, %s",CRegName::FPR[m_opcode.fs], CRegName::FPR[m_opcode.ft]); - break; - } - } - break; - case R4300i_BEQL: - if (m_opcode.rs == m_opcode.rt) { - sprintf(CommandName,"%s", _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - } else if ((m_opcode.rs == 0) ^ (m_opcode.rt == 0)){ - sprintf(CommandName,"%s, %s", CRegName::GPR[m_opcode.rs == 0 ? m_opcode.rt : m_opcode.rs ], - _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - } else { - sprintf(CommandName,"%s, %s, %s", CRegName::GPR[m_opcode.rs], CRegName::GPR[m_opcode.rt], - _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - } - break; - case R4300i_BNEL: - if ((m_opcode.rs == 0) ^ (m_opcode.rt == 0)){ - sprintf(CommandName,"%s, %s", CRegName::GPR[m_opcode.rs == 0 ? m_opcode.rt : m_opcode.rs ], - _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - } else { - sprintf(CommandName,"%s, %s, %s", CRegName::GPR[m_opcode.rs], CRegName::GPR[m_opcode.rt], - _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - } - break; - case R4300i_BLEZL: - case R4300i_BGTZL: - sprintf(CommandName,"%s, %s",CRegName::GPR[m_opcode.rs], _Labels->LabelName(m_opcode.VirtualAddress + ((short)m_opcode.offset << 2) + 4)); - break; - case R4300i_DADDI: - case R4300i_DADDIU: - sprintf(CommandName,"%s, %s, 0x%X",CRegName::GPR[m_opcode.rt], CRegName::GPR[m_opcode.rs],m_opcode.immediate); - break; - case R4300i_LDL: - case R4300i_LDR: - case R4300i_LB: - case R4300i_LH: - case R4300i_LWL: - case R4300i_LW: - case R4300i_LBU: - case R4300i_LHU: - case R4300i_LWR: - case R4300i_LWU: - case R4300i_SB: - case R4300i_SH: - case R4300i_SWL: - case R4300i_SW: - case R4300i_SDL: - case R4300i_SDR: - case R4300i_SWR: - case R4300i_LL: - case R4300i_LD: - case R4300i_SD: - case R4300i_SC: - if (m_opcode.offset == 0) { - sprintf(CommandName,"%s, %s",CRegName::GPR[m_opcode.rt], CRegName::GPR[m_opcode.base]); - } else { - sprintf(CommandName,"%s, 0x%X (%s)",CRegName::GPR[m_opcode.rt], m_opcode.offset, CRegName::GPR[m_opcode.base]); - } - break; - case R4300i_CACHE: - sprintf(CommandName,"%d, 0x%X (%s)",m_opcode.rt, m_opcode.offset, CRegName::GPR[m_opcode.base]); - break; - case R4300i_LWC1: - case R4300i_LDC1: - case R4300i_SWC1: - case R4300i_SDC1: - sprintf(CommandName,"%s, 0x%X (%s)",CRegName::FPR[m_opcode.rt], m_opcode.offset, CRegName::GPR[m_opcode.base]); - break; - } -} - - - -#endif \ No newline at end of file diff --git a/Source/Project64/N64 System/Mips/OpCode Analysis Class.h b/Source/Project64/N64 System/Mips/OpCode Analysis Class.h deleted file mode 100644 index 8a6a56d21..000000000 --- a/Source/Project64/N64 System/Mips/OpCode Analysis Class.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifdef tofix - -class COpcodeAnalysis -{ - OPCODE &m_opcode; - -public: - COpcodeAnalysis(OPCODE &opcode); - - //Functions dealing with the name of the opcode - const char * OpcodeName ( void ); - stdstr FullName ( bool * MultipleOps ); - void OpcodeParam ( char * CommandName ); - stdstr Name ( void ); - - //Analysising the opcode - bool DelaySlotEffectsCompare ( DWORD Reg1, DWORD Reg2 ); - bool DelaySlotEffectsJump ( void ); - bool HasDelaySlot ( void ); - bool IsCop1Instruction ( void ); - - //Information about the jump - bool HardJump ( void ); //Jump to a fixed address with out remembering current location - bool LinkedJump ( void ); //Stores the Next opcode in GPR[31] - bool RelativeJump ( void ); //Target relative to current PC (eg BNE, BEQ) - bool LikelyJump ( void ); //Misses Delay slot on jumping - bool NonConditionalJump ( void ); //will alway jump because of registers (eg BEQ r0, r0) - DWORD JumpLocation ( void ); //Target PC (uses m_opcode.VirtualAddress) - - //Stops execution - bool TerminateExecution ( void ); -}; - -#endif \ No newline at end of file diff --git a/Source/Project64/N64 System/Mips/OpCode Class.cpp b/Source/Project64/N64 System/Mips/OpCode Class.cpp deleted file mode 100644 index ab0905648..000000000 --- a/Source/Project64/N64 System/Mips/OpCode Class.cpp +++ /dev/null @@ -1,120 +0,0 @@ -#include "stdafx.h" - -#ifdef toremove -QWORD const COpcode::LDL_MASK[8] = { 0x0000000000000000,0x00000000000000FF,0x000000000000FFFF, - 0x0000000000FFFFFF,0x00000000FFFFFFFF,0x000000FFFFFFFFFF, - 0x0000FFFFFFFFFFFF,0x00FFFFFFFFFFFFFF }; -QWORD const COpcode::LDR_MASK[8] = { 0xFFFFFFFFFFFFFF00,0xFFFFFFFFFFFF0000,0xFFFFFFFFFF000000, - 0xFFFFFFFF00000000,0xFFFFFF0000000000,0xFFFF000000000000, - 0xFF00000000000000,0x0000000000000000 }; -QWORD const COpcode::SDL_MASK[8] = { 0x0000000000000000,0xFF00000000000000,0xFFFF000000000000, - 0xFFFFFF0000000000,0xFFFFFFFF00000000,0xFFFFFFFFFF000000, - 0xFFFFFFFFFFFF0000,0xFFFFFFFFFFFFFF00 }; -QWORD const COpcode::SDR_MASK[8] = { 0x00FFFFFFFFFFFFFF,0x0000FFFFFFFFFFFF,0x000000FFFFFFFFFF, - 0x00000000FFFFFFFF,0x0000000000FFFFFF,0x000000000000FFFF, - 0x00000000000000FF,0x0000000000000000 }; -int const COpcode::DL_SHIFT[8] = { 0, 8, 16, 24, 32, 40, 48, 56 }; -int const COpcode::DR_SHIFT[8] = { 56,48,40, 32, 24, 16, 8, 0 }; - -DWORD const COpcode::LWL_MASK[4] = { 0x00000000,0x000000FF,0x0000FFFF,0x00FFFFFF }; -DWORD const COpcode::LWR_MASK[4] = { 0xFFFFFF00,0xFFFF0000,0xFF000000,0x00000000 }; -DWORD const COpcode::SWL_MASK[4] = { 0x00000000,0xFF000000,0xFFFF0000,0xFFFFFF00 }; -DWORD const COpcode::SWR_MASK[4] = { 0x00FFFFFF,0x0000FFFF,0x000000FF,0x00000000 }; -int const COpcode::WL_SHIFT[4] = { 0, 8, 16, 24 }; -int const COpcode::WR_SHIFT[4] = { 24, 16 , 8, 0 }; - -COpcode::COpcode ( DWORD VirtualAddress ): - COpcodeAnalysis(m_opcode), - m_OpLen(OpCode_Size), - m_OpcodeCount(g_Settings->LoadDword(Game_CounterFactor)), - m_FixedOpcodeCount(g_Settings->LoadDword(Game_CounterFactor) != 0) -{ - //setup details about handling opcodes - m_NextStep = StepNormal; - m_JumpLocation = -1; - - //Flags - m_FlagSet = false; - m_ExectionJumped = false; - m_InPermLoop = PermLoop_None; - - //set up the details about the current opcode - m_opcode.VirtualAddress = VirtualAddress & ~3; - if (!SetPC(m_opcode.VirtualAddress)) { - g_Notify->BreakPoint(__FILE__,__LINE__); - } -} - -float COpcode::CycleCount ( void ) { - if (m_FixedOpcodeCount) { - return m_OpcodeCount; - } - return 2; -} - -bool COpcode::Next (void) { - m_ExectionJumped = false; - - switch (m_NextStep) { - case StepNormal: - m_opcode.VirtualAddress += m_OpLen; - break; - case StepDelaySlot: - m_NextStep = StepJump; - m_opcode.VirtualAddress += m_OpLen; - break; - case StepJump: - m_opcode.VirtualAddress = m_JumpLocation; - m_NextStep = StepNormal; - m_FlagSet = true; - m_ExectionJumped = true; - break; - //Compiler flags - case DoDelaySlot: - m_NextStep = InsideDelaySlot; - m_opcode.VirtualAddress += m_OpLen; - break; - case InsideDelaySlot: - m_NextStep = DelaySlotDone; - m_opcode.VirtualAddress -= m_OpLen; - break; - case DelaySlotDone: - m_NextStep = BranchCompiled; - m_opcode.VirtualAddress += m_OpLen * 2; - break; - default: - m_opcode.VirtualAddress += m_OpLen; - g_Notify->BreakPoint(__FILE__,__LINE__); - } - - if (!g_MMU->LW_VAddr(m_opcode.VirtualAddress,m_opcode.Hex)) { - return false; - } - return true; -} - -void COpcode::SetJump ( DWORD Target, bool Delay ) { - if (Target == PC()) { - if (g_MMU->ValidVaddr(Target + OpCode_Size)) { - if (HasDelaySlot() && !DelaySlotEffectsJump()) { - m_InPermLoop = PermLoop_Jump; - m_FlagSet = true; - } - } - } - m_NextStep = Delay ? StepDelaySlot : StepJump; - m_JumpLocation = Target; -} - -bool COpcode::SetPC ( DWORD VirtualAddress ) { - PERM_LOOP InPerm = m_InPermLoop; - bool FlagSet = m_FlagSet; - m_opcode.VirtualAddress = -1; - SetJump(VirtualAddress,false); - bool Result = Next(); - m_InPermLoop = InPerm; - m_FlagSet = FlagSet; - return Result; -} - -#endif diff --git a/Source/Project64/N64 System/Mips/OpCode Class.h b/Source/Project64/N64 System/Mips/OpCode Class.h deleted file mode 100644 index c88567887..000000000 --- a/Source/Project64/N64 System/Mips/OpCode Class.h +++ /dev/null @@ -1,103 +0,0 @@ -#ifdef toremove - -#ifndef __OPCODE_CLASS__H__ -#define __OPCODE_CLASS__H__ - -//typedef struct { -// DWORD VirtualAddress; -// -// union { -// unsigned long Hex; -// unsigned char Ascii[4]; -// -// struct { -// unsigned offset : 16; -// unsigned rt : 5; -// unsigned rs : 5; -// unsigned op : 6; -// }; -// -// struct { -// unsigned immediate : 16; -// unsigned : 5; -// unsigned base : 5; -// unsigned : 6; -// }; -// -// struct { -// unsigned target : 26; -// unsigned : 6; -// }; -// -// struct { -// unsigned funct : 6; -// unsigned sa : 5; -// unsigned rd : 5; -// unsigned : 5; -// unsigned : 5; -// unsigned : 6; -// }; -// -// struct { -// unsigned : 6; -// unsigned fd : 5; -// unsigned fs : 5; -// unsigned ft : 5; -// unsigned fmt : 5; -// unsigned : 6; -// }; -// }; -//} OPCODE; - -#include "OpCode Analysis Class.h" - -enum StepType -{ - StepNormal, StepDelaySlot, StepJump, - - //Recompiler Flags - DoDelaySlot, InsideDelaySlot, DelaySlotDone, BranchCompiled -}; - -enum { OpCode_Size = 4}; -enum PERM_LOOP { PermLoop_None, PermLoop_Jump, PermLoop_Delay }; -class CRecompilerOps; - -class COpcode : public COpcodeAnalysis { - friend CRecompilerOps; //Can manipulate how the opcode moves - - DWORD const m_OpLen; //Length of the current opcode (MIPS will always be 4) - bool const m_FixedOpcodeCount; //Is the opcode count fixed or is it variable - float const m_OpcodeCount; //how many cycles is the fixed opcode count - - StepType m_NextStep; //How to go to the next opcode, is a jump or the next opcode ? - DWORD m_JumpLocation; //If the opcode is going to jump it will jump to this address - -public: - //Constructor/deconstructor - COpcode ( DWORD VirtualAddress ); - - //Geting/changing details about the opcode stored - bool Next ( void ); //move to the next opcode, if it is a jump returns true - inline DWORD PC ( void ) { return m_opcode.VirtualAddress; } //current VAddr - StepType NextStep ( void ) { return m_NextStep; } - void SetJump ( DWORD Target, bool Delay ); - bool SetPC ( DWORD VirtualAddress ); - - //Info about the opcode - DWORD DelaySize ( void ) { return m_OpLen; } //How big is the delay slot opcode - float CycleCount ( void ); - inline bool InDelaySlot ( void ) const { return m_NextStep != StepNormal; } - - //Contains the break down of the opcode - OPCODE m_opcode; - - //Flags - bool m_FlagSet; //A Flag was set - bool m_ExectionJumped; //Was the last next moved to a new location from a jump - PERM_LOOP m_InPermLoop; //Jumped to same address with delay slot not effecting the operation -}; - -#endif - -#endif \ No newline at end of file diff --git a/Source/Project64/N64 System/Mips/OpCode.h b/Source/Project64/N64 System/Mips/OpCode.h index 27975e0c6..c46b38455 100644 --- a/Source/Project64/N64 System/Mips/OpCode.h +++ b/Source/Project64/N64 System/Mips/OpCode.h @@ -1,4 +1,14 @@ -#pragma once +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once typedef union { unsigned long Hex; diff --git a/Source/Project64/N64 System/Mips/Pif Ram.cpp b/Source/Project64/N64 System/Mips/Pif Ram.cpp index c37dd5b8d..a0690602d 100644 --- a/Source/Project64/N64 System/Mips/Pif Ram.cpp +++ b/Source/Project64/N64 System/Mips/Pif Ram.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" int CPifRamSettings::m_RefCount = 0; diff --git a/Source/Project64/N64 System/Mips/Pif Ram.h b/Source/Project64/N64 System/Mips/Pif Ram.h index 7f81d2622..c03739c12 100644 --- a/Source/Project64/N64 System/Mips/Pif Ram.h +++ b/Source/Project64/N64 System/Mips/Pif Ram.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CPifRamSettings { protected: diff --git a/Source/Project64/N64 System/Mips/Register Class.cpp b/Source/Project64/N64 System/Mips/Register Class.cpp index d9c29e792..90133fc2d 100644 --- a/Source/Project64/N64 System/Mips/Register Class.cpp +++ b/Source/Project64/N64 System/Mips/Register Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" const char * CRegName::GPR[32] = {"r0","at","v0","v1","a0","a1","a2","a3", diff --git a/Source/Project64/N64 System/Mips/Register Class.h b/Source/Project64/N64 System/Mips/Register Class.h index cfbbe70ba..08cf0cd92 100644 --- a/Source/Project64/N64 System/Mips/Register Class.h +++ b/Source/Project64/N64 System/Mips/Register Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + //CPO registers by name class CP0registers { diff --git a/Source/Project64/N64 System/Mips/Sram.cpp b/Source/Project64/N64 System/Mips/Sram.cpp index e7b665d8b..130a8d13d 100644 --- a/Source/Project64/N64 System/Mips/Sram.cpp +++ b/Source/Project64/N64 System/Mips/Sram.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CSram::CSram ( bool ReadOnly ) : diff --git a/Source/Project64/N64 System/Mips/Sram.h b/Source/Project64/N64 System/Mips/Sram.h index 5fa7b27c0..55d47ed61 100644 --- a/Source/Project64/N64 System/Mips/Sram.h +++ b/Source/Project64/N64 System/Mips/Sram.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CSram { public: diff --git a/Source/Project64/N64 System/Mips/System Events.cpp b/Source/Project64/N64 System/Mips/System Events.cpp index 2caeb3609..7bb0b3f3e 100644 --- a/Source/Project64/N64 System/Mips/System Events.cpp +++ b/Source/Project64/N64 System/Mips/System Events.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CSystemEvents::CSystemEvents(CN64System * System) : diff --git a/Source/Project64/N64 System/Mips/System Events.h b/Source/Project64/N64 System/Mips/System Events.h index d3ee4355c..9311f1fc2 100644 --- a/Source/Project64/N64 System/Mips/System Events.h +++ b/Source/Project64/N64 System/Mips/System Events.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + enum SystemEvent { SysEvent_ExecuteInterrupt, SysEvent_GSButtonPressed, diff --git a/Source/Project64/N64 System/Mips/System Timing.cpp b/Source/Project64/N64 System/Mips/System Timing.cpp index 9271f63d3..7ea0cdf51 100644 --- a/Source/Project64/N64 System/Mips/System Timing.cpp +++ b/Source/Project64/N64 System/Mips/System Timing.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CSystemTimer::CSystemTimer( int & NextTimer ) : diff --git a/Source/Project64/N64 System/Mips/System Timing.h b/Source/Project64/N64 System/Mips/System Timing.h index c44579259..c14ba9c40 100644 --- a/Source/Project64/N64 System/Mips/System Timing.h +++ b/Source/Project64/N64 System/Mips/System Timing.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + #include "..\\N64 Types.h" class CSystemTimer diff --git a/Source/Project64/N64 System/Mips/TLB Class.h b/Source/Project64/N64 System/Mips/TLB Class.h index 649c909b4..bc3fdf7f1 100644 --- a/Source/Project64/N64 System/Mips/TLB Class.h +++ b/Source/Project64/N64 System/Mips/TLB Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CDebugTlb; class CTLB_CB diff --git a/Source/Project64/N64 System/Mips/TLB class.cpp b/Source/Project64/N64 System/Mips/TLB class.cpp index fdb85d5b7..a5dcd3793 100644 --- a/Source/Project64/N64 System/Mips/TLB class.cpp +++ b/Source/Project64/N64 System/Mips/TLB class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CTLB::CTLB(CTLB_CB * CallBack ): diff --git a/Source/Project64/N64 System/Mips/TranslateVaddr.h b/Source/Project64/N64 System/Mips/TranslateVaddr.h index 8a5d28eda..7e454181c 100644 --- a/Source/Project64/N64 System/Mips/TranslateVaddr.h +++ b/Source/Project64/N64 System/Mips/TranslateVaddr.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CTransVaddr { public: diff --git a/Source/Project64/N64 System/N64 Class.cpp b/Source/Project64/N64 System/N64 Class.cpp index 276309cf2..137d6d92e 100644 --- a/Source/Project64/N64 System/N64 Class.cpp +++ b/Source/Project64/N64 System/N64 Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #pragma warning(disable:4355) // Disable 'this' : used in base member initializer list diff --git a/Source/Project64/N64 System/N64 Class.h b/Source/Project64/N64 System/N64 Class.h index 0ae55d63f..bb7596935 100644 --- a/Source/Project64/N64 System/N64 Class.h +++ b/Source/Project64/N64 System/N64 Class.h @@ -1,5 +1,14 @@ -#ifndef _N64CLASS_H_ -#define _N64CLASS_H_ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once typedef std::list EVENT_LIST; @@ -156,5 +165,3 @@ private: //list of function that have been called .. used in profiling FUNC_CALLS m_FunctionCalls; }; - -#endif \ No newline at end of file diff --git a/Source/Project64/N64 System/N64 Rom Class.cpp b/Source/Project64/N64 System/N64 Rom Class.cpp index 129b68a03..19d0ce35f 100644 --- a/Source/Project64/N64 System/N64 Rom Class.cpp +++ b/Source/Project64/N64 System/N64 Rom Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CN64Rom::CN64Rom ( void ) diff --git a/Source/Project64/N64 System/N64 Rom Class.h b/Source/Project64/N64 System/N64 Rom Class.h index e96077634..6ca9925b7 100644 --- a/Source/Project64/N64 System/N64 Rom Class.h +++ b/Source/Project64/N64 System/N64 Rom Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + #include "N64 Types.h" class CN64Rom diff --git a/Source/Project64/N64 System/N64 Types.h b/Source/Project64/N64 System/N64 Types.h index 8e7ee49c0..3a00f0fb4 100644 --- a/Source/Project64/N64 System/N64 Types.h +++ b/Source/Project64/N64 System/N64 Types.h @@ -1,5 +1,14 @@ -#ifndef __N64_ENUMS__H__ -#define __N64_ENUMS__H__ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once typedef unsigned char BYTE; typedef unsigned short WORD; @@ -73,5 +82,3 @@ enum STEP_TYPE { PERMLOOP_DO_DELAY = 10, PERMLOOP_DELAY_DONE = 11, }; - -#endif diff --git a/Source/Project64/N64 System/Profiling Class.cpp b/Source/Project64/N64 System/Profiling Class.cpp index ca842349d..6b3c37700 100644 --- a/Source/Project64/N64 System/Profiling Class.cpp +++ b/Source/Project64/N64 System/Profiling Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" enum { MAX_FRAMES = 13 }; diff --git a/Source/Project64/N64 System/Profiling Class.h b/Source/Project64/N64 System/Profiling Class.h index cacbc2774..1089b4f80 100644 --- a/Source/Project64/N64 System/Profiling Class.h +++ b/Source/Project64/N64 System/Profiling Class.h @@ -1,3 +1,14 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once typedef std::map PROFILE_ENRTIES; typedef PROFILE_ENRTIES::iterator PROFILE_ENRTY; diff --git a/Source/Project64/N64 System/Recompiler/Code Block.cpp b/Source/Project64/N64 System/Recompiler/Code Block.cpp index 414d15646..b65aa4787 100644 --- a/Source/Project64/N64 System/Recompiler/Code Block.cpp +++ b/Source/Project64/N64 System/Recompiler/Code Block.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" bool DelaySlotEffectsCompare (DWORD PC, DWORD Reg1, DWORD Reg2); diff --git a/Source/Project64/N64 System/Recompiler/Code Block.h b/Source/Project64/N64 System/Recompiler/Code Block.h index 9066a8848..ae786c447 100644 --- a/Source/Project64/N64 System/Recompiler/Code Block.h +++ b/Source/Project64/N64 System/Recompiler/Code Block.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CCodeBlock : private CRecompilerOps { diff --git a/Source/Project64/N64 System/Recompiler/Code Section.cpp b/Source/Project64/N64 System/Recompiler/Code Section.cpp index 065934422..da06e1b02 100644 --- a/Source/Project64/N64 System/Recompiler/Code Section.cpp +++ b/Source/Project64/N64 System/Recompiler/Code Section.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" void InPermLoop ( void ); diff --git a/Source/Project64/N64 System/Recompiler/Code Section.h b/Source/Project64/N64 System/Recompiler/Code Section.h index 3e9302ed7..35ad0fb58 100644 --- a/Source/Project64/N64 System/Recompiler/Code Section.h +++ b/Source/Project64/N64 System/Recompiler/Code Section.h @@ -1,4 +1,14 @@ -#pragma once +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once class CCodeBlock; diff --git a/Source/Project64/N64 System/Recompiler/Delay Slot Map Class.cpp b/Source/Project64/N64 System/Recompiler/Delay Slot Map Class.cpp deleted file mode 100644 index 716dda68f..000000000 --- a/Source/Project64/N64 System/Recompiler/Delay Slot Map Class.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#include "stdafx.h" - diff --git a/Source/Project64/N64 System/Recompiler/Delay Slot Map Class.h b/Source/Project64/N64 System/Recompiler/Delay Slot Map Class.h index 39c64c6cf..5813f8af8 100644 --- a/Source/Project64/N64 System/Recompiler/Delay Slot Map Class.h +++ b/Source/Project64/N64 System/Recompiler/Delay Slot Map Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CDelaySlotFunctionMap { typedef std::map FUNCTION_MAP; diff --git a/Source/Project64/N64 System/Recompiler/Exit Info.h b/Source/Project64/N64 System/Recompiler/Exit Info.h index b9e69a4a0..9997771dc 100644 --- a/Source/Project64/N64 System/Recompiler/Exit Info.h +++ b/Source/Project64/N64 System/Recompiler/Exit Info.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CExitInfo { public: diff --git a/Source/Project64/N64 System/Recompiler/Function Info.cpp b/Source/Project64/N64 System/Recompiler/Function Info.cpp index 9926bcffe..b273d1e3e 100644 --- a/Source/Project64/N64 System/Recompiler/Function Info.cpp +++ b/Source/Project64/N64 System/Recompiler/Function Info.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CCompiledFunc::CCompiledFunc( const CCodeBlock & CodeBlock ) : diff --git a/Source/Project64/N64 System/Recompiler/Function Info.h b/Source/Project64/N64 System/Recompiler/Function Info.h index 624cc3677..2615762ed 100644 --- a/Source/Project64/N64 System/Recompiler/Function Info.h +++ b/Source/Project64/N64 System/Recompiler/Function Info.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CCompiledFunc { //constructor diff --git a/Source/Project64/N64 System/Recompiler/Function Map Class.cpp b/Source/Project64/N64 System/Recompiler/Function Map Class.cpp index ffea73040..fe05e60a9 100644 --- a/Source/Project64/N64 System/Recompiler/Function Map Class.cpp +++ b/Source/Project64/N64 System/Recompiler/Function Map Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CFunctionMap::CFunctionMap() : diff --git a/Source/Project64/N64 System/Recompiler/Function Map Class.h b/Source/Project64/N64 System/Recompiler/Function Map Class.h index 3fe939a55..c74c749a9 100644 --- a/Source/Project64/N64 System/Recompiler/Function Map Class.h +++ b/Source/Project64/N64 System/Recompiler/Function Map Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CFunctionMap { protected: diff --git a/Source/Project64/N64 System/Recompiler/Jump Info.cpp b/Source/Project64/N64 System/Recompiler/Jump Info.cpp deleted file mode 100644 index 1577c4e3b..000000000 --- a/Source/Project64/N64 System/Recompiler/Jump Info.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "stdafx.h" \ No newline at end of file diff --git a/Source/Project64/N64 System/Recompiler/Jump Info.h b/Source/Project64/N64 System/Recompiler/Jump Info.h index 42997a658..0791973db 100644 --- a/Source/Project64/N64 System/Recompiler/Jump Info.h +++ b/Source/Project64/N64 System/Recompiler/Jump Info.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CJumpInfo { public: diff --git a/Source/Project64/N64 System/Recompiler/Loop Analysis.cpp b/Source/Project64/N64 System/Recompiler/Loop Analysis.cpp index fba03539f..c5917a744 100644 --- a/Source/Project64/N64 System/Recompiler/Loop Analysis.cpp +++ b/Source/Project64/N64 System/Recompiler/Loop Analysis.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #define CHECKED_BUILD 1 diff --git a/Source/Project64/N64 System/Recompiler/Loop Analysis.h b/Source/Project64/N64 System/Recompiler/Loop Analysis.h index 249638757..b505c2b6c 100644 --- a/Source/Project64/N64 System/Recompiler/Loop Analysis.h +++ b/Source/Project64/N64 System/Recompiler/Loop Analysis.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CCodeSection; diff --git a/Source/Project64/N64 System/Recompiler/Recompiler Class.cpp b/Source/Project64/N64 System/Recompiler/Recompiler Class.cpp index e279594f9..5ea210c60 100644 --- a/Source/Project64/N64 System/Recompiler/Recompiler Class.cpp +++ b/Source/Project64/N64 System/Recompiler/Recompiler Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CRecompiler::CRecompiler(CProfiling & Profile, bool & EndEmulation ) : diff --git a/Source/Project64/N64 System/Recompiler/Recompiler Class.h b/Source/Project64/N64 System/Recompiler/Recompiler Class.h index b7c1f7071..d988bd36e 100644 --- a/Source/Project64/N64 System/Recompiler/Recompiler Class.h +++ b/Source/Project64/N64 System/Recompiler/Recompiler Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CRecompiler : protected CDebugSettings, public CRecompilerSettings, diff --git a/Source/Project64/N64 System/Recompiler/Recompiler Memory.cpp b/Source/Project64/N64 System/Recompiler/Recompiler Memory.cpp index 4777bfbc5..675ca256a 100644 --- a/Source/Project64/N64 System/Recompiler/Recompiler Memory.cpp +++ b/Source/Project64/N64 System/Recompiler/Recompiler Memory.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CRecompMemory::CRecompMemory() : diff --git a/Source/Project64/N64 System/Recompiler/Recompiler Memory.h b/Source/Project64/N64 System/Recompiler/Recompiler Memory.h index 6d72368bc..923b76aaa 100644 --- a/Source/Project64/N64 System/Recompiler/Recompiler Memory.h +++ b/Source/Project64/N64 System/Recompiler/Recompiler Memory.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CRecompMemory : protected CX86Ops { diff --git a/Source/Project64/N64 System/Recompiler/Recompiler Ops.cpp b/Source/Project64/N64 System/Recompiler/Recompiler Ops.cpp index d53d2f978..0bf8cfe64 100644 --- a/Source/Project64/N64 System/Recompiler/Recompiler Ops.cpp +++ b/Source/Project64/N64 System/Recompiler/Recompiler Ops.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CCodeSection * CRecompilerOps::m_Section = NULL; diff --git a/Source/Project64/N64 System/Recompiler/Recompiler Ops.h b/Source/Project64/N64 System/Recompiler/Recompiler Ops.h index 4100ff5c5..311f6142c 100644 --- a/Source/Project64/N64 System/Recompiler/Recompiler Ops.h +++ b/Source/Project64/N64 System/Recompiler/Recompiler Ops.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CCodeSection; class CRecompilerOps : diff --git a/Source/Project64/N64 System/Recompiler/Reg Info.cpp b/Source/Project64/N64 System/Recompiler/Reg Info.cpp index b4fd60215..440c50aa2 100644 --- a/Source/Project64/N64 System/Recompiler/Reg Info.cpp +++ b/Source/Project64/N64 System/Recompiler/Reg Info.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" unsigned int CRegInfo::m_fpuControl = 0; diff --git a/Source/Project64/N64 System/Recompiler/Reg Info.h b/Source/Project64/N64 System/Recompiler/Reg Info.h index 3b6d66a7c..d545b3359 100644 --- a/Source/Project64/N64 System/Recompiler/Reg Info.h +++ b/Source/Project64/N64 System/Recompiler/Reg Info.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CRegInfo : private CX86Ops, private CSystemRegisters diff --git a/Source/Project64/N64 System/Recompiler/Section Info.cpp b/Source/Project64/N64 System/Recompiler/Section Info.cpp index 3dd40ce89..7e6d43b6d 100644 --- a/Source/Project64/N64 System/Recompiler/Section Info.cpp +++ b/Source/Project64/N64 System/Recompiler/Section Info.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CJumpInfo::CJumpInfo() diff --git a/Source/Project64/N64 System/Recompiler/Section Info.h b/Source/Project64/N64 System/Recompiler/Section Info.h index 0652acb98..90c55b562 100644 --- a/Source/Project64/N64 System/Recompiler/Section Info.h +++ b/Source/Project64/N64 System/Recompiler/Section Info.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CCodeSection; diff --git a/Source/Project64/N64 System/Recompiler/X86ops.cpp b/Source/Project64/N64 System/Recompiler/X86ops.cpp index d95ea7457..4fe4de543 100644 --- a/Source/Project64/N64 System/Recompiler/X86ops.cpp +++ b/Source/Project64/N64 System/Recompiler/X86ops.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #define PUTDST8(dest,value) (*((BYTE *)(dest))=(BYTE)(value)); dest += 1; diff --git a/Source/Project64/N64 System/Recompiler/X86ops.h b/Source/Project64/N64 System/Recompiler/X86ops.h index 7d9e34170..ed73f1683 100644 --- a/Source/Project64/N64 System/Recompiler/X86ops.h +++ b/Source/Project64/N64 System/Recompiler/X86ops.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CX86Ops { public: diff --git a/Source/Project64/N64 System/Recompiler/x86CodeLog.cpp b/Source/Project64/N64 System/Recompiler/x86CodeLog.cpp index 335e036b0..1417f9128 100644 --- a/Source/Project64/N64 System/Recompiler/x86CodeLog.cpp +++ b/Source/Project64/N64 System/Recompiler/x86CodeLog.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" static HANDLE hCPULogFile = NULL; diff --git a/Source/Project64/N64 System/Recompiler/x86CodeLog.h b/Source/Project64/N64 System/Recompiler/x86CodeLog.h index 5148da930..3512675cb 100644 --- a/Source/Project64/N64 System/Recompiler/x86CodeLog.h +++ b/Source/Project64/N64 System/Recompiler/x86CodeLog.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + #define CPU_Message(Message,... ) if (bX86Logging) { x86_Log_Message(Message,## __VA_ARGS__); } void x86_Log_Message (const char * Message, ...); diff --git a/Source/Project64/N64 System/Rom Information Class.cpp b/Source/Project64/N64 System/Rom Information Class.cpp index f25141d66..46c083a41 100644 --- a/Source/Project64/N64 System/Rom Information Class.cpp +++ b/Source/Project64/N64 System/Rom Information Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" RomInformation::RomInformation (const char * RomFile): diff --git a/Source/Project64/N64 System/Rom Information Class.h b/Source/Project64/N64 System/Rom Information Class.h index 59dc09b96..d6194a7a5 100644 --- a/Source/Project64/N64 System/Rom Information Class.h +++ b/Source/Project64/N64 System/Rom Information Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class RomInformation { bool const m_DeleteRomInfo; diff --git a/Source/Project64/N64 System/Speed Limitor Class.cpp b/Source/Project64/N64 System/Speed Limitor Class.cpp index ac3cb0a12..77f14e08c 100644 --- a/Source/Project64/N64 System/Speed Limitor Class.cpp +++ b/Source/Project64/N64 System/Speed Limitor Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #pragma comment(lib, "winmm.lib") diff --git a/Source/Project64/N64 System/Speed Limitor Class.h b/Source/Project64/N64 System/Speed Limitor Class.h index dabc1683b..871ef247f 100644 --- a/Source/Project64/N64 System/Speed Limitor Class.h +++ b/Source/Project64/N64 System/Speed Limitor Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CSpeedLimitor { CNotification * const g_Notify; DWORD m_Speed, m_BaseSpeed, m_Frames, m_LastTime; diff --git a/Source/Project64/N64 System/System Globals.cpp b/Source/Project64/N64 System/System Globals.cpp index 0380dddf7..83f7ffdb8 100644 --- a/Source/Project64/N64 System/System Globals.cpp +++ b/Source/Project64/N64 System/System Globals.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CN64System * g_System = NULL; diff --git a/Source/Project64/N64 System/System Globals.h b/Source/Project64/N64 System/System Globals.h index e1b4f80e8..0c7319b5c 100644 --- a/Source/Project64/N64 System/System Globals.h +++ b/Source/Project64/N64 System/System Globals.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + extern CNotification * g_Notify; extern CSettings * g_Settings; diff --git a/Source/Project64/N64 System/Types.h b/Source/Project64/N64 System/Types.h index 405b1eb1d..3a577b321 100644 --- a/Source/Project64/N64 System/Types.h +++ b/Source/Project64/N64 System/Types.h @@ -1,30 +1,14 @@ -/* - * Project 64 - A Nintendo 64 emulator. - * - * (c) Copyright 2001 zilmar (zilmar@emulation64.com) and - * Jabo (jabo@emulation64.com). - * - * pj64 homepage: www.pj64.net - * - * Permission to use, copy, modify and distribute Project64 in both binary and - * source form, for non-commercial purposes, is hereby granted without fee, - * providing that this license information and copyright notice appear with - * all copies and any derived work. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event shall the authors be held liable for any damages - * arising from the use of this software. - * - * Project64 is freeware for PERSONAL USE only. Commercial users should - * seek permission of the copyright holders first. Commercial use includes - * charging money for Project64 or software derived from Project64. - * - * The copyright holders request that bug fixes and improvements to the code - * should be forwarded to them so if they want them. - * - */ -#ifndef __Types_h -#define __Types_h +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once typedef unsigned char BYTE; typedef unsigned short WORD; @@ -55,5 +39,3 @@ typedef union tagUDWORD { char B[8]; unsigned char UB[8]; } MIPS_DWORD; - -#endif \ No newline at end of file diff --git a/Source/Project64/Plugin.h b/Source/Project64/Plugin.h index d46caa58d..6dabbf869 100644 --- a/Source/Project64/Plugin.h +++ b/Source/Project64/Plugin.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once #include "Support.h" diff --git a/Source/Project64/Plugins/Audio Plugin.cpp b/Source/Project64/Plugins/Audio Plugin.cpp index 76cc84f2b..7fe2fba69 100644 --- a/Source/Project64/Plugins/Audio Plugin.cpp +++ b/Source/Project64/Plugins/Audio Plugin.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" void FixUPXIssue ( BYTE * ProgramLocation ); diff --git a/Source/Project64/Plugins/Audio Plugin.h b/Source/Project64/Plugins/Audio Plugin.h index 086cf9923..2ddb45cde 100644 --- a/Source/Project64/Plugins/Audio Plugin.h +++ b/Source/Project64/Plugins/Audio Plugin.h @@ -1,5 +1,15 @@ -#ifndef _AUDIOPLUGIN_H_ -#define _AUDIOPLUGIN_H_ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CAudioPlugin { public: @@ -42,5 +52,3 @@ private: static void AudioThread (CAudioPlugin * _this); }; - -#endif //_AUDIOPLUGIN_H_ \ No newline at end of file diff --git a/Source/Project64/Plugins/Controller Plugin.cpp b/Source/Project64/Plugins/Controller Plugin.cpp index fb59c3c04..87c5a6e9f 100644 --- a/Source/Project64/Plugins/Controller Plugin.cpp +++ b/Source/Project64/Plugins/Controller Plugin.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" void FixUPXIssue ( BYTE * ProgramLocation ); diff --git a/Source/Project64/Plugins/Controller Plugin.h b/Source/Project64/Plugins/Controller Plugin.h index 264342f98..08668fe58 100644 --- a/Source/Project64/Plugins/Controller Plugin.h +++ b/Source/Project64/Plugins/Controller Plugin.h @@ -1,6 +1,15 @@ -#ifndef CONTROL_STRUCTS -#define CONTROL_STRUCTS - +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + typedef union { DWORD Value; struct { @@ -34,8 +43,6 @@ typedef struct { int Plugin; } CONTROL; -#endif - enum PluginType { PLUGIN_NONE = 1, PLUGIN_MEMPAK = 2, diff --git a/Source/Project64/Plugins/GFX plugin.cpp b/Source/Project64/Plugins/GFX plugin.cpp index 023699c56..a83e94895 100644 --- a/Source/Project64/Plugins/GFX plugin.cpp +++ b/Source/Project64/Plugins/GFX plugin.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" void FixUPXIssue ( BYTE * ProgramLocation ); diff --git a/Source/Project64/Plugins/GFX plugin.h b/Source/Project64/Plugins/GFX plugin.h index 537bf9a6c..b911971c1 100644 --- a/Source/Project64/Plugins/GFX plugin.h +++ b/Source/Project64/Plugins/GFX plugin.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CGfxPlugin { typedef struct { diff --git a/Source/Project64/Plugins/Plugin Class.cpp b/Source/Project64/Plugins/Plugin Class.cpp index a41412ea1..61f8bbcef 100644 --- a/Source/Project64/Plugins/Plugin Class.cpp +++ b/Source/Project64/Plugins/Plugin Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CPlugins::CPlugins (const stdstr & PluginDir): diff --git a/Source/Project64/Plugins/Plugin Class.h b/Source/Project64/Plugins/Plugin Class.h index 9d0f65210..971fc8a95 100644 --- a/Source/Project64/Plugins/Plugin Class.h +++ b/Source/Project64/Plugins/Plugin Class.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once #include diff --git a/Source/Project64/Plugins/Plugin List.cpp b/Source/Project64/Plugins/Plugin List.cpp index ab253c712..51acf70a1 100644 --- a/Source/Project64/Plugins/Plugin List.cpp +++ b/Source/Project64/Plugins/Plugin List.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CPluginList::CPluginList(bool bAutoFill /* = true */) : diff --git a/Source/Project64/Plugins/RSP Plugin.cpp b/Source/Project64/Plugins/RSP Plugin.cpp index 330317039..3f842208e 100644 --- a/Source/Project64/Plugins/RSP Plugin.cpp +++ b/Source/Project64/Plugins/RSP Plugin.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" void FixUPXIssue ( BYTE * ProgramLocation ); diff --git a/Source/Project64/Plugins/RSP Plugin.h b/Source/Project64/Plugins/RSP Plugin.h index 059cd7ee4..ff25c5c71 100644 --- a/Source/Project64/Plugins/RSP Plugin.h +++ b/Source/Project64/Plugins/RSP Plugin.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CRSP_Plugin { typedef struct { /* Menu */ diff --git a/Source/Project64/Project64.vcproj b/Source/Project64/Project64.vcproj index 53513e4ac..a626220ed 100644 --- a/Source/Project64/Project64.vcproj +++ b/Source/Project64/Project64.vcproj @@ -531,22 +531,10 @@ RelativePath="N64 System\Mips\Memory Virtual Mem.cpp" > - - - - - - @@ -595,10 +583,6 @@ RelativePath="N64 System\Recompiler\Code Section.cpp" > - - @@ -607,10 +591,6 @@ RelativePath="N64 System\Recompiler\Function Map Class.cpp" > - - @@ -906,10 +886,6 @@ Name="Header Files" Filter="h;hpp;hxx;hm;inl" > - - @@ -1228,10 +1204,6 @@ RelativePath="N64 System\Mips\Eeprom.h" > - - @@ -1252,14 +1224,6 @@ RelativePath=".\N64 System\Mips\Mempak.H" > - - - - diff --git a/Source/Project64/Settings.h b/Source/Project64/Settings.h index 5d175da21..ca613c22e 100644 --- a/Source/Project64/Settings.h +++ b/Source/Project64/Settings.h @@ -1,5 +1,14 @@ -#ifndef __SETTINGS__H__ -#define __SETTINGS__H__ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once #define MaxPluginSetting 65535 @@ -257,5 +266,3 @@ enum SettingID { #include "./Settings/Recompiler Settings.h" #include "./Settings/N64System Settings.h" #include "./Settings/Gui Settings.h" - -#endif diff --git a/Source/Project64/Settings/Debug Settings.cpp b/Source/Project64/Settings/Debug Settings.cpp index a4d713e2b..2b00d8478 100644 --- a/Source/Project64/Settings/Debug Settings.cpp +++ b/Source/Project64/Settings/Debug Settings.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" int CDebugSettings::m_RefCount = 0; diff --git a/Source/Project64/Settings/Debug Settings.h b/Source/Project64/Settings/Debug Settings.h index 8f7d3fc1a..2f812a9d5 100644 --- a/Source/Project64/Settings/Debug Settings.h +++ b/Source/Project64/Settings/Debug Settings.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + #include class CDebugSettings diff --git a/Source/Project64/Settings/Game Settings.cpp b/Source/Project64/Settings/Game Settings.cpp index 181d6c701..8570ceb80 100644 --- a/Source/Project64/Settings/Game Settings.cpp +++ b/Source/Project64/Settings/Game Settings.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" bool CGameSettings::m_bSMM_StoreInstruc; diff --git a/Source/Project64/Settings/Game Settings.h b/Source/Project64/Settings/Game Settings.h index 5b56370de..5a16915e1 100644 --- a/Source/Project64/Settings/Game Settings.h +++ b/Source/Project64/Settings/Game Settings.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + #include class CGameSettings diff --git a/Source/Project64/Settings/Gui Settings.cpp b/Source/Project64/Settings/Gui Settings.cpp index 133cc5e33..79b19c14e 100644 --- a/Source/Project64/Settings/Gui Settings.cpp +++ b/Source/Project64/Settings/Gui Settings.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" int CGuiSettings::m_RefCount = 0; diff --git a/Source/Project64/Settings/Gui Settings.h b/Source/Project64/Settings/Gui Settings.h index b5b004b65..d87162f7a 100644 --- a/Source/Project64/Settings/Gui Settings.h +++ b/Source/Project64/Settings/Gui Settings.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CGuiSettings diff --git a/Source/Project64/Settings/N64System Settings.cpp b/Source/Project64/Settings/N64System Settings.cpp index 5812fc173..3c7b58f54 100644 --- a/Source/Project64/Settings/N64System Settings.cpp +++ b/Source/Project64/Settings/N64System Settings.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" int CN64SystemSettings::m_RefCount = 0; diff --git a/Source/Project64/Settings/N64System Settings.h b/Source/Project64/Settings/N64System Settings.h index e4d7465cd..a08976938 100644 --- a/Source/Project64/Settings/N64System Settings.h +++ b/Source/Project64/Settings/N64System Settings.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CN64SystemSettings diff --git a/Source/Project64/Settings/Notification Settings.cpp b/Source/Project64/Settings/Notification Settings.cpp index 862396519..bccd89f04 100644 --- a/Source/Project64/Settings/Notification Settings.cpp +++ b/Source/Project64/Settings/Notification Settings.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" bool CNotificationSettings::m_bInFullScreen = false; diff --git a/Source/Project64/Settings/Notification Settings.h b/Source/Project64/Settings/Notification Settings.h index bf0b1d7d2..5c4f0963a 100644 --- a/Source/Project64/Settings/Notification Settings.h +++ b/Source/Project64/Settings/Notification Settings.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CNotificationSettings { static void StaticRefreshSettings (CNotificationSettings * _this) diff --git a/Source/Project64/Settings/Recompiler Settings.cpp b/Source/Project64/Settings/Recompiler Settings.cpp index 7c1802694..b4dd56783 100644 --- a/Source/Project64/Settings/Recompiler Settings.cpp +++ b/Source/Project64/Settings/Recompiler Settings.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" int CRecompilerSettings::m_RefCount = 0; diff --git a/Source/Project64/Settings/Recompiler Settings.h b/Source/Project64/Settings/Recompiler Settings.h index 8a4c5cf77..908150e21 100644 --- a/Source/Project64/Settings/Recompiler Settings.h +++ b/Source/Project64/Settings/Recompiler Settings.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + #include class CRecompilerSettings diff --git a/Source/Project64/Settings/SettingType/SettingsType-Application.cpp b/Source/Project64/Settings/SettingType/SettingsType-Application.cpp index 0c855a4f2..2c0643140 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-Application.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-Application.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-Application.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-Application.h b/Source/Project64/Settings/SettingType/SettingsType-Application.h index b4003fe76..49bd006e3 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-Application.h +++ b/Source/Project64/Settings/SettingType/SettingsType-Application.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeApplication : diff --git a/Source/Project64/Settings/SettingType/SettingsType-ApplicationIndex.cpp b/Source/Project64/Settings/SettingType/SettingsType-ApplicationIndex.cpp index 28df566b4..f02902beb 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-ApplicationIndex.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-ApplicationIndex.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-Application.h" #include "SettingsType-ApplicationIndex.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-ApplicationIndex.h b/Source/Project64/Settings/SettingType/SettingsType-ApplicationIndex.h index 9a61c593f..b2281d271 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-ApplicationIndex.h +++ b/Source/Project64/Settings/SettingType/SettingsType-ApplicationIndex.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeApplicationIndex : diff --git a/Source/Project64/Settings/SettingType/SettingsType-ApplicationPath.cpp b/Source/Project64/Settings/SettingType/SettingsType-ApplicationPath.cpp index b92e0466d..adedf7fbc 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-ApplicationPath.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-ApplicationPath.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-Application.h" #include "SettingsType-ApplicationPath.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-ApplicationPath.h b/Source/Project64/Settings/SettingType/SettingsType-ApplicationPath.h index 257cf26f2..e37bd34d2 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-ApplicationPath.h +++ b/Source/Project64/Settings/SettingType/SettingsType-ApplicationPath.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeApplicationPath : diff --git a/Source/Project64/Settings/SettingType/SettingsType-Base.h b/Source/Project64/Settings/SettingType/SettingsType-Base.h index dbd9b4971..1ea95b21b 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-Base.h +++ b/Source/Project64/Settings/SettingType/SettingsType-Base.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once enum SettingType { diff --git a/Source/Project64/Settings/SettingType/SettingsType-Cheats.cpp b/Source/Project64/Settings/SettingType/SettingsType-Cheats.cpp index 7ac30a884..1f282ce73 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-Cheats.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-Cheats.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-Cheats.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-Cheats.h b/Source/Project64/Settings/SettingType/SettingsType-Cheats.h index a4fb89fc6..dfbbbcc97 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-Cheats.h +++ b/Source/Project64/Settings/SettingType/SettingsType-Cheats.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeCheats : diff --git a/Source/Project64/Settings/SettingType/SettingsType-GameSetting.cpp b/Source/Project64/Settings/SettingType/SettingsType-GameSetting.cpp index 9484dd233..d8233a916 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-GameSetting.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-GameSetting.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-Application.h" #include "SettingsType-GameSetting.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-GameSetting.h b/Source/Project64/Settings/SettingType/SettingsType-GameSetting.h index 0bd4558a7..f1dbe5c99 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-GameSetting.h +++ b/Source/Project64/Settings/SettingType/SettingsType-GameSetting.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeGame : diff --git a/Source/Project64/Settings/SettingType/SettingsType-GameSettingIndex.cpp b/Source/Project64/Settings/SettingType/SettingsType-GameSettingIndex.cpp index a65f38569..6d5a96ba6 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-GameSettingIndex.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-GameSettingIndex.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-Application.h" #include "SettingsType-GameSetting.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-GameSettingIndex.h b/Source/Project64/Settings/SettingType/SettingsType-GameSettingIndex.h index a55ec35c6..fb40dc361 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-GameSettingIndex.h +++ b/Source/Project64/Settings/SettingType/SettingsType-GameSettingIndex.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeGameIndex : diff --git a/Source/Project64/Settings/SettingType/SettingsType-RDBCpuType.cpp b/Source/Project64/Settings/SettingType/SettingsType-RDBCpuType.cpp index 4d238121a..0ed216a03 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RDBCpuType.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-RDBCpuType.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-RomDatabase.h" #include "SettingsType-RDBCpuType.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-RDBCpuType.h b/Source/Project64/Settings/SettingType/SettingsType-RDBCpuType.h index 6c1e3a5ab..686525b03 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RDBCpuType.h +++ b/Source/Project64/Settings/SettingType/SettingsType-RDBCpuType.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeRDBCpuType : diff --git a/Source/Project64/Settings/SettingType/SettingsType-RDBOnOff.cpp b/Source/Project64/Settings/SettingType/SettingsType-RDBOnOff.cpp index a8bf74500..d33b714a7 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RDBOnOff.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-RDBOnOff.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-RomDatabase.h" #include "SettingsType-RDBOnOff.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-RDBOnOff.h b/Source/Project64/Settings/SettingType/SettingsType-RDBOnOff.h index 69e773b71..5c21d301c 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RDBOnOff.h +++ b/Source/Project64/Settings/SettingType/SettingsType-RDBOnOff.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeRDBOnOff : diff --git a/Source/Project64/Settings/SettingType/SettingsType-RDBRamSize.cpp b/Source/Project64/Settings/SettingType/SettingsType-RDBRamSize.cpp index 910b333d6..00f3e7e19 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RDBRamSize.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-RDBRamSize.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-RomDatabase.h" #include "SettingsType-RDBRamSize.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-RDBRamSize.h b/Source/Project64/Settings/SettingType/SettingsType-RDBRamSize.h index 295534eec..8c1cdba37 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RDBRamSize.h +++ b/Source/Project64/Settings/SettingType/SettingsType-RDBRamSize.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeRDBRDRamSize : diff --git a/Source/Project64/Settings/SettingType/SettingsType-RDBSaveChip.cpp b/Source/Project64/Settings/SettingType/SettingsType-RDBSaveChip.cpp index 8177640cb..0a28e9b97 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RDBSaveChip.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-RDBSaveChip.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-RomDatabase.h" #include "SettingsType-RDBSaveChip.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-RDBSaveChip.h b/Source/Project64/Settings/SettingType/SettingsType-RDBSaveChip.h index 6f785eda5..4af75ff05 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RDBSaveChip.h +++ b/Source/Project64/Settings/SettingType/SettingsType-RDBSaveChip.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeRDBSaveChip : diff --git a/Source/Project64/Settings/SettingType/SettingsType-RDBYesNo.cpp b/Source/Project64/Settings/SettingType/SettingsType-RDBYesNo.cpp index 4617dd4dd..eedabed04 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RDBYesNo.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-RDBYesNo.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-RomDatabase.h" #include "SettingsType-RDBYesNo.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-RDBYesNo.h b/Source/Project64/Settings/SettingType/SettingsType-RDBYesNo.h index 451ad5464..65b8e8607 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RDBYesNo.h +++ b/Source/Project64/Settings/SettingType/SettingsType-RDBYesNo.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeRDBYesNo : diff --git a/Source/Project64/Settings/SettingType/SettingsType-RelativePath.cpp b/Source/Project64/Settings/SettingType/SettingsType-RelativePath.cpp index 003b48070..1eafaf028 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RelativePath.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-RelativePath.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-RelativePath.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-RelativePath.h b/Source/Project64/Settings/SettingType/SettingsType-RelativePath.h index 167a50488..51572f5ab 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RelativePath.h +++ b/Source/Project64/Settings/SettingType/SettingsType-RelativePath.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeRelativePath : diff --git a/Source/Project64/Settings/SettingType/SettingsType-RomDatabase.cpp b/Source/Project64/Settings/SettingType/SettingsType-RomDatabase.cpp index 2d888ea02..35f498361 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RomDatabase.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-RomDatabase.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-RomDatabase.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-RomDatabase.h b/Source/Project64/Settings/SettingType/SettingsType-RomDatabase.h index 69206566c..2884b8647 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RomDatabase.h +++ b/Source/Project64/Settings/SettingType/SettingsType-RomDatabase.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeRomDatabase : diff --git a/Source/Project64/Settings/SettingType/SettingsType-RomDatabaseIndex.cpp b/Source/Project64/Settings/SettingType/SettingsType-RomDatabaseIndex.cpp index c63137c12..9b5ff31b9 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RomDatabaseIndex.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-RomDatabaseIndex.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-RomDatabase.h" #include "SettingsType-RomDatabaseIndex.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-RomDatabaseIndex.h b/Source/Project64/Settings/SettingType/SettingsType-RomDatabaseIndex.h index d27df97a5..cece9254d 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-RomDatabaseIndex.h +++ b/Source/Project64/Settings/SettingType/SettingsType-RomDatabaseIndex.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeRomDatabaseIndex : diff --git a/Source/Project64/Settings/SettingType/SettingsType-SelectedDirectory.cpp b/Source/Project64/Settings/SettingType/SettingsType-SelectedDirectory.cpp index f3f20aa24..1b6508aa4 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-SelectedDirectory.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-SelectedDirectory.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-SelectedDirectory.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-SelectedDirectory.h b/Source/Project64/Settings/SettingType/SettingsType-SelectedDirectory.h index 1d38f867e..5871677e5 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-SelectedDirectory.h +++ b/Source/Project64/Settings/SettingType/SettingsType-SelectedDirectory.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeSelectedDirectory : diff --git a/Source/Project64/Settings/SettingType/SettingsType-TempBool.cpp b/Source/Project64/Settings/SettingType/SettingsType-TempBool.cpp index 3abbddc64..9fbeee682 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-TempBool.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-TempBool.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-TempBool.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-TempBool.h b/Source/Project64/Settings/SettingType/SettingsType-TempBool.h index 528d679fe..508ea5b14 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-TempBool.h +++ b/Source/Project64/Settings/SettingType/SettingsType-TempBool.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeTempBool : diff --git a/Source/Project64/Settings/SettingType/SettingsType-TempNumber.cpp b/Source/Project64/Settings/SettingType/SettingsType-TempNumber.cpp index 3d988dd5b..3f82c429d 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-TempNumber.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-TempNumber.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-TempNumber.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-TempNumber.h b/Source/Project64/Settings/SettingType/SettingsType-TempNumber.h index 4096543cd..af62a3b20 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-TempNumber.h +++ b/Source/Project64/Settings/SettingType/SettingsType-TempNumber.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeTempNumber : diff --git a/Source/Project64/Settings/SettingType/SettingsType-TempString.cpp b/Source/Project64/Settings/SettingType/SettingsType-TempString.cpp index 89ec6d0b1..6e69df2ac 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-TempString.cpp +++ b/Source/Project64/Settings/SettingType/SettingsType-TempString.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingsType-TempString.h" diff --git a/Source/Project64/Settings/SettingType/SettingsType-TempString.h b/Source/Project64/Settings/SettingType/SettingsType-TempString.h index d9b5af16d..588c7af50 100644 --- a/Source/Project64/Settings/SettingType/SettingsType-TempString.h +++ b/Source/Project64/Settings/SettingType/SettingsType-TempString.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingTypeTempString : diff --git a/Source/Project64/Settings/Settings Class.cpp b/Source/Project64/Settings/Settings Class.cpp index 291b83756..94e6a4870 100644 --- a/Source/Project64/Settings/Settings Class.cpp +++ b/Source/Project64/Settings/Settings Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "SettingType/SettingsType-Application.h" diff --git a/Source/Project64/Settings/Settings Class.h b/Source/Project64/Settings/Settings Class.h index c4311f74a..e0bfc507f 100644 --- a/Source/Project64/Settings/Settings Class.h +++ b/Source/Project64/Settings/Settings Class.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once #include "SettingType/SettingsType-Base.h" diff --git a/Source/Project64/User Interface.h b/Source/Project64/User Interface.h index de9149de7..359e0ba53 100644 --- a/Source/Project64/User Interface.h +++ b/Source/Project64/User Interface.h @@ -1,5 +1,15 @@ -#ifndef __USER_INTERFACE__H__ -#define __USER_INTERFACE__H__ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + #pragma warning(disable:4786) #include "Support.h" @@ -52,6 +62,3 @@ class CN64System; #include ".\\User Interface\\Frame Per Second Class.h" #include ".\\User Interface\\resource.h" #include ".\\User Interface\\Settings Config.h" - -#endif - diff --git a/Source/Project64/User Interface/Frame Per Second Class.cpp b/Source/Project64/User Interface/Frame Per Second Class.cpp index 94609a231..874a73c2d 100644 --- a/Source/Project64/User Interface/Frame Per Second Class.cpp +++ b/Source/Project64/User Interface/Frame Per Second Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CFramePerSecond::CFramePerSecond (CNotification * Notification): diff --git a/Source/Project64/User Interface/Frame Per Second Class.h b/Source/Project64/User Interface/Frame Per Second Class.h index 98042fe28..632b7aaed 100644 --- a/Source/Project64/User Interface/Frame Per Second Class.h +++ b/Source/Project64/User Interface/Frame Per Second Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CFramePerSecond { CNotification * const g_Notify; int m_iFrameRateType, m_ScreenHertz; diff --git a/Source/Project64/User Interface/Gui Class.cpp b/Source/Project64/User Interface/Gui Class.cpp index d361b1491..10de1415d 100644 --- a/Source/Project64/User Interface/Gui Class.cpp +++ b/Source/Project64/User Interface/Gui Class.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" extern "C" { diff --git a/Source/Project64/User Interface/Gui Class.h b/Source/Project64/User Interface/Gui Class.h index 661d8f925..0cf6b6105 100644 --- a/Source/Project64/User Interface/Gui Class.h +++ b/Source/Project64/User Interface/Gui Class.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + class CGfxPlugin; //Plugin that controls the rendering class CAudioPlugin; //Plugin for audio, need the hwnd class CControl_Plugin; //Controller needs hwnd to see if it is the focused window diff --git a/Source/Project64/User Interface/Menu Class.h b/Source/Project64/User Interface/Menu Class.h index 3e65cd4d2..9928dad43 100644 --- a/Source/Project64/User Interface/Menu Class.h +++ b/Source/Project64/User Interface/Menu Class.h @@ -1,37 +1,17 @@ -#ifndef __MENU_CLASS__H__ -#define __MENU_CLASS__H__ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once #include -/*class MENU_SHORT_CUT { - MENU_SHORT_CUT_KEY::ACCESS_MODE m_Access; - LanguageStringID m_Section; - LanguageStringID m_Title; - SHORTCUT_KEY_LIST m_AccelList; - -public: - MENU_SHORT_CUT(LanguageStringID Section, LanguageStringID Title, MENU_SHORT_CUT_KEY::ACCESS_MODE Access) - { - Reset(Section, Title,Access); - } - void Reset ( LanguageStringID Section, LanguageStringID Title, MENU_SHORT_CUT_KEY::ACCESS_MODE Access) - { - this->m_Section = Section; - this->m_Title = Title; - this->m_Access = Access; - } - void AddShortCut ( WORD key, bool bCtrl, bool bAlt, bool bShift, MENU_SHORT_CUT_KEY::ACCESS_MODE AccessMode ); - void RemoveItem ( MENU_SHORT_CUT_KEY * ShortCut ); - - inline const SHORTCUT_KEY_LIST & GetAccelItems ( void ) const { return m_AccelList; } - inline LanguageStringID Section ( void ) const { return m_Section; } - inline LanguageStringID Title ( void ) const { return m_Title; } - inline MENU_SHORT_CUT_KEY::ACCESS_MODE AccessMode ( void ) const { return m_Access; } -}; - -typedef std::map MENU_SHORT_CUT_MAP; -typedef MENU_SHORT_CUT_MAP MSC_MAP;*/ - enum Menu_ID { //ControlID SPLITER, SUB_MENU, NO_ID, ID_PLUGIN_MENU, @@ -85,9 +65,4 @@ public: virtual bool ProcessMessage(WND_HANDLE hWnd, DWORD wNotifyCode, DWORD wID) = 0; // pure virtual draw() function virtual void ResetMenu(void) = 0; // pure virtual draw() function MENU_HANDLE GetHandle (void) { return m_MenuHandle; } - //virtual MSC_MAP GetShortCutInfo(bool InitialSettings) = 0; // pure virtual draw() function - //virtual void SaveShortCuts ( MSC_MAP * ShortCuts ) = 0; - //virtual LanguageStringID GetShortCutMenuItemName(MSC_MAP * ShortCuts, WORD key, bool bCtrl, bool bAlt, bool bShift, CMenuShortCutKey::ACCESS_MODE Access ) = 0; // pure virtual draw() function }; - -#endif \ No newline at end of file diff --git a/Source/Project64/User Interface/MenuShortCuts.h b/Source/Project64/User Interface/MenuShortCuts.h index 36f3c615e..0d05f01e9 100644 --- a/Source/Project64/User Interface/MenuShortCuts.h +++ b/Source/Project64/User Interface/MenuShortCuts.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once typedef struct { diff --git a/Source/Project64/User Interface/Notification Class.h b/Source/Project64/User Interface/Notification Class.h index dc62974b6..50a6d6d69 100644 --- a/Source/Project64/User Interface/Notification Class.h +++ b/Source/Project64/User Interface/Notification Class.h @@ -1,5 +1,14 @@ -#ifndef __NOTIFACTION_CLASS__H__ -#define __NOTIFACTION_CLASS__H__ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once #include "../Settings/Notification Settings.h" @@ -57,5 +66,3 @@ public: }; CNotification & Notify ( void ); - -#endif diff --git a/Source/Project64/User Interface/Rom Browser.h b/Source/Project64/User Interface/Rom Browser.h index d218fbc2e..b168015d3 100644 --- a/Source/Project64/User Interface/Rom Browser.h +++ b/Source/Project64/User Interface/Rom Browser.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + #include class CMainGui; diff --git a/Source/Project64/User Interface/Settings/Settings Page - Advanced Options.cpp b/Source/Project64/User Interface/Settings/Settings Page - Advanced Options.cpp index 6a33d2f4d..090b410dd 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Advanced Options.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Advanced Options.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Settings Page.h" diff --git a/Source/Project64/User Interface/Settings/Settings Page - Advanced Options.h b/Source/Project64/User Interface/Settings/Settings Page - Advanced Options.h index ec86f4f5a..fc82416b5 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Advanced Options.h +++ b/Source/Project64/User Interface/Settings/Settings Page - Advanced Options.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CAdvancedOptionsPage : diff --git a/Source/Project64/User Interface/Settings/Settings Page - Directories.cpp b/Source/Project64/User Interface/Settings/Settings Page - Directories.cpp index 9c9915bb6..310ca796f 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Directories.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Directories.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Settings Page.h" diff --git a/Source/Project64/User Interface/Settings/Settings Page - Directories.h b/Source/Project64/User Interface/Settings/Settings Page - Directories.h index ea996a1d0..9e06715d9 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Directories.h +++ b/Source/Project64/User Interface/Settings/Settings Page - Directories.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class COptionsDirectoriesPage : diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game - General.cpp b/Source/Project64/User Interface/Settings/Settings Page - Game - General.cpp index 98cbda9d8..d9b2dad21 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game - General.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Game - General.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Settings Page.h" #include "Settings Page - Game - General.h" diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game - General.h b/Source/Project64/User Interface/Settings/Settings Page - Game - General.h index b2bf96a94..90f33b7cf 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game - General.h +++ b/Source/Project64/User Interface/Settings/Settings Page - Game - General.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once #include "../WTL Controls/ModifiedCheckBox.h" diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.cpp b/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.cpp index a39d974fe..866fdc768 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Settings Page.h" #include "Settings Page - Game - Plugin.h" diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.h b/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.h index fb324fcad..e74971957 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.h +++ b/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once #include diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game - Recompiler.cpp b/Source/Project64/User Interface/Settings/Settings Page - Game - Recompiler.cpp index 42e3bcabf..8fbe7f3a4 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game - Recompiler.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Game - Recompiler.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Settings Page.h" #include "Settings Page - Game - Recompiler.h" diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game - Recompiler.h b/Source/Project64/User Interface/Settings/Settings Page - Game - Recompiler.h index 4cbb57956..afefbe8c1 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game - Recompiler.h +++ b/Source/Project64/User Interface/Settings/Settings Page - Game - Recompiler.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CGameRecompilePage : diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game - Status.cpp b/Source/Project64/User Interface/Settings/Settings Page - Game - Status.cpp index dd87f2807..8dbc855f2 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game - Status.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Game - Status.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Settings Page.h" #include "Settings Page - Game - Status.h" diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game - Status.h b/Source/Project64/User Interface/Settings/Settings Page - Game - Status.h index 03d379cbe..31b93488c 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game - Status.h +++ b/Source/Project64/User Interface/Settings/Settings Page - Game - Status.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CGameStatusPage : diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game Browser.cpp b/Source/Project64/User Interface/Settings/Settings Page - Game Browser.cpp index a5f016fa7..8259a1742 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game Browser.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Game Browser.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Settings Page.h" diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game Browser.h b/Source/Project64/User Interface/Settings/Settings Page - Game Browser.h index 9903d447f..795beeb9b 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game Browser.h +++ b/Source/Project64/User Interface/Settings/Settings Page - Game Browser.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class COptionsGameBrowserPage : diff --git a/Source/Project64/User Interface/Settings/Settings Page - Keyboard Shortcuts.cpp b/Source/Project64/User Interface/Settings/Settings Page - Keyboard Shortcuts.cpp index 03c602f7d..48924c594 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Keyboard Shortcuts.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Keyboard Shortcuts.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Settings Page.h" diff --git a/Source/Project64/User Interface/Settings/Settings Page - Keyboard Shortcuts.h b/Source/Project64/User Interface/Settings/Settings Page - Keyboard Shortcuts.h index 10dca9dea..ca80fdf98 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Keyboard Shortcuts.h +++ b/Source/Project64/User Interface/Settings/Settings Page - Keyboard Shortcuts.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class COptionsShortCutsPage : diff --git a/Source/Project64/User Interface/Settings/Settings Page - Options.cpp b/Source/Project64/User Interface/Settings/Settings Page - Options.cpp index 8fc85bc40..e3c23223f 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Options.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Options.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Settings Page.h" diff --git a/Source/Project64/User Interface/Settings/Settings Page - Options.h b/Source/Project64/User Interface/Settings/Settings Page - Options.h index f1aad870c..4058ac7bf 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Options.h +++ b/Source/Project64/User Interface/Settings/Settings Page - Options.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CGeneralOptionsPage : diff --git a/Source/Project64/User Interface/Settings/Settings Page - Plugin.cpp b/Source/Project64/User Interface/Settings/Settings Page - Plugin.cpp index a43764e0a..1435120b0 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Plugin.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Plugin.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Settings Page.h" diff --git a/Source/Project64/User Interface/Settings/Settings Page - Plugin.h b/Source/Project64/User Interface/Settings/Settings Page - Plugin.h index b3bcd6d7e..a6bbffffc 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Plugin.h +++ b/Source/Project64/User Interface/Settings/Settings Page - Plugin.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once #include diff --git a/Source/Project64/User Interface/Settings/Settings Page.cpp b/Source/Project64/User Interface/Settings/Settings Page.cpp index e77e83d63..d07e7c784 100644 --- a/Source/Project64/User Interface/Settings/Settings Page.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" #include "Settings Page.h" diff --git a/Source/Project64/User Interface/Settings/Settings Page.h b/Source/Project64/User Interface/Settings/Settings Page.h index 20d936bc3..0a6c6f47a 100644 --- a/Source/Project64/User Interface/Settings/Settings Page.h +++ b/Source/Project64/User Interface/Settings/Settings Page.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CSettingsPage diff --git a/Source/Project64/User Interface/WTL Controls/ModifiedCheckBox.h b/Source/Project64/User Interface/WTL Controls/ModifiedCheckBox.h index fc7b16749..39a2495b4 100644 --- a/Source/Project64/User Interface/WTL Controls/ModifiedCheckBox.h +++ b/Source/Project64/User Interface/WTL Controls/ModifiedCheckBox.h @@ -1,4 +1,14 @@ -#pragma once +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once class CModifiedButton : public CButton diff --git a/Source/Project64/User Interface/WTL Controls/ModifiedComboBox.h b/Source/Project64/User Interface/WTL Controls/ModifiedComboBox.h index 079edf625..769ce5764 100644 --- a/Source/Project64/User Interface/WTL Controls/ModifiedComboBox.h +++ b/Source/Project64/User Interface/WTL Controls/ModifiedComboBox.h @@ -1,4 +1,14 @@ -#pragma once +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once template class CModifiedComboBoxT : diff --git a/Source/Project64/User Interface/WTL Controls/ModifiedEditBox.cpp b/Source/Project64/User Interface/WTL Controls/ModifiedEditBox.cpp index bfd40cb94..6c3d5854b 100644 --- a/Source/Project64/User Interface/WTL Controls/ModifiedEditBox.cpp +++ b/Source/Project64/User Interface/WTL Controls/ModifiedEditBox.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" CModifiedEditBox::CModifiedEditBox(bool bString /* = true */, HWND hWnd /* = NULL */) : diff --git a/Source/Project64/User Interface/WTL Controls/ModifiedEditBox.h b/Source/Project64/User Interface/WTL Controls/ModifiedEditBox.h index 441d62869..1a09514d6 100644 --- a/Source/Project64/User Interface/WTL Controls/ModifiedEditBox.h +++ b/Source/Project64/User Interface/WTL Controls/ModifiedEditBox.h @@ -1,4 +1,14 @@ -#pragma once +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once class CModifiedEditBox : public CEdit diff --git a/Source/Project64/User Interface/WTL Controls/PartialGroupBox.cpp b/Source/Project64/User Interface/WTL Controls/PartialGroupBox.cpp index 34ac176fd..3885a1dbb 100644 --- a/Source/Project64/User Interface/WTL Controls/PartialGroupBox.cpp +++ b/Source/Project64/User Interface/WTL Controls/PartialGroupBox.cpp @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #include "stdafx.h" BOOL CPartialGroupBox::Attach(HWND hWndNew) diff --git a/Source/Project64/User Interface/WTL Controls/PartialGroupBox.h b/Source/Project64/User Interface/WTL Controls/PartialGroupBox.h index 4f2ec00ad..2ab7562a3 100644 --- a/Source/Project64/User Interface/WTL Controls/PartialGroupBox.h +++ b/Source/Project64/User Interface/WTL Controls/PartialGroupBox.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once class CPartialGroupBox : diff --git a/Source/Project64/User Interface/WTL Controls/numberctrl.h b/Source/Project64/User Interface/WTL Controls/numberctrl.h index c75ca5af4..dcb63a75c 100644 --- a/Source/Project64/User Interface/WTL Controls/numberctrl.h +++ b/Source/Project64/User Interface/WTL Controls/numberctrl.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + #include #include diff --git a/Source/Project64/Validate Binary.h b/Source/Project64/Validate Binary.h index f9a860fd2..63399029e 100644 --- a/Source/Project64/Validate Binary.h +++ b/Source/Project64/Validate Binary.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once #define VALIDATE_BIN_APP "PJ64" diff --git a/Source/Project64/WTL App.h b/Source/Project64/WTL App.h index 313232b21..2fcd5a9b5 100644 --- a/Source/Project64/WTL App.h +++ b/Source/Project64/WTL App.h @@ -1,3 +1,13 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ #pragma once //#define _WIN32_WINNT 0x0500 diff --git a/Source/Project64/stdafx.h b/Source/Project64/stdafx.h index c8e72bd39..cb5c103d9 100644 --- a/Source/Project64/stdafx.h +++ b/Source/Project64/stdafx.h @@ -1,3 +1,15 @@ +/**************************************************************************** +* * +* Project 64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + #pragma warning(disable:4247) #pragma warning(disable:4786)