Fix everything else in Linux except for vtlb.cpp. Compilation is still broken, though.

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@464 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
arcum42 2008-12-20 07:20:39 +00:00 committed by Gregory Hainaut
parent f137821d9c
commit c8e246fbfe
4 changed files with 29 additions and 14 deletions

View File

@ -19,6 +19,10 @@
#include <stdio.h>
#include <string.h>
#ifdef __LINUX__
#include <cstdarg>
#endif
#include "Debug.h"
#include "R5900.h"
#include "DisASM.h"

View File

@ -22,15 +22,15 @@
#include "PS2Etypes.h"
#include "iR5900AritImm.h"
#include "iR5900Arit.h"
#include "iR5900MultDiv.h"
#include "iR5900Shift.h"
#include "iR5900Branch.h"
#include "iR5900Jump.h"
#include "iR5900LoadStore.h"
#include "iR5900Move.h"
#include "iMMI.h"
#include "x86/iR5900AritImm.h"
#include "x86/iR5900Arit.h"
#include "x86/iR5900MultDiv.h"
#include "x86/iR5900Shift.h"
#include "x86/iR5900Branch.h"
#include "x86/iR5900Jump.h"
#include "x86/iR5900LoadStore.h"
#include "x86/iR5900Move.h"
#include "x86/iMMI.h"
namespace EE { namespace Dynarec { namespace OpcodeImpl
{

View File

@ -22,6 +22,8 @@ void UpdateDebugger() {
char *str;
int i;
std::string output;
DebugAdj->value = (gfloat)dPC/4;
gtk_list_store_clear(ListDVModel);
@ -40,7 +42,12 @@ void UpdateDebugger() {
str = nullAddr;
}
else
str = disR5900Fasm(*mem, pc);
{
std::string output;
disR5900Fasm(output, *mem, pc);
output.copy( str, 256 );
}
gtk_list_store_append(ListDVModel, &iter);
gtk_list_store_set(ListDVModel, &iter, 0, str, -1);
@ -176,7 +183,12 @@ void OnDumpC_Ok(GtkButton *button, gpointer user_data) {
str = nullAddr;
}
else
str = disR5900Fasm(*mem, addrf);
{
std::string output;
disR5900Fasm(output, *mem, addrf);
output.copy( str, 256 );
}
fprintf(f, "%s\n", str);
addrf+= 4;

View File

@ -6,7 +6,7 @@
// The profiler does not have a Linux version yet.
// So for now we turn it into duds for non-Win32 platforms.
#if !defined( _DEBUG ) || !defined( WIN32 )
#if !defined( _DEBUG ) && defined( WIN32 )
void ProfilerInit();
void ProfilerTerm();
@ -16,7 +16,7 @@ void ProfilerRegisterSource(const char* Name,void* function);
#else
// Disables the profiler in Debug builds.
// Disables the profiler in Debug & Linux builds.
// Profiling info in debug builds isn't much use anyway and the console
// popups are annoying when you're trying to trace debug logs and stuff.
@ -24,7 +24,6 @@ void ProfilerRegisterSource(const char* Name,void* function);
#define ProfilerTerm()
#define ProfilerSetEnabled 0&&
#define ProfilerRegisterSource 0&&
#define ProfilerRegisterSource 0&&
#endif