mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 07:39:26 +01:00
Linux: Fix ups for people running Linux. If it breaks anything, punch me in the face.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@30 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
35950043a6
commit
c7795c41b7
10
SConstruct
10
SConstruct
@ -1,6 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
ccflags = '-g -O2 -msse2 -Wall -D_DEBUG -DLOGGING -D_FILE_OFFSET_BITS=64 D_LARGEFILE_SOURCE'
|
ccflags = '-g -O2 -msse2 -Wall -DLOGGING -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE'
|
||||||
|
|
||||||
if False:
|
if False:
|
||||||
ccflags += ' -fomit-frame-pointer'
|
ccflags += ' -fomit-frame-pointer'
|
||||||
@ -12,6 +12,7 @@ include_paths = ["../../../Core/Common/Src",
|
|||||||
"../../../Core/Core/Src",
|
"../../../Core/Core/Src",
|
||||||
"../../../Core/DebuggerWX/src",
|
"../../../Core/DebuggerWX/src",
|
||||||
"../../../../Externals/Bochs_disasm",
|
"../../../../Externals/Bochs_disasm",
|
||||||
|
"../../../Core/VideoCommon/Src",
|
||||||
# "../../../Plugins/Plugin_VideoOGL/Src/Windows",
|
# "../../../Plugins/Plugin_VideoOGL/Src/Windows",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -20,8 +21,9 @@ dirs = ["Source/Core/Common/Src",
|
|||||||
"Source/Core/Core/Src",
|
"Source/Core/Core/Src",
|
||||||
"Source/Core/DiscIO/Src",
|
"Source/Core/DiscIO/Src",
|
||||||
"Source/Core/DebuggerWX/src",
|
"Source/Core/DebuggerWX/src",
|
||||||
|
"Source/Core/VideoCommon/Src",
|
||||||
"Source/Plugins/Plugin_VideoOGL/Src",
|
"Source/Plugins/Plugin_VideoOGL/Src",
|
||||||
"Source/Plugins/Plugin_DSP/Src",
|
"Source/Plugins/Plugin_DSP_NULL/Src",
|
||||||
"Source/Plugins/Plugin_DSP_LLE/Src",
|
"Source/Plugins/Plugin_DSP_LLE/Src",
|
||||||
"Source/Plugins/Plugin_PadSimple/Src",
|
"Source/Plugins/Plugin_PadSimple/Src",
|
||||||
"Source/Core/DolphinWX/src",
|
"Source/Core/DolphinWX/src",
|
||||||
@ -29,8 +31,8 @@ dirs = ["Source/Core/Common/Src",
|
|||||||
|
|
||||||
lib_paths = include_paths
|
lib_paths = include_paths
|
||||||
|
|
||||||
env = Environment(CC="gcc-4.2",
|
env = Environment(CC="gcc-4.3",
|
||||||
CXX="g++-4.2",
|
CXX="g++-4.3",
|
||||||
CCFLAGS=ccflags,
|
CCFLAGS=ccflags,
|
||||||
CXXFLAGS=ccflags,
|
CXXFLAGS=ccflags,
|
||||||
CPPPATH=include_paths,
|
CPPPATH=include_paths,
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
#define _COMMON_H
|
#define _COMMON_H
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define POSIX 0
|
#define POSIX 0
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
// 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/
|
||||||
|
|
||||||
#include "plugin.h"
|
#include "Plugin.h"
|
||||||
|
|
||||||
namespace Common
|
namespace Common
|
||||||
{
|
{
|
||||||
|
@ -7,6 +7,7 @@ files = ["Common.cpp",
|
|||||||
"HTTP.cpp",
|
"HTTP.cpp",
|
||||||
"IniFile.cpp",
|
"IniFile.cpp",
|
||||||
"Logging.cpp",
|
"Logging.cpp",
|
||||||
|
"FileUtil.cpp",
|
||||||
"MappedFile.cpp",
|
"MappedFile.cpp",
|
||||||
"MathUtil.cpp",
|
"MathUtil.cpp",
|
||||||
"MemArena.cpp",
|
"MemArena.cpp",
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "Timer.H"
|
#include "Timer.h"
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#include <sys/timeb.h>
|
#include <sys/timeb.h>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "Thread.h"
|
#include "Thread.h"
|
||||||
#include "Timer.H"
|
#include "Timer.h"
|
||||||
|
|
||||||
#include "Console.h"
|
#include "Console.h"
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
// 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/
|
||||||
|
|
||||||
#include "Timer.H"
|
#include "Timer.h"
|
||||||
|
|
||||||
#include "EXI_DeviceIPL.h"
|
#include "EXI_DeviceIPL.h"
|
||||||
#include "../Core.h"
|
#include "../Core.h"
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include "../Core.h"
|
#include "../Core.h"
|
||||||
#include "../IPC_HLE/WII_IPC_HLE.h"
|
#include "../IPC_HLE/WII_IPC_HLE.h"
|
||||||
#include "Thread.h"
|
#include "Thread.h"
|
||||||
#include "Timer.H"
|
#include "Timer.h"
|
||||||
|
|
||||||
namespace SystemTimers
|
namespace SystemTimers
|
||||||
{
|
{
|
||||||
|
@ -161,7 +161,7 @@ IWII_IPC_HLE_Device* CreateDevice(u32 _DeviceID, const std::string& _rDeviceName
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::queue<u32> m_Ack;
|
std::queue<u32> m_Ack;
|
||||||
std::queue<std::pair<u32,std::string>> m_ReplyQueue;
|
std::queue<std::pair<u32,std::string> > m_ReplyQueue;
|
||||||
|
|
||||||
void ExecuteCommand(u32 _Address);
|
void ExecuteCommand(u32 _Address);
|
||||||
bool AckCommand(u32 _Address)
|
bool AckCommand(u32 _Address)
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
|
|
||||||
|
|
||||||
typedef u8 uint8_t;
|
typedef u8 uint8_t;
|
||||||
typedef s8 int8_t;
|
#ifdef WIN32
|
||||||
|
typedef s8 int8_t;
|
||||||
|
#endif
|
||||||
typedef u16 uint16_t;
|
typedef u16 uint16_t;
|
||||||
typedef s16 int16_t;
|
typedef s16 int16_t;
|
||||||
typedef u32 uint32_t;
|
typedef u32 uint32_t;
|
||||||
|
@ -8,7 +8,6 @@ files = ["Console.cpp",
|
|||||||
"PatchEngine.cpp",
|
"PatchEngine.cpp",
|
||||||
"MemTools.cpp",
|
"MemTools.cpp",
|
||||||
"Tracer.cpp",
|
"Tracer.cpp",
|
||||||
"GamesIniEntry.cpp",
|
|
||||||
"Host.cpp",
|
"Host.cpp",
|
||||||
"VolumeHandler.cpp",
|
"VolumeHandler.cpp",
|
||||||
"Boot/Boot.cpp",
|
"Boot/Boot.cpp",
|
||||||
@ -48,6 +47,9 @@ files = ["Console.cpp",
|
|||||||
"IPC_HLE/WII_IPC_HLE.cpp",
|
"IPC_HLE/WII_IPC_HLE.cpp",
|
||||||
"IPC_HLE/WII_IPC_HLE_Device_DI.cpp",
|
"IPC_HLE/WII_IPC_HLE_Device_DI.cpp",
|
||||||
"IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp",
|
"IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp",
|
||||||
|
"IPC_HLE/WII_IPC_HLE_Device_sdio_slot0.cpp",
|
||||||
|
"IPC_HLE/WII_IPC_HLE_Device_usb.cpp",
|
||||||
|
"IPC_HLE/WII_IPC_HLE_WiiMote.cpp",
|
||||||
"Plugins/Plugin_DSP.cpp",
|
"Plugins/Plugin_DSP.cpp",
|
||||||
"Plugins/Plugin_PAD.cpp",
|
"Plugins/Plugin_PAD.cpp",
|
||||||
"Plugins/Plugin_Video.cpp",
|
"Plugins/Plugin_Video.cpp",
|
||||||
@ -69,13 +71,12 @@ files = ["Console.cpp",
|
|||||||
"PowerPC/Jit64/Jit_Branch.cpp",
|
"PowerPC/Jit64/Jit_Branch.cpp",
|
||||||
"PowerPC/Jit64/Jit_Integer.cpp",
|
"PowerPC/Jit64/Jit_Integer.cpp",
|
||||||
"PowerPC/Jit64/Jit_FloatingPoint.cpp",
|
"PowerPC/Jit64/Jit_FloatingPoint.cpp",
|
||||||
|
"PowerPC/Jit64/Jit_LoadStorePaired.cpp",
|
||||||
"PowerPC/Jit64/Jit_Paired.cpp",
|
"PowerPC/Jit64/Jit_Paired.cpp",
|
||||||
"PowerPC/Jit64/Jit_LoadStore.cpp",
|
"PowerPC/Jit64/Jit_LoadStore.cpp",
|
||||||
"PowerPC/Jit64/Jit_SystemRegisters.cpp",
|
"PowerPC/Jit64/Jit_SystemRegisters.cpp",
|
||||||
"HLE/HLE.cpp",
|
"HLE/HLE.cpp",
|
||||||
"HLE/HLE_Math.cpp",
|
|
||||||
"HLE/HLE_Misc.cpp",
|
"HLE/HLE_Misc.cpp",
|
||||||
"HLE/HLE_OS.cpp",
|
"HLE/HLE_OS.cpp",
|
||||||
"HLE/HLE_Pad.cpp",
|
|
||||||
]
|
]
|
||||||
env.StaticLibrary("core", files, LIBS="bdisasm")
|
env.StaticLibrary("core", files, LIBS="bdisasm")
|
||||||
|
@ -54,17 +54,22 @@ CBreakPointView::Update()
|
|||||||
const TBreakPoint& rBP = rBreakPoints[i];
|
const TBreakPoint& rBP = rBreakPoints[i];
|
||||||
if (!rBP.bTemporary)
|
if (!rBP.bTemporary)
|
||||||
{
|
{
|
||||||
int Item = InsertItem(0, rBP.bOn ? "on" : " ");
|
wxString temp;
|
||||||
SetItem(Item, 1, "BP");
|
temp = wxString::FromAscii(rBP.bOn ? "on" : " ");
|
||||||
|
int Item = InsertItem(0, temp);
|
||||||
|
temp = wxString::FromAscii("BP");
|
||||||
|
SetItem(Item, 1, temp);
|
||||||
|
|
||||||
Debugger::XSymbolIndex index = Debugger::FindSymbol(rBP.iAddress);
|
Debugger::XSymbolIndex index = Debugger::FindSymbol(rBP.iAddress);
|
||||||
if (index > 0)
|
if (index > 0)
|
||||||
{
|
{
|
||||||
SetItem(Item, 2, Debugger::GetDescription(rBP.iAddress));
|
temp = wxString::FromAscii(Debugger::GetDescription(rBP.iAddress));
|
||||||
|
SetItem(Item, 2, temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf(szBuffer, "0x%08x", rBP.iAddress);
|
sprintf(szBuffer, "0x%08x", rBP.iAddress);
|
||||||
SetItem(Item, 3, szBuffer);
|
temp = wxString::FromAscii(szBuffer);
|
||||||
|
SetItem(Item, 3, temp);
|
||||||
|
|
||||||
SetItemData(Item, rBP.iAddress);
|
SetItemData(Item, rBP.iAddress);
|
||||||
}
|
}
|
||||||
@ -82,4 +87,4 @@ CBreakPointView::Update()
|
|||||||
u32 Address = GetItemData(Item);
|
u32 Address = GetItemData(Item);
|
||||||
CBreakPoints::DeleteElementByAddress(Address);
|
CBreakPoints::DeleteElementByAddress(Address);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "Debugger.h"
|
#include "Debugger.h"
|
||||||
#include "BreakPointWindow.h"
|
#include "BreakpointWindow.h"
|
||||||
#include "BreakpointView.h"
|
#include "BreakpointView.h"
|
||||||
#include "CodeWindow.h"
|
#include "CodeWindow.h"
|
||||||
#include "HW/Memmap.h"
|
#include "HW/Memmap.h"
|
||||||
|
@ -163,14 +163,14 @@ void CCodeView::OnPopupMenu(wxCommandEvent& event)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case IDM_COPYCODE:
|
case IDM_COPYCODE:
|
||||||
wxTheClipboard->SetData(new wxTextDataObject(debugger->disasm(selection)));
|
wxTheClipboard->SetData(new wxTextDataObject(wxString::FromAscii(debugger->disasm(selection)))); //Have to manually convert from char* to wxString, don't have to in Windows?
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDM_COPYHEX:
|
case IDM_COPYHEX:
|
||||||
{
|
{
|
||||||
char temp[24];
|
char temp[24];
|
||||||
sprintf(temp, "%08x", debugger->readMemory(selection));
|
sprintf(temp, "%08x", debugger->readMemory(selection));
|
||||||
wxTheClipboard->SetData(new wxTextDataObject(temp));
|
wxTheClipboard->SetData(new wxTextDataObject(wxString::FromAscii(temp)));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
@ -205,9 +205,9 @@ void CCodeView::OnMouseUpR(wxMouseEvent& event)
|
|||||||
wxMenu menu;
|
wxMenu menu;
|
||||||
//menu.Append(IDM_GOTOINMEMVIEW, "&Goto in mem view");
|
//menu.Append(IDM_GOTOINMEMVIEW, "&Goto in mem view");
|
||||||
#if wxUSE_CLIPBOARD
|
#if wxUSE_CLIPBOARD
|
||||||
menu.Append(IDM_COPYADDRESS, "Copy &address");
|
menu.Append(IDM_COPYADDRESS, wxString::FromAscii("Copy &address"));
|
||||||
menu.Append(IDM_COPYCODE, "Copy &code");
|
menu.Append(IDM_COPYCODE, wxString::FromAscii("Copy &code"));
|
||||||
menu.Append(IDM_COPYHEX, "Copy &hex");
|
menu.Append(IDM_COPYHEX, wxString::FromAscii("Copy &hex"));
|
||||||
#endif
|
#endif
|
||||||
menu.Append(IDM_RUNTOHERE, _T("&Run To Here"));
|
menu.Append(IDM_RUNTOHERE, _T("&Run To Here"));
|
||||||
//menu.Append(IDM_DYNARECRESULTS, "Copy &address");
|
//menu.Append(IDM_DYNARECRESULTS, "Copy &address");
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
#include "LogManager.h"
|
#include "LogManager.h"
|
||||||
|
|
||||||
// ugly that this lib included code from the main
|
// ugly that this lib included code from the main
|
||||||
#include "../../DolphinWX/src/globals.h"
|
#include "../../DolphinWX/src/Globals.h"
|
||||||
|
|
||||||
class SymbolList
|
class SymbolList
|
||||||
: public wxListCtrl
|
: public wxListCtrl
|
||||||
@ -348,7 +348,7 @@ void CCodeWindow::Update()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
callstack->Append("invalid callstack");
|
callstack->Append(wxString::FromAscii("invalid callstack"));
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateButtonStates();
|
UpdateButtonStates();
|
||||||
|
@ -74,7 +74,7 @@ CLogWindow::CLogWindow(wxWindow* parent)
|
|||||||
|
|
||||||
void CLogWindow::OnSubmit(wxCommandEvent& event)
|
void CLogWindow::OnSubmit(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
Console_Submit(m_cmdline->GetValue().c_str());
|
Console_Submit(m_cmdline->GetValue().To8BitData());
|
||||||
m_cmdline->SetValue(_T(""));
|
m_cmdline->SetValue(_T(""));
|
||||||
NotifyUpdate();
|
NotifyUpdate();
|
||||||
}
|
}
|
||||||
@ -128,7 +128,7 @@ void CLogWindow::UpdateChecks()
|
|||||||
|
|
||||||
for (int i = 0; i < LogTypes::NUMBER_OF_LOGS; i++)
|
for (int i = 0; i < LogTypes::NUMBER_OF_LOGS; i++)
|
||||||
{
|
{
|
||||||
m_checks->Append(LogManager::m_Log[i]->m_szName);
|
m_checks->Append(wxString::FromAscii(LogManager::m_Log[i]->m_szName));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_checks->Show(true);
|
m_checks->Show(true);
|
||||||
@ -218,7 +218,7 @@ void CLogWindow::UpdateLog()
|
|||||||
}
|
}
|
||||||
|
|
||||||
*p = 0; //end the string
|
*p = 0; //end the string
|
||||||
m_log->SetValue(m_logBuffer);
|
m_log->SetValue(wxString::FromAscii(m_logBuffer));
|
||||||
m_log->SetInsertionPoint(p - m_logBuffer - 1);
|
m_log->SetInsertionPoint(p - m_logBuffer - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,10 +39,10 @@ CRegisterView::CRegisterView(wxWindow* parent, const wxWindowID id, const wxPoin
|
|||||||
for (int i = 0; i < 16; i++)
|
for (int i = 0; i < 16; i++)
|
||||||
{
|
{
|
||||||
// 0-15
|
// 0-15
|
||||||
int Item = InsertItem(0, GetGRPName(i));
|
int Item = InsertItem(0, wxString::FromAscii(GetGRPName(i)));
|
||||||
|
|
||||||
// 16-31
|
// 16-31
|
||||||
SetItem(Item, 2, GetGRPName(16 + i));
|
SetItem(Item, 2, wxString::FromAscii(GetGRPName(16 + i)));
|
||||||
|
|
||||||
// just for easy sort
|
// just for easy sort
|
||||||
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
Import('env')
|
Import('env')
|
||||||
|
|
||||||
files = ["LogWindow.cpp",
|
files = ["LogWindow.cpp",
|
||||||
|
"BreakpointView.cpp",
|
||||||
|
"CodeView.cpp",
|
||||||
|
"BreakpointWindow.cpp",
|
||||||
"CodeWindow.cpp",
|
"CodeWindow.cpp",
|
||||||
"CodeView.cpp",
|
"CodeView.cpp",
|
||||||
"Debugger.cpp",
|
"Debugger.cpp",
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
#include "../../../../Externals/zlib/zlib.h"
|
#include "../../../../Externals/zlib/zlib.h"
|
||||||
|
|
||||||
#include "Blob.h"
|
#include "Blob.h"
|
||||||
@ -103,7 +104,11 @@ class PlainFileReader
|
|||||||
PlainFileReader(const char* filename)
|
PlainFileReader(const char* filename)
|
||||||
{
|
{
|
||||||
file_ = fopen(filename, "rb");
|
file_ = fopen(filename, "rb");
|
||||||
fseek64(file_, 0, SEEK_END);
|
#if 0
|
||||||
|
fseek64(file_, 0, SEEK_END);
|
||||||
|
#else
|
||||||
|
fseek(file_, 0, SEEK_END); // I don't have fseek64 with gcc 4.3
|
||||||
|
#endif
|
||||||
size = ftell(file_);
|
size = ftell(file_);
|
||||||
fseek(file_, 0, SEEK_SET);
|
fseek(file_, 0, SEEK_SET);
|
||||||
}
|
}
|
||||||
|
@ -5,19 +5,12 @@ files = ["BannerLoader.cpp",
|
|||||||
"BannerLoaderWii.cpp",
|
"BannerLoaderWii.cpp",
|
||||||
"Blob.cpp",
|
"Blob.cpp",
|
||||||
"FileHandlerARC.cpp",
|
"FileHandlerARC.cpp",
|
||||||
"FileHandlerLZ77.cpp",
|
|
||||||
"Filesystem.cpp",
|
"Filesystem.cpp",
|
||||||
"FileSystemGCWii.cpp",
|
"FileSystemGCWii.cpp",
|
||||||
"VolumeCreator.cpp",
|
"VolumeCreator.cpp",
|
||||||
"VolumeGC.cpp",
|
"VolumeGC.cpp",
|
||||||
"VolumeWiiCrypted.cpp",
|
"VolumeWiiCrypted.cpp",
|
||||||
"AES/aes_cbc.c",
|
"AES/aes_cbc.c",
|
||||||
"AES/aes_cfb.c",
|
|
||||||
"AES/aes_core.c",
|
"AES/aes_core.c",
|
||||||
"AES/aes_ctr.c",
|
|
||||||
"AES/aes_ecb.c",
|
|
||||||
"AES/aes_ige.c",
|
|
||||||
"AES/aes_misc.c",
|
|
||||||
"AES/aes_ofb.c",
|
|
||||||
]
|
]
|
||||||
env.StaticLibrary("discio", files, LIBS = ["common"])
|
env.StaticLibrary("discio", files, LIBS = ["common"])
|
||||||
|
@ -37,7 +37,13 @@ enum EDiscType
|
|||||||
DISC_TYPE_WII_CONTAINER,
|
DISC_TYPE_WII_CONTAINER,
|
||||||
DISC_TYPE_GC
|
DISC_TYPE_GC
|
||||||
};
|
};
|
||||||
|
#ifndef WIN32
|
||||||
|
struct SPartition
|
||||||
|
{
|
||||||
|
u64 Offset;
|
||||||
|
u32 Type;
|
||||||
|
}; //gcc 4.3 cries if it's local
|
||||||
|
#endif
|
||||||
class CBlobBigEndianReader
|
class CBlobBigEndianReader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -150,12 +156,13 @@ IVolume* CreateVolumeFromCryptedWiiImage(IBlobReader& _rReader, int _VolumeType)
|
|||||||
|
|
||||||
u32 numPartitions = Reader.Read32(0x40000);
|
u32 numPartitions = Reader.Read32(0x40000);
|
||||||
u64 PartitionsOffset = (u64)Reader.Read32(0x40004) << 2;
|
u64 PartitionsOffset = (u64)Reader.Read32(0x40004) << 2;
|
||||||
|
#ifdef WIN32
|
||||||
struct SPartition
|
struct SPartition
|
||||||
{
|
{
|
||||||
u64 Offset;
|
u64 Offset;
|
||||||
u32 Type;
|
u32 Type;
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
std::vector<SPartition>PartitionsVec;
|
std::vector<SPartition>PartitionsVec;
|
||||||
|
|
||||||
// read all partitions
|
// read all partitions
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include "VolumeCreator.h"
|
#include "VolumeCreator.h"
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
#include "frame.h"
|
#include "Frame.h"
|
||||||
#include "CodeWindow.h"
|
#include "CodeWindow.h"
|
||||||
|
|
||||||
static std::string s_DataBasePath_EUR = "Data_EUR";
|
static std::string s_DataBasePath_EUR = "Data_EUR";
|
||||||
|
@ -194,14 +194,18 @@ CFrame::CreateMenu()
|
|||||||
{
|
{
|
||||||
m_pMenuItemPlay = new wxMenuItem(pEmulationMenu, IDM_PLAY, _T("&Play"));
|
m_pMenuItemPlay = new wxMenuItem(pEmulationMenu, IDM_PLAY, _T("&Play"));
|
||||||
m_pMenuItemPlay->SetBitmap(m_BitmapsMenu[Toolbar_Play]);
|
m_pMenuItemPlay->SetBitmap(m_BitmapsMenu[Toolbar_Play]);
|
||||||
m_pMenuItemPlay->SetDisabledBitmap(m_BitmapsMenu[Toolbar_Play_Dis]);
|
#ifdef WIN32
|
||||||
|
m_pMenuItemPlay->SetDisabledBitmap(m_BitmapsMenu[Toolbar_Play_Dis]); //Linux Doesn't have
|
||||||
|
#endif
|
||||||
pEmulationMenu->Append(m_pMenuItemPlay);
|
pEmulationMenu->Append(m_pMenuItemPlay);
|
||||||
}
|
}
|
||||||
// stop
|
// stop
|
||||||
{
|
{
|
||||||
m_pMenuItemStop = new wxMenuItem(pEmulationMenu, IDM_STOP, _T("&Stop"));
|
m_pMenuItemStop = new wxMenuItem(pEmulationMenu, IDM_STOP, _T("&Stop"));
|
||||||
m_pMenuItemStop->SetBitmap(m_BitmapsMenu[Toolbar_Stop]);
|
m_pMenuItemStop->SetBitmap(m_BitmapsMenu[Toolbar_Stop]);
|
||||||
m_pMenuItemStop->SetDisabledBitmap(m_BitmapsMenu[Toolbar_Stop_Dis]);
|
#ifdef WIN32
|
||||||
|
m_pMenuItemStop->SetDisabledBitmap(m_BitmapsMenu[Toolbar_Stop_Dis]); //Linux doesn't have
|
||||||
|
#endif
|
||||||
pEmulationMenu->Append(m_pMenuItemStop);
|
pEmulationMenu->Append(m_pMenuItemStop);
|
||||||
}
|
}
|
||||||
pEmulationMenu->AppendSeparator();
|
pEmulationMenu->AppendSeparator();
|
||||||
@ -226,7 +230,9 @@ CFrame::CreateMenu()
|
|||||||
{
|
{
|
||||||
m_pPluginOptions = pPluginMenu->Append(IDM_PLUGIN_OPTIONS, _T("&Choose Plugins..."));
|
m_pPluginOptions = pPluginMenu->Append(IDM_PLUGIN_OPTIONS, _T("&Choose Plugins..."));
|
||||||
m_pPluginOptions->SetBitmap(m_BitmapsMenu[Toolbar_PluginOptions]);
|
m_pPluginOptions->SetBitmap(m_BitmapsMenu[Toolbar_PluginOptions]);
|
||||||
m_pPluginOptions->SetDisabledBitmap(m_BitmapsMenu[Toolbar_PluginOptions_Dis]);
|
#ifdef WIN32
|
||||||
|
m_pPluginOptions->SetDisabledBitmap(m_BitmapsMenu[Toolbar_PluginOptions_Dis]); //Linux doesn't have
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
pPluginMenu->AppendSeparator();
|
pPluginMenu->AppendSeparator();
|
||||||
{
|
{
|
||||||
@ -362,8 +368,9 @@ CFrame::OnOpen(wxCommandEvent& WXUNUSED (event))
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
std::string temp;
|
||||||
BootManager::BootCore(path.c_str());
|
temp.insert(0, path.ToAscii()); //Need to convert to C++ style string first
|
||||||
|
BootManager::BootCore(temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -403,7 +410,7 @@ CFrame::OnAbout(wxCommandEvent& WXUNUSED (event))
|
|||||||
void
|
void
|
||||||
CFrame::OnHelp(wxCommandEvent& WXUNUSED (event))
|
CFrame::OnHelp(wxCommandEvent& WXUNUSED (event))
|
||||||
{
|
{
|
||||||
wxMessageBox("missing OnHelp()");
|
wxMessageBox(wxString::FromAscii("missing OnHelp()"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -516,7 +523,7 @@ CFrame::OnHostMessage(wxCommandEvent& event)
|
|||||||
wxPD_SMOOTH // - makes indeterminate mode bar on WinXP very small
|
wxPD_SMOOTH // - makes indeterminate mode bar on WinXP very small
|
||||||
);*/
|
);*/
|
||||||
|
|
||||||
m_pBootProcessDialog = new wxBusyInfo("Booting...", this);
|
m_pBootProcessDialog = new wxBusyInfo(wxString::FromAscii("Booting..."), this);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -83,7 +83,9 @@ CGameListCtrl::BrowseForDirectory()
|
|||||||
|
|
||||||
if (dialog.ShowModal() == wxID_OK)
|
if (dialog.ShowModal() == wxID_OK)
|
||||||
{
|
{
|
||||||
SConfig::GetInstance().m_ISOFolder.push_back(dialog.GetPath().c_str());
|
std::string temp;
|
||||||
|
temp.insert(0, dialog.GetPath().ToAscii()); //Manual conversion to C++ string
|
||||||
|
SConfig::GetInstance().m_ISOFolder.push_back(temp);
|
||||||
SConfig::GetInstance().SaveSettings();
|
SConfig::GetInstance().SaveSettings();
|
||||||
Update();
|
Update();
|
||||||
}
|
}
|
||||||
@ -154,7 +156,9 @@ wxString NiceSizeFormat(s64 _size)
|
|||||||
float f = (float)_size + ((float)frac / 1024.0f);
|
float f = (float)_size + ((float)frac / 1024.0f);
|
||||||
|
|
||||||
wxString NiceString;
|
wxString NiceString;
|
||||||
NiceString.Printf("%3.1f %s", f, sizes[s]);
|
wxString tempstring;
|
||||||
|
tempstring = wxString::FromAscii("%3.1f %s"); // Gotta convert to wxString first or else it complains
|
||||||
|
NiceString.Printf(tempstring, f, sizes[s]);
|
||||||
return(NiceString);
|
return(NiceString);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,7 +196,7 @@ CGameListCtrl::InsertItemInReportView(size_t _Index)
|
|||||||
wxListItem item;
|
wxListItem item;
|
||||||
item.SetId(ItemIndex);
|
item.SetId(ItemIndex);
|
||||||
item.SetColumn(COLUMN_TITLE);
|
item.SetColumn(COLUMN_TITLE);
|
||||||
item.SetText(rISOFile.GetName());
|
item.SetText(wxString::FromAscii(rISOFile.GetName().c_str()));
|
||||||
SetItem(item);
|
SetItem(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,7 +205,7 @@ CGameListCtrl::InsertItemInReportView(size_t _Index)
|
|||||||
wxListItem item;
|
wxListItem item;
|
||||||
item.SetId(ItemIndex);
|
item.SetId(ItemIndex);
|
||||||
item.SetColumn(COLUMN_COMPANY);
|
item.SetColumn(COLUMN_COMPANY);
|
||||||
item.SetText(rISOFile.GetCompany());
|
item.SetText(wxString::FromAscii(rISOFile.GetCompany().c_str()));
|
||||||
SetItem(item);
|
SetItem(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -276,7 +280,9 @@ CGameListCtrl::ScanForISOs()
|
|||||||
SplitPath(rFilenames[i], NULL, &FileName, NULL);
|
SplitPath(rFilenames[i], NULL, &FileName, NULL);
|
||||||
|
|
||||||
wxString msg;
|
wxString msg;
|
||||||
msg.Printf("Scanning %s", FileName.c_str());
|
wxString tempstring;
|
||||||
|
tempstring = wxString::FromAscii("Scanning %s");
|
||||||
|
msg.Printf(tempstring, FileName.c_str());
|
||||||
|
|
||||||
bool Cont = dialog.Update(i, msg);
|
bool Cont = dialog.Update(i, msg);
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "Common.h"
|
|
||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
#include "ISOFile.h"
|
#include "ISOFile.h"
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ void DolphinApp::OnEndSession()
|
|||||||
|
|
||||||
bool wxPanicAlert(const char* text, bool /*yes_no*/)
|
bool wxPanicAlert(const char* text, bool /*yes_no*/)
|
||||||
{
|
{
|
||||||
wxMessageBox(text, _T("PANIC ALERT"));
|
wxMessageBox(wxString::FromAscii(text), _T("PANIC ALERT"));
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ void Host_CloseDisplay()
|
|||||||
void Host_UpdateStatusBar(const char* _pText)
|
void Host_UpdateStatusBar(const char* _pText)
|
||||||
{
|
{
|
||||||
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_UPDATESTATUSBAR);
|
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_UPDATESTATUSBAR);
|
||||||
event.SetString(_pText);
|
event.SetString(wxString::FromAscii(_pText));
|
||||||
|
|
||||||
wxPostEvent(main_frame, event);
|
wxPostEvent(main_frame, event);
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "Common.h"
|
|
||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
#include "FileSearch.h"
|
#include "FileSearch.h"
|
||||||
#include "FileUtil.h"
|
#include "FileUtil.h"
|
||||||
@ -42,7 +41,9 @@ CPluginManager::ScanForPlugins(wxWindow* _wxWindow)
|
|||||||
m_PluginInfos.clear();
|
m_PluginInfos.clear();
|
||||||
|
|
||||||
CFileSearch::XStringVector Directories;
|
CFileSearch::XStringVector Directories;
|
||||||
Directories.push_back(_T("Plugins"));
|
std::string temp;
|
||||||
|
temp.insert(0, "Plugins");
|
||||||
|
Directories.push_back(temp);
|
||||||
|
|
||||||
CFileSearch::XStringVector Extensions;
|
CFileSearch::XStringVector Extensions;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@ -83,7 +84,9 @@ CPluginManager::ScanForPlugins(wxWindow* _wxWindow)
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxString msg;
|
wxString msg;
|
||||||
msg.Printf("Scanning %s", FileName.c_str());
|
wxString temp;
|
||||||
|
temp = wxString::FromAscii("Scanning %s");
|
||||||
|
msg.Printf(temp, FileName.c_str());
|
||||||
bool Cont = dialog.Update((int)i, msg);
|
bool Cont = dialog.Update((int)i, msg);
|
||||||
|
|
||||||
if (!Cont)
|
if (!Cont)
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#ifndef __PLUGIN_MANAGER_H_
|
#ifndef __PLUGIN_MANAGER_H_
|
||||||
#define __PLUGIN_MANAGER_H_
|
#define __PLUGIN_MANAGER_H_
|
||||||
|
|
||||||
#include "plugin.h"
|
#include "Plugin.h"
|
||||||
|
|
||||||
class CPluginInfo
|
class CPluginInfo
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "Common.h"
|
|
||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
|
|
||||||
#include "PluginOptions.h"
|
#include "PluginOptions.h"
|
||||||
@ -232,7 +231,9 @@ CPluginOptions::FillChoiceBox(wxChoice* _pChoice, int _PluginType, const std::st
|
|||||||
|
|
||||||
if (rPluginInfo.Type == _PluginType)
|
if (rPluginInfo.Type == _PluginType)
|
||||||
{
|
{
|
||||||
int NewIndex = _pChoice->Append(rInfos[i].GetPluginInfo().Name, (void*)&rInfos[i]);
|
wxString temp;
|
||||||
|
temp = wxString::FromAscii(rInfos[i].GetPluginInfo().Name);
|
||||||
|
int NewIndex = _pChoice->Append(temp, (void*)&rInfos[i]);
|
||||||
|
|
||||||
if (rInfos[i].GetFileName() == _SelectFilename)
|
if (rInfos[i].GetFileName() == _SelectFilename)
|
||||||
{
|
{
|
||||||
|
19
Source/Core/DolphinWX/src/SConscript
Normal file
19
Source/Core/DolphinWX/src/SConscript
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Import('env')
|
||||||
|
|
||||||
|
files = ["BootManager.cpp",
|
||||||
|
"Config.cpp",
|
||||||
|
"FileSearch.cpp",
|
||||||
|
"Frame.cpp",
|
||||||
|
"GameListCtrl.cpp",
|
||||||
|
"Globals.cpp",
|
||||||
|
"ISOFile.cpp",
|
||||||
|
"Main.cpp",
|
||||||
|
# "MainNoGUI.cpp",
|
||||||
|
"PluginManager.cpp",
|
||||||
|
"PluginOptions.cpp",
|
||||||
|
"stdafx.cpp",
|
||||||
|
]
|
||||||
|
wxenv = env.Copy(CXXFLAGS = "`wx-config --cppflags --debug` -DUSE_XPM_BITMAPS -DwxNEEDS_CHARPP",
|
||||||
|
LINKFLAGS = "-L/usr/local/lib -pthread `wx-config --libs --debug`")
|
||||||
|
|
||||||
|
wxenv.Program("../../../../Binary/linux/Dolphin", files, LIBS = ["debwx", "discio", "core", "bdisasm", "videocommon", "common"])
|
10
Source/Core/VideoCommon/Src/SConscript
Normal file
10
Source/Core/VideoCommon/Src/SConscript
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
Import('env')
|
||||||
|
|
||||||
|
files = ["BPMemory.cpp",
|
||||||
|
"CPMemory.cpp",
|
||||||
|
"LookUpTables.cpp",
|
||||||
|
"XFMemory.cpp",
|
||||||
|
]
|
||||||
|
|
||||||
|
env_common = env.Copy(CXXFLAGS = " -fPIC ")
|
||||||
|
env_common.StaticLibrary("videocommon", files)
|
@ -19,7 +19,7 @@
|
|||||||
#define _GLOBALS_H
|
#define _GLOBALS_H
|
||||||
|
|
||||||
#include "pluginspecs_dsp.h"
|
#include "pluginspecs_dsp.h"
|
||||||
|
#include <stdio.h>
|
||||||
#define WITH_DSP_ON_THREAD 1
|
#define WITH_DSP_ON_THREAD 1
|
||||||
#define DUMP_DSP_IMEM 0
|
#define DUMP_DSP_IMEM 0
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Import('env')
|
Import('env')
|
||||||
output = "../../../../Binary/linux/Plugins/temp/dsplle.so"
|
output = "../../../../Binary/linux/Plugins/dsplle.so"
|
||||||
files = ["disassemble.cpp",
|
files = ["disassemble.cpp",
|
||||||
"gdsp_aram.cpp",
|
"gdsp_aram.cpp",
|
||||||
"gdsp_ext_op.cpp",
|
"gdsp_ext_op.cpp",
|
||||||
@ -11,7 +11,6 @@ files = ["disassemble.cpp",
|
|||||||
"Globals.cpp",
|
"Globals.cpp",
|
||||||
"opcodes.cpp",
|
"opcodes.cpp",
|
||||||
"Tools.cpp",
|
"Tools.cpp",
|
||||||
"UCode_AX.cpp",
|
|
||||||
]
|
]
|
||||||
#env.Append(LINKFLAGS = "-symbolic")
|
#env.Append(LINKFLAGS = "-symbolic")
|
||||||
env.SharedLibrary(output, files)
|
env.SharedLibrary(output, files)
|
||||||
|
@ -28,10 +28,10 @@
|
|||||||
HINSTANCE g_hInstance = NULL;
|
HINSTANCE g_hInstance = NULL;
|
||||||
HANDLE g_hDSPThread = NULL;
|
HANDLE g_hDSPThread = NULL;
|
||||||
CRITICAL_SECTION g_CriticalSection;
|
CRITICAL_SECTION g_CriticalSection;
|
||||||
|
CDisAsmDlg g_Dialog;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DSPInitialize g_dspInitialize;
|
DSPInitialize g_dspInitialize;
|
||||||
CDisAsmDlg g_Dialog;
|
|
||||||
|
|
||||||
#define GDSP_MBOX_CPU 0
|
#define GDSP_MBOX_CPU 0
|
||||||
#define GDSP_MBOX_DSP 1
|
#define GDSP_MBOX_DSP 1
|
||||||
|
@ -237,4 +237,5 @@ void DSP_Update()
|
|||||||
void DSP_SendAIBuffer(unsigned int _Address, unsigned int _Size)
|
void DSP_SendAIBuffer(unsigned int _Address, unsigned int _Size)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
void DllDebugger(HWND _hParent)
|
||||||
|
{}
|
||||||
|
@ -10,6 +10,7 @@ files = ["BPStructs.cpp",
|
|||||||
"OpcodeDecoding.cpp",
|
"OpcodeDecoding.cpp",
|
||||||
# "OpcodeReaders.cpp", # outdated
|
# "OpcodeReaders.cpp", # outdated
|
||||||
"PixelShader.cpp",
|
"PixelShader.cpp",
|
||||||
|
"PixelShaderManager.cpp",
|
||||||
"rasterfont.cpp",
|
"rasterfont.cpp",
|
||||||
"Render.cpp",
|
"Render.cpp",
|
||||||
"TextureDecoder.cpp",
|
"TextureDecoder.cpp",
|
||||||
@ -17,10 +18,11 @@ files = ["BPStructs.cpp",
|
|||||||
"VertexLoader.cpp",
|
"VertexLoader.cpp",
|
||||||
"VertexLoader_Normal.cpp",
|
"VertexLoader_Normal.cpp",
|
||||||
"VertexShader.cpp",
|
"VertexShader.cpp",
|
||||||
|
"VertexShaderManager.cpp",
|
||||||
# "Linux/Conf.cpp",
|
# "Linux/Conf.cpp",
|
||||||
"Linux/Linux.cpp",
|
"Linux/Linux.cpp",
|
||||||
]
|
]
|
||||||
|
|
||||||
gfxenv=env.Copy(CXXFLAGS = " `pkg-config --cflags gtk+-2.0`", LINKFLAGS = " `pkg-config --libs gtk+-2.0`")
|
gfxenv=env.Copy(CXXFLAGS = " `pkg-config --cflags gtk+-2.0 xxf86vm`", LINKFLAGS = " `pkg-config --libs gtk+-2.0 xxf86vm`")
|
||||||
|
|
||||||
gfxenv.SharedLibrary("../../../../Binary/linux/Plugins/zeroogl.so", files, LIBS=["common", "cairo", "GL", "GLEW", "CgGL", "Cg"])
|
gfxenv.SharedLibrary("../../../../Binary/linux/Plugins/zeroogl.so", files, LIBS=["videocommon", "common", "cairo", "GL", "GLEW", "CgGL", "Cg", "X11"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user