Revert r1861

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1879 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
LPFaint99 2009-01-16 02:58:34 +00:00
parent 9df221dd73
commit 7afc53c3a1
19 changed files with 58 additions and 18 deletions

View File

@ -24,7 +24,6 @@
#define CHECK_HEAP_INTEGRITY() #define CHECK_HEAP_INTEGRITY()
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h>
#ifdef _DEBUG #ifdef _DEBUG
#include <crtdbg.h> #include <crtdbg.h>
#undef CHECK_HEAP_INTEGRITY #undef CHECK_HEAP_INTEGRITY

View File

@ -19,6 +19,7 @@
#include "DriveUtil.h" #include "DriveUtil.h"
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h>
#include <winioctl.h> #include <winioctl.h>
#endif #endif

View File

@ -18,7 +18,7 @@
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// File description // File description
/* ¯¯¯¯¯¯¯¯¯¯¯¯¯ /*
All plugins from Core > Plugins are loaded and unloaded with this class when Dolpin is started All plugins from Core > Plugins are loaded and unloaded with this class when Dolpin is started
and stopped. and stopped.
@ -27,9 +27,11 @@ and stopped.
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// Includes // Includes
// ¯¯¯¯¯¯¯¯¯¯¯¯¯ //
#include <string.h> #include <string.h>
#ifndef _WIN32 #ifdef _WIN32
#include <windows.h>
#else
#include <dlfcn.h> #include <dlfcn.h>
#include <stdio.h> #include <stdio.h>
#endif #endif
@ -38,7 +40,7 @@ and stopped.
#include "FileUtil.h" #include "FileUtil.h"
#include "StringUtil.h" #include "StringUtil.h"
#include "DynamicLibrary.h" #include "DynamicLibrary.h"
#include "../../../../Branches/MusicMod/Common/Src/Console.h" #include "../../../../Branches/MusicMod/Common/Src/Console.h"
/////////////////////////////////// ///////////////////////////////////

View File

@ -19,6 +19,8 @@
#ifndef _WIN32 #ifndef _WIN32
#include <sys/types.h> #include <sys/types.h>
#include <dirent.h> #include <dirent.h>
#else
#include <windows.h>
#endif #endif
#include <string> #include <string>

View File

@ -19,6 +19,7 @@
#include "FileUtil.h" #include "FileUtil.h"
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h>
#include <shlobj.h> // for SHGetFolderPath #include <shlobj.h> // for SHGetFolderPath
#include <shellapi.h> #include <shellapi.h>
#include <commdlg.h> // for GetSaveFileName #include <commdlg.h> // for GetSaveFileName

View File

@ -15,7 +15,9 @@
// Official SVN repository and contact information can be found at // Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/ // http://code.google.com/p/dolphin-emu/
#ifndef _WIN32 #ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h> #include <unistd.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -18,7 +18,9 @@
#include "Common.h" #include "Common.h"
#include "MemArena.h" #include "MemArena.h"
#ifndef _WIN32 #ifdef _WIN32
#include <windows.h>
#else
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>

View File

@ -18,6 +18,10 @@
#ifndef _MEMARENA_H #ifndef _MEMARENA_H
#define _MEMARENA_H #define _MEMARENA_H
#ifdef _WIN32
#include <windows.h>
#endif
#include "Common.h" #include "Common.h"
// This class lets you create a block of anonymous RAM, and then arbitrarily map views into it. // This class lets you create a block of anonymous RAM, and then arbitrarily map views into it.

View File

@ -18,7 +18,9 @@
#include "Common.h" #include "Common.h"
#include "MemoryUtil.h" #include "MemoryUtil.h"
#ifdef __GNUC__ #ifdef _WIN32
#include <windows.h>
#elif __GNUC__
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>

View File

@ -19,6 +19,7 @@
#define _THREAD_H #define _THREAD_H
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h>
#define THREAD_RETURN DWORD WINAPI #define THREAD_RETURN DWORD WINAPI
#else #else
#define THREAD_RETURN void* #define THREAD_RETURN void*

View File

@ -16,6 +16,7 @@
// http://code.google.com/p/dolphin-emu/ // http://code.google.com/p/dolphin-emu/
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h>
#include <mmsystem.h> #include <mmsystem.h>
#endif #endif

View File

@ -17,6 +17,10 @@
#ifndef _ARDECRYPT_H_ #ifndef _ARDECRYPT_H_
#define _ARDECRYPT_H_ #define _ARDECRYPT_H_
#ifdef _WIN32
#include <windows.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -18,7 +18,13 @@
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// Include // Include
// ッッッッッッッッッッ //
#ifdef _WIN32
#include <windows.h>
#else
#endif
#include "Thread.h" #include "Thread.h"
#include "Timer.h" #include "Timer.h"
#include "Common.h" #include "Common.h"
@ -70,7 +76,7 @@ namespace Core
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// Declarations and definitions // Declarations and definitions
// ッッッッッッッッッッ //
// Function forwarding // Function forwarding
//void Callback_VideoRequestWindowSize(int _iWidth, int _iHeight, BOOL _bFullscreen); //void Callback_VideoRequestWindowSize(int _iWidth, int _iHeight, BOOL _bFullscreen);
@ -108,7 +114,7 @@ Common::Event emuThreadGoing;
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// Display messages and return values // Display messages and return values
// ッッッッッッッッッッ //
bool PanicAlertToVideo(const char* text, bool yes_no) bool PanicAlertToVideo(const char* text, bool yes_no)
{ {
DisplayMessage(text, 3000); DisplayMessage(text, 3000);
@ -151,7 +157,7 @@ bool GetRealWiimote()
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// This is called from the GUI thread. See the booting call schedule in BootManager.cpp // This is called from the GUI thread. See the booting call schedule in BootManager.cpp
// ッッッッッッッッッッ //
bool Init(const SCoreStartupParameter _CoreParameter) bool Init(const SCoreStartupParameter _CoreParameter)
{ {
if (g_pThread != NULL) { if (g_pThread != NULL) {
@ -225,7 +231,7 @@ void Stop() // - Hammertime!
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// Create the CPU thread // Create the CPU thread
// ッッッッッッッッッッ //
THREAD_RETURN CpuThread(void *pArg) THREAD_RETURN CpuThread(void *pArg)
{ {
Common::SetCurrentThreadName("CPU thread"); Common::SetCurrentThreadName("CPU thread");
@ -274,7 +280,7 @@ THREAD_RETURN CpuThread(void *pArg)
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// Initalize plugins and create emulation thread // Initalize plugins and create emulation thread
// ッッッッッッッッッッ //
/* Call browser: Init():g_pThread(). See the BootManager.cpp file description for a complete /* Call browser: Init():g_pThread(). See the BootManager.cpp file description for a complete
call schedule. */ call schedule. */
THREAD_RETURN EmuThread(void *pArg) THREAD_RETURN EmuThread(void *pArg)
@ -436,7 +442,7 @@ THREAD_RETURN EmuThread(void *pArg)
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// Set or get the running state // Set or get the running state
// ッッッッッッッッッッ //
bool SetState(EState _State) bool SetState(EState _State)
{ {
switch(_State) switch(_State)
@ -476,7 +482,7 @@ EState GetState()
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// Save or recreate the emulation state // Save or recreate the emulation state
// ッッッッッッッッッッ //
void SaveState() { void SaveState() {
State_Save(0); State_Save(0);
} }

View File

@ -14,6 +14,10 @@
// Official SVN repository and contact information can be found at // Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/ // http://code.google.com/p/dolphin-emu/
#ifdef _WIN32
#include <windows.h>
#endif
#include "Common.h" #include "Common.h"
#include "../Core.h" #include "../Core.h"

View File

@ -19,6 +19,7 @@
#ifdef _WIN32 #ifdef _WIN32
#include <io.h> #include <io.h>
#include <windows.h>
#else #else
#include <unistd.h> #include <unistd.h>
#endif #endif

View File

@ -21,6 +21,9 @@
#include <string> #include <string>
#include <stdio.h> #include <stdio.h>
#include "Common.h" #include "Common.h"
#ifdef _WIN32
#include <windows.h>
#endif
#if defined(HAVE_WX) && HAVE_WX #if defined(HAVE_WX) && HAVE_WX
#include "../Debugger/Debugger.h" #include "../Debugger/Debugger.h"

View File

@ -25,6 +25,7 @@
#include <iostream> #include <iostream>
#include <vector> #include <vector>
#include <string> // So that we can test if std::string == abc #include <string> // So that we can test if std::string == abc
#include <windows.h>
#include "Common.h" #include "Common.h"

View File

@ -16,6 +16,7 @@
// http://code.google.com/p/dolphin-emu/ // http://code.google.com/p/dolphin-emu/
#include <tchar.h> #include <tchar.h>
#include <windows.h>
#include <d3dx9.h> #include <d3dx9.h>
#include "Common.h" #include "Common.h"

View File

@ -19,9 +19,12 @@
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// Includes // Includes
// ッッッッッッッッッッッッッ //
#include <string> #include <string>
#include <stdio.h> #include <stdio.h>
#ifdef _WIN32
#include <windows.h>
#endif
#include "StringUtil.h" #include "StringUtil.h"
@ -34,7 +37,7 @@
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// Settings // Settings
// ッッッッッッッッッッッッッ //
// On and off // On and off
bool g_consoleEnable = true; bool g_consoleEnable = true;