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:
Sonicadvance1 2008-10-10 16:20:13 +00:00
parent 671fb9def1
commit 92f661b390
8 changed files with 32 additions and 9 deletions

View File

@ -77,7 +77,10 @@ CFilesystemViewer::CFilesystemViewer(const std::string fileName, wxWindow* paren
m_Country->SetValue(wxString::FromAscii("UNKNOWN"));
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_TOC->SetValue(wxString::Format(_T("%u"), OpenISO->GetFSTSize()));
@ -125,7 +128,7 @@ void CFilesystemViewer::CreateDirectoryTree(wxTreeItemId& parent,
else
dirName++;
wxTreeItemId item = m_Treectrl->AppendItem(parent, wxT(dirName));
wxTreeItemId item = m_Treectrl->AppendItem(parent, wxString::FromAscii(dirName));
CreateDirectoryTree(item, begin, end, ++iterPos, name);
} else {
char *fileName = strrchr(name, '\\');
@ -134,7 +137,7 @@ void CFilesystemViewer::CreateDirectoryTree(wxTreeItemId& parent,
else
fileName++;
m_Treectrl->AppendItem(parent, wxT(fileName));
m_Treectrl->AppendItem(parent, wxString::FromAscii(fileName));
++iterPos;
}
@ -312,7 +315,7 @@ void CFilesystemViewer::OnExtractFile(wxCommandEvent& WXUNUSED (event))
{
wxString temp;
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()));
}

View File

@ -19,7 +19,7 @@
//
//////////////////////////////////////////////////////////////////////////////////////////
#include "Globals.h"
#include "../Globals.h"
#include "Debugger.h"
#include "PBView.h"
#include "IniFile.h"
@ -269,8 +269,10 @@ void CDebugger::OnShow(wxShowEvent& /*event*/)
if(m_Check[2]->IsChecked())
{
OpenConsole();
#ifdef _WIN32
MoveWindow(GetConsoleHwnd(), 0,400, 1280,500, true); // move window, TODO: make this
// adjustable from the debugging window
#endif
}
}
@ -411,8 +413,10 @@ void CDebugger::DoShowHideConsole()
if(m_Check[2]->IsChecked())
{
OpenConsole();
#ifdef _WIN32
MoveWindow(GetConsoleHwnd(), 0,400, 1280,500, true); // move window, TODO: make this
// adjustable from the debugging window
#endif
}
else
{

View File

@ -19,7 +19,7 @@
// ---------------------------------------------------------------------------------------
// includes
// -----------------
#include "Globals.h"
#include "../Globals.h"
#include "PBView.h"
#include <iostream>

View File

@ -535,6 +535,7 @@ void OpenGL_Update()
// We just check all of our events here
XEvent event;
KeySym key;
static RECT rcWindow;
static bool ShiftPressed = false;
static bool ControlPressed = false;
static int FKeyPressed = -1;
@ -580,6 +581,10 @@ void OpenGL_Update()
&GLWin.width, &GLWin.height, &borderDummy, &GLWin.depth);
nBackbufferWidth = GLWin.width;
nBackbufferHeight = GLWin.height;
rcWindow.left = 0;
rcWindow.top = 0;
rcWindow.right = GLWin.width;
rcWindow.bottom = GLWin.height;
break;
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

View File

@ -23,7 +23,7 @@
#ifdef _WIN32
#include <windows.h>
#endif
#include "Globals.h"
#include "../Globals.h"
// --------------------
@ -149,6 +149,13 @@ void ClearScreen()
#endif
}
void CloseConsole()
{
}
void OpenConsole()
{
}
#if defined(DEBUGG) && defined(_WIN32)
HWND GetConsoleHwnd(void)
{

View File

@ -24,4 +24,4 @@ void CloseConsole();
#ifdef _WIN32
HWND GetConsoleHwnd(void);
#endif
#endif

View File

@ -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

View File

@ -24,6 +24,10 @@ files = [
'VertexShaderManager.cpp',
'XFB.cpp',
'GUI/ConfigDlg.cpp',
'Logging/Console.cpp',
'Logging/Logging.cpp',
'Debugger/Debugger.cpp',
'Debugger/PBView.cpp',
]
compileFlags = [
'-fPIC',