Fix Plugin_VideoSoftware build.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7113 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2011-02-08 11:02:34 +00:00
parent 855f97841d
commit 8c41d31651
7 changed files with 21 additions and 21 deletions

View File

@ -38,7 +38,7 @@ files = [
"Thunk.cpp", "Thunk.cpp",
"Timer.cpp", "Timer.cpp",
"Version.cpp", "Version.cpp",
"VideoBackendBase.cpp", #"VideoBackendBase.cpp",
"x64Emitter.cpp", "x64Emitter.cpp",
"x64Analyzer.cpp", "x64Analyzer.cpp",
"Crypto/aes_cbc.cpp", "Crypto/aes_cbc.cpp",
@ -56,3 +56,4 @@ if sys.platform == 'win32':
env['common'] = env.StaticObject(files) env['common'] = env.StaticObject(files)
env['CPPPATH'] += ['.'] env['CPPPATH'] += ['.']
env['LIBS'] += env['common'] env['LIBS'] += env['common']
env['LIBS'] += env.StaticObject('VideoBackendBase.cpp')

View File

@ -23,9 +23,7 @@
#include "../../../Plugins/Plugin_VideoDX11/Src/VideoBackend.h" #include "../../../Plugins/Plugin_VideoDX11/Src/VideoBackend.h"
#endif #endif
#include "../../../Plugins/Plugin_VideoOGL/Src/VideoBackend.h" #include "../../../Plugins/Plugin_VideoOGL/Src/VideoBackend.h"
#ifndef _WIN32 // XXX
#include "../../../Plugins/Plugin_VideoSoftware/Src/VideoBackend.h" #include "../../../Plugins/Plugin_VideoSoftware/Src/VideoBackend.h"
#endif
std::vector<VideoBackend*> g_available_video_backends; std::vector<VideoBackend*> g_available_video_backends;
VideoBackend* g_video_backend = NULL; VideoBackend* g_video_backend = NULL;
@ -38,9 +36,7 @@ void VideoBackend::PopulateList()
g_available_video_backends.push_back(new DX11::VideoBackend); g_available_video_backends.push_back(new DX11::VideoBackend);
#endif #endif
g_available_video_backends.push_back(new OGL::VideoBackend); g_available_video_backends.push_back(new OGL::VideoBackend);
#ifndef _WIN32 // XXX
g_available_video_backends.push_back(new SW::VideoBackend); g_available_video_backends.push_back(new SW::VideoBackend);
#endif
g_video_backend = g_available_video_backends.front(); g_video_backend = g_available_video_backends.front();
} }

View File

@ -1,5 +1,3 @@
#import <CoreServices/CoreServices.h>
extern "C" OSErr UpdateSystemActivity(UInt8 activity);
#define BLUETOOTH_VERSION_USE_CURRENT #define BLUETOOTH_VERSION_USE_CURRENT
#import <IOBluetooth/IOBluetooth.h> #import <IOBluetooth/IOBluetooth.h>
@ -72,7 +70,7 @@ extern "C" OSErr UpdateSystemActivity(UInt8 activity);
(void)wm->Read(); (void)wm->Read();
(void)UpdateSystemActivity(1); (void)UpdateSystemActivity(UsrActivity);
} }
- (void) l2capChannelClosed: (IOBluetoothL2CAPChannel *) l2capChannel - (void) l2capChannelClosed: (IOBluetoothL2CAPChannel *) l2capChannel

View File

@ -50,13 +50,16 @@ elif sys.platform == 'darwin':
env['FRAMEWORKPATH'] += ['Externals/Cg'] env['FRAMEWORKPATH'] += ['Externals/Cg']
frameworksflags += ['-Wl,-weak_framework,Cg'] frameworksflags += ['-Wl,-weak_framework,Cg']
frameworksflags += ['-Wl,-weak_framework,OpenCL'] frameworksflags += ['-Wl,-weak_framework,OpenCL']
frameworksflags += ['-Wl,-weak_framework,QuickTime']
frameworksflags += ['-Wl,-no_arch_warnings']
exe = '#' + env['prefix'] + '/Dolphin.app/Contents/MacOS/Dolphin' exe = '#' + env['prefix'] + '/Dolphin.app/Contents/MacOS/Dolphin'
if env['HAVE_WX']: if env['HAVE_WX']:
env['LIBS'] += env['wxconfiglibs'] env['LIBS'] += env['wxconfiglibs']
frameworksflags += ['-Wl,-weak_framework,AudioToolbox']
frameworksflags += ['-Wl,-weak_framework,Carbon']
frameworksflags += ['-Wl,-weak_framework,QuickTime']
frameworksflags += ['-Wl,-weak_framework,WebKit']
frameworksflags += ['-Wl,-no_arch_warnings']
else: else:
env['LIBS'] += ['iconv'] env['LIBS'] += ['iconv']
exe += 'NoGUI' exe += 'NoGUI'

View File

@ -43,7 +43,7 @@
#define DL_CODE_CACHE_SIZE (1024*1024*16) #define DL_CODE_CACHE_SIZE (1024*1024*16)
#define DL_CODE_CLEAR_THRESHOLD (128 * 1024) #define DL_CODE_CLEAR_THRESHOLD (128 * 1024)
extern int frameCount; extern int frameCount;
static int CheckContextId; static u32 CheckContextId;
using namespace Gen; using namespace Gen;
namespace DLCache namespace DLCache
@ -66,11 +66,11 @@ struct ReferencedDataRegion
ReferencedDataRegion() ReferencedDataRegion()
:hash(0), :hash(0),
start_address(NULL), start_address(NULL),
NextRegion(NULL),
size(0), size(0),
MustClean(false), MustClean(0),
ReferencedArray(-1), ReferencedArray(-1),
ReferencedArrayStride(0), ReferencedArrayStride(0)
NextRegion(NULL)
{} {}
u64 hash; u64 hash;
u8* start_address; u8* start_address;
@ -94,16 +94,16 @@ struct ReferencedDataRegion
struct CachedDisplayList struct CachedDisplayList
{ {
CachedDisplayList() CachedDisplayList()
: uncachable(false), : Regions(NULL),
LastRegion(NULL),
uncachable(false),
num_xf_reg(0), num_xf_reg(0),
num_cp_reg(0), num_cp_reg(0),
num_bp_reg(0), num_bp_reg(0),
num_index_xf(0), num_index_xf(0),
num_draw_call(0), num_draw_call(0),
pass(DLPASS_ANALYZE), pass(DLPASS_ANALYZE),
BufferCount(0), BufferCount(0)
Regions(NULL),
LastRegion(NULL)
{ {
frame_count = frameCount; frame_count = frameCount;
} }
@ -188,8 +188,7 @@ struct CachedDisplayList
{ {
if(Current->hash) if(Current->hash)
{ {
// this chek is not strictly necesary now but i left it for an aditional safety check if(cached_arraybases[Current->ReferencedArray] != Current->start_address || arraystrides[Current->ReferencedArray] != Current->ReferencedArrayStride)
if(Current->ReferencedArray != -1 && (cached_arraybases[Current->ReferencedArray] != Current->start_address || arraystrides[Current->ReferencedArray] != Current->ReferencedArrayStride))
{ {
return false; return false;
} }

View File

@ -79,12 +79,14 @@ void VideoBackend::Initialize()
void VideoBackend::DoState(PointerWrap&) void VideoBackend::DoState(PointerWrap&)
{ {
}
void VideoBackend::RunLoop(bool enable)
{
} }
void VideoBackend::EmuStateChange(EMUSTATE_CHANGE newState) void VideoBackend::EmuStateChange(EMUSTATE_CHANGE newState)
{ {
} }
void VideoBackend::Shutdown() void VideoBackend::Shutdown()

View File

@ -17,6 +17,7 @@ class VideoBackend : public VideoBackendLLE
void EmuStateChange(EMUSTATE_CHANGE newState); void EmuStateChange(EMUSTATE_CHANGE newState);
void DoState(PointerWrap &p); void DoState(PointerWrap &p);
void RunLoop(bool enable);
void ShowConfig(void* parent); void ShowConfig(void* parent);