From 092989dffc2a59c5b19f2f4470396ea308cd534c Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Sun, 23 Aug 2009 15:56:13 +0000 Subject: [PATCH] Added dummy Lua interface files. Now Dolphin links with Lua successfully. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4039 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Core.vcproj | 16 ++++++++++++-- Source/Core/Core/Src/LuaInterface.cpp | 32 +++++++++++++++++++++++++++ Source/Core/Core/Src/LuaInterface.h | 28 +++++++++++++++++++++++ Source/Dolphin.sln | 1 + 4 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 Source/Core/Core/Src/LuaInterface.cpp create mode 100644 Source/Core/Core/Src/LuaInterface.h diff --git a/Source/Core/Core/Core.vcproj b/Source/Core/Core/Core.vcproj index 1a190287cd..7715cf5791 100644 --- a/Source/Core/Core/Core.vcproj +++ b/Source/Core/Core/Core.vcproj @@ -265,7 +265,7 @@ OmitFramePointers="true" EnableFiberSafeOptimizations="false" WholeProgramOptimization="false" - AdditionalIncludeDirectories=".\Core\Core\Src\Debugger;..\Common\Src;..\DiscIO\Src;..\..\Core\InputCommon\Src;..\..\PluginSpecs;..\..\..\Externals\LZO;..\..\..\Externals\Bochs_disasm;..\..\..\Externals\zlib" + AdditionalIncludeDirectories=".\Core\Core\Src\Debugger;..\Common\Src;..\DiscIO\Src;..\..\Core\InputCommon\Src;..\..\PluginSpecs;..\..\..\Externals\LZO;..\..\..\Externals\Bochs_disasm;..\..\..\Externals\zlib;..\..\..\Externals\Lua" PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_SECURE_SCL=0" StringPooling="true" RuntimeLibrary="0" @@ -290,7 +290,7 @@ + + + + + + diff --git a/Source/Core/Core/Src/LuaInterface.cpp b/Source/Core/Core/Src/LuaInterface.cpp new file mode 100644 index 0000000000..0837fa8966 --- /dev/null +++ b/Source/Core/Core/Src/LuaInterface.cpp @@ -0,0 +1,32 @@ +// Copyright (C) 2003 Dolphin Project. + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 2.0. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License 2.0 for more details. + +// A copy of the GPL 2.0 should have been included with the program. +// If not, see http://www.gnu.org/licenses/ + +// Official SVN repository and contact information can be found at +// http://code.google.com/p/dolphin-emu/ + +#include "LuaInterface.h" + +extern "C" { +#include "lua.h" +#include "lauxlib.h" +#include "lualib.h" +#include "lstate.h" +}; + +namespace Lua { + + + + +}; diff --git a/Source/Core/Core/Src/LuaInterface.h b/Source/Core/Core/Src/LuaInterface.h new file mode 100644 index 0000000000..8d89188de1 --- /dev/null +++ b/Source/Core/Core/Src/LuaInterface.h @@ -0,0 +1,28 @@ +// Copyright (C) 2003 Dolphin Project. + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 2.0. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License 2.0 for more details. + +// A copy of the GPL 2.0 should have been included with the program. +// If not, see http://www.gnu.org/licenses/ + +// Official SVN repository and contact information can be found at +// http://code.google.com/p/dolphin-emu/ + +#ifndef __LUA_INTERFACE_H +#define __LUA_INTERFACE_H + +namespace Lua { + + + + +}; + +#endif diff --git a/Source/Dolphin.sln b/Source/Dolphin.sln index def5260b21..2b4121a36a 100644 --- a/Source/Dolphin.sln +++ b/Source/Dolphin.sln @@ -3,6 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 10.00 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Core", "Core\Core\Core.vcproj", "{F0B874CB-4476-4199-9315-8343D05AE684}" ProjectSection(ProjectDependencies) = postProject {C7E5D50A-2916-464B-86A7-E10B3CC88ADA} = {C7E5D50A-2916-464B-86A7-E10B3CC88ADA} + {DA4CA030-A741-4DDC-9DA8-B2F351F0F158} = {DA4CA030-A741-4DDC-9DA8-B2F351F0F158} {33546D62-7F34-4EA6-A88E-D538B36E16BF} = {33546D62-7F34-4EA6-A88E-D538B36E16BF} {11F55366-12EC-4C44-A8CB-1D4E315D61ED} = {11F55366-12EC-4C44-A8CB-1D4E315D61ED} {3E03C179-8251-46E4-81F4-466F114BAC63} = {3E03C179-8251-46E4-81F4-466F114BAC63}