# HG changeset patch
# User Ritor1
# Date 1385141282 -21600
# Node ID d4cc4d71d9cf1293b36c9bf461264342445bbdc4
# Parent 7a9477135943367677c9ba520f20a89bc6abbce0
Log::Warning
diff -r 7a9477135943 -r d4cc4d71d9cf Build/Visual Studio 2012/World of Might and Magic.vcxproj
--- a/Build/Visual Studio 2012/World of Might and Magic.vcxproj Fri Nov 22 10:34:22 2013 +0200
+++ b/Build/Visual Studio 2012/World of Might and Magic.vcxproj Fri Nov 22 23:28:02 2013 +0600
@@ -338,6 +338,7 @@
+
@@ -384,6 +385,7 @@
call "../../lib/swig" "%(FileName)" %(RelativeDir) "%(FileName)%(Extension)" "%(FullPath)" "$(SolutionDir)" %(Filename)_wrap.cxx"
%(Filename)_wrap.cxx
+
diff -r 7a9477135943 -r d4cc4d71d9cf Build/Visual Studio 2012/World of Might and Magic.vcxproj.filters
--- a/Build/Visual Studio 2012/World of Might and Magic.vcxproj.filters Fri Nov 22 10:34:22 2013 +0200
+++ b/Build/Visual Studio 2012/World of Might and Magic.vcxproj.filters Fri Nov 22 23:28:02 2013 +0600
@@ -592,11 +592,15 @@
+
lib\legacy_dx
+
+ lib
+
diff -r 7a9477135943 -r d4cc4d71d9cf mm7_2.cpp
--- a/mm7_2.cpp Fri Nov 22 10:34:22 2013 +0200
+++ b/mm7_2.cpp Fri Nov 22 23:28:02 2013 +0600
@@ -4313,7 +4313,7 @@
const char *GetScriptFileLocation(const char *script_name)
{
static char buf[2048];
- strcpy(buf, "scripts/");
+ strcpy(buf, "Data/scripts/lua/core/");
strcat(buf, script_name);
return buf;
}
@@ -4333,17 +4333,20 @@
char test[1024];
sprintfex(test, "^Pi[%s]: знахар^R[ь;ка;]", "Золтан");
+ char dir[256];
+ GetCurrentDirectoryA(256, dir);
+
lua_State *L = luaL_newstate();
if ( L == NULL )
- printf ( "Error creating Lua context.\n" );
+ Log::Warning(L"Error creating Lua context.\n");
luaL_openlibs(L);
if ( luaL_dofile(L,GetScriptFileLocation("script.lua")))
- printf ( "Error opening script.lua\n" );
+ Log::Warning(L"Error opening script.lua\n");
LoadLuaSWIGLibraries(L);
if (luaL_dofile(L,GetScriptFileLocation("UIControl.lua")))
- printf("unable to load file\n");
+ Log::Warning(L"unable to load UIControl.lua\n");
//lua_close(l);
bool bNoMargareth = false;