mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 08:39:13 +01:00
Fix Linux compiling and Make Filesystemviewer show MakerID correctly
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@831 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
671fb9def1
commit
92f661b390
@ -77,7 +77,10 @@ CFilesystemViewer::CFilesystemViewer(const std::string fileName, wxWindow* paren
|
|||||||
m_Country->SetValue(wxString::FromAscii("UNKNOWN"));
|
m_Country->SetValue(wxString::FromAscii("UNKNOWN"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
m_MakerID->SetValue(wxString::Format(_T("0x%s"), OpenISO->GetMakerID().c_str()));
|
|
||||||
|
wxString temp;
|
||||||
|
temp = _T("0x") + wxString::FromAscii(OpenISO->GetMakerID().c_str());
|
||||||
|
m_MakerID->SetValue(temp);
|
||||||
m_Date->SetValue(wxString(OpenISO->GetApploaderDate().c_str(), wxConvUTF8));
|
m_Date->SetValue(wxString(OpenISO->GetApploaderDate().c_str(), wxConvUTF8));
|
||||||
m_TOC->SetValue(wxString::Format(_T("%u"), OpenISO->GetFSTSize()));
|
m_TOC->SetValue(wxString::Format(_T("%u"), OpenISO->GetFSTSize()));
|
||||||
|
|
||||||
@ -125,7 +128,7 @@ void CFilesystemViewer::CreateDirectoryTree(wxTreeItemId& parent,
|
|||||||
else
|
else
|
||||||
dirName++;
|
dirName++;
|
||||||
|
|
||||||
wxTreeItemId item = m_Treectrl->AppendItem(parent, wxT(dirName));
|
wxTreeItemId item = m_Treectrl->AppendItem(parent, wxString::FromAscii(dirName));
|
||||||
CreateDirectoryTree(item, begin, end, ++iterPos, name);
|
CreateDirectoryTree(item, begin, end, ++iterPos, name);
|
||||||
} else {
|
} else {
|
||||||
char *fileName = strrchr(name, '\\');
|
char *fileName = strrchr(name, '\\');
|
||||||
@ -134,7 +137,7 @@ void CFilesystemViewer::CreateDirectoryTree(wxTreeItemId& parent,
|
|||||||
else
|
else
|
||||||
fileName++;
|
fileName++;
|
||||||
|
|
||||||
m_Treectrl->AppendItem(parent, wxT(fileName));
|
m_Treectrl->AppendItem(parent, wxString::FromAscii(fileName));
|
||||||
++iterPos;
|
++iterPos;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -312,7 +315,7 @@ void CFilesystemViewer::OnExtractFile(wxCommandEvent& WXUNUSED (event))
|
|||||||
{
|
{
|
||||||
wxString temp;
|
wxString temp;
|
||||||
temp = m_Treectrl->GetItemText(m_Treectrl->GetItemParent(m_Treectrl->GetSelection()));
|
temp = m_Treectrl->GetItemText(m_Treectrl->GetItemParent(m_Treectrl->GetSelection()));
|
||||||
File = wxString::Format("%s\\%s", temp, File);
|
File = temp + _T("\\") + File;
|
||||||
|
|
||||||
m_Treectrl->SelectItem(m_Treectrl->GetItemParent(m_Treectrl->GetSelection()));
|
m_Treectrl->SelectItem(m_Treectrl->GetItemParent(m_Treectrl->GetSelection()));
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "Globals.h"
|
#include "../Globals.h"
|
||||||
#include "Debugger.h"
|
#include "Debugger.h"
|
||||||
#include "PBView.h"
|
#include "PBView.h"
|
||||||
#include "IniFile.h"
|
#include "IniFile.h"
|
||||||
@ -269,8 +269,10 @@ void CDebugger::OnShow(wxShowEvent& /*event*/)
|
|||||||
if(m_Check[2]->IsChecked())
|
if(m_Check[2]->IsChecked())
|
||||||
{
|
{
|
||||||
OpenConsole();
|
OpenConsole();
|
||||||
|
#ifdef _WIN32
|
||||||
MoveWindow(GetConsoleHwnd(), 0,400, 1280,500, true); // move window, TODO: make this
|
MoveWindow(GetConsoleHwnd(), 0,400, 1280,500, true); // move window, TODO: make this
|
||||||
// adjustable from the debugging window
|
// adjustable from the debugging window
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -411,8 +413,10 @@ void CDebugger::DoShowHideConsole()
|
|||||||
if(m_Check[2]->IsChecked())
|
if(m_Check[2]->IsChecked())
|
||||||
{
|
{
|
||||||
OpenConsole();
|
OpenConsole();
|
||||||
|
#ifdef _WIN32
|
||||||
MoveWindow(GetConsoleHwnd(), 0,400, 1280,500, true); // move window, TODO: make this
|
MoveWindow(GetConsoleHwnd(), 0,400, 1280,500, true); // move window, TODO: make this
|
||||||
// adjustable from the debugging window
|
// adjustable from the debugging window
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
// ---------------------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------------------
|
||||||
// includes
|
// includes
|
||||||
// -----------------
|
// -----------------
|
||||||
#include "Globals.h"
|
#include "../Globals.h"
|
||||||
#include "PBView.h"
|
#include "PBView.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -535,6 +535,7 @@ void OpenGL_Update()
|
|||||||
// We just check all of our events here
|
// We just check all of our events here
|
||||||
XEvent event;
|
XEvent event;
|
||||||
KeySym key;
|
KeySym key;
|
||||||
|
static RECT rcWindow;
|
||||||
static bool ShiftPressed = false;
|
static bool ShiftPressed = false;
|
||||||
static bool ControlPressed = false;
|
static bool ControlPressed = false;
|
||||||
static int FKeyPressed = -1;
|
static int FKeyPressed = -1;
|
||||||
@ -580,6 +581,10 @@ void OpenGL_Update()
|
|||||||
&GLWin.width, &GLWin.height, &borderDummy, &GLWin.depth);
|
&GLWin.width, &GLWin.height, &borderDummy, &GLWin.depth);
|
||||||
nBackbufferWidth = GLWin.width;
|
nBackbufferWidth = GLWin.width;
|
||||||
nBackbufferHeight = GLWin.height;
|
nBackbufferHeight = GLWin.height;
|
||||||
|
rcWindow.left = 0;
|
||||||
|
rcWindow.top = 0;
|
||||||
|
rcWindow.right = GLWin.width;
|
||||||
|
rcWindow.bottom = GLWin.height;
|
||||||
break;
|
break;
|
||||||
case ClientMessage: //TODO: We aren't reading this correctly, It could be anything, highest change is that it's a close event though
|
case ClientMessage: //TODO: We aren't reading this correctly, It could be anything, highest change is that it's a close event though
|
||||||
Video_Shutdown(); // Calling from here since returning false does nothing
|
Video_Shutdown(); // Calling from here since returning false does nothing
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
#include "Globals.h"
|
#include "../Globals.h"
|
||||||
|
|
||||||
|
|
||||||
// --------------------
|
// --------------------
|
||||||
@ -149,6 +149,13 @@ void ClearScreen()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CloseConsole()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OpenConsole()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(DEBUGG) && defined(_WIN32)
|
#if defined(DEBUGG) && defined(_WIN32)
|
||||||
HWND GetConsoleHwnd(void)
|
HWND GetConsoleHwnd(void)
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "Globals.h" // this is the precompiled header and must be the first ...
|
#include "../Globals.h" // this is the precompiled header and must be the first ...
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------------------
|
||||||
// Includes
|
// Includes
|
||||||
|
@ -24,6 +24,10 @@ files = [
|
|||||||
'VertexShaderManager.cpp',
|
'VertexShaderManager.cpp',
|
||||||
'XFB.cpp',
|
'XFB.cpp',
|
||||||
'GUI/ConfigDlg.cpp',
|
'GUI/ConfigDlg.cpp',
|
||||||
|
'Logging/Console.cpp',
|
||||||
|
'Logging/Logging.cpp',
|
||||||
|
'Debugger/Debugger.cpp',
|
||||||
|
'Debugger/PBView.cpp',
|
||||||
]
|
]
|
||||||
compileFlags = [
|
compileFlags = [
|
||||||
'-fPIC',
|
'-fPIC',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user