Laurens Rodriguez avatar Laurens Rodriguez committed 726aeed

Updating engine to Love 0.8.1 version.

Comments (0)

Files changed (5)

platform/msvc2008/love-killa.vcproj

 			>
 		</File>
 		<File
+			RelativePath="..\..\src\launcher.cpp"
+			>
+		</File>
+		<File
 			RelativePath="..\..\src\love.cpp"
 			>
 			<FileConfiguration

platform/msvc2008/love.vcproj

 			>
 		</File>
 		<File
+			RelativePath="..\..\src\launcher.cpp"
+			>
+		</File>
+		<File
 			RelativePath="..\..\src\love.cpp"
 			>
 			<FileConfiguration
 
 extern "C" int luaopen_love_boot(lua_State *L)
 {
-	if (luaL_loadbuffer(L, (const char *)love::boot_lua, sizeof(love::boot_lua), "boot.lua") == 0)
+#ifdef LOVE_USE_LUA
+    if (luaL_loadbuffer(L, (const char *)love::boot_lua, sizeof(love::boot_lua), "boot.lua") == 0)
+#else
+    if (luaL_loadbuffer(L, (const char *)love::boot_kia, sizeof(love::boot_kia), "boot.kia") == 0)
+#endif
+
 	lua_call(L, 0, 1);
 	return 1;
 }

src/scripts/boot.kia

 // The root of all calls.
 //---------------------------------------------------------
 
-var result = xpcall(love.boot, error_printer)
-if (! result) { return }
-var result = xpcall(love.init, (love._release)? love.releaseerrhand : love.errhand)
-if (! result) { return }
-var result = xpcall(love.run, (love._release)? love.releaseerrhand : love.errhand)
-if (! result) { return }
+return function() {
+	var result = xpcall(love.boot, error_printer)
+	if (! result) { return 1 }
+	var result = xpcall(love.init, (love._release)? love.releaseerrhand : love.errhand)
+	if (! result) { return 1 }
+	var result, retval = xpcall(love.run, (love._release)? love.releaseerrhand : love.errhand)
+	if (! result) { return 1 }
+	
+	return tonumber(retval) || 0	
+}

src/scripts/boot.kia.h

 	0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 
 	0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 
 	0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a,0x0a,
-	0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x78, 0x70, 0x63, 0x61, 0x6c, 
-	0x6c, 0x28, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x74, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 
-	0x5f, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x0a,
-	0x69, 0x66, 0x20, 0x28, 0x21, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 
-	0x74, 0x75, 0x72, 0x6e, 0x20, 0x7d, 0x0a,
-	0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x78, 0x70, 0x63, 0x61, 0x6c, 
-	0x6c, 0x28, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x2c, 0x20, 0x28, 0x6c, 0x6f, 0x76, 0x65, 
-	0x2e, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x29, 0x3f, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x72, 
-	0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x65, 0x72, 0x72, 0x68, 0x61, 0x6e, 0x64, 0x20, 0x3a, 0x20, 0x6c, 0x6f, 
-	0x76, 0x65, 0x2e, 0x65, 0x72, 0x72, 0x68, 0x61, 0x6e, 0x64, 0x29, 0x0a,
-	0x69, 0x66, 0x20, 0x28, 0x21, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 
-	0x74, 0x75, 0x72, 0x6e, 0x20, 0x7d, 0x0a,
-	0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x78, 0x70, 0x63, 0x61, 0x6c, 
-	0x6c, 0x28, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x72, 0x75, 0x6e, 0x2c, 0x20, 0x28, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 
-	0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x29, 0x3f, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x72, 0x65, 
-	0x6c, 0x65, 0x61, 0x73, 0x65, 0x65, 0x72, 0x72, 0x68, 0x61, 0x6e, 0x64, 0x20, 0x3a, 0x20, 0x6c, 0x6f, 0x76, 
-	0x65, 0x2e, 0x65, 0x72, 0x72, 0x68, 0x61, 0x6e, 0x64, 0x29, 0x0a,
-	0x69, 0x66, 0x20, 0x28, 0x21, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x29, 0x20, 0x7b, 0x20, 0x72, 0x65, 
-	0x74, 0x75, 0x72, 0x6e, 0x20, 0x7d, 0x0a,
+	0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 
+	0x7b, 0x0a,
+	0x09, 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x78, 0x70, 0x63, 0x61, 
+	0x6c, 0x6c, 0x28, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x74, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x6f, 
+	0x72, 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x29, 0x0a,
+	0x09, 0x69, 0x66, 0x20, 0x28, 0x21, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x29, 0x20, 0x7b, 0x20, 0x72, 
+	0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x20, 0x7d, 0x0a,
+	0x09, 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x78, 0x70, 0x63, 0x61, 
+	0x6c, 0x6c, 0x28, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x2c, 0x20, 0x28, 0x6c, 0x6f, 0x76, 
+	0x65, 0x2e, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x29, 0x3f, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 
+	0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x65, 0x72, 0x72, 0x68, 0x61, 0x6e, 0x64, 0x20, 0x3a, 0x20, 0x6c, 
+	0x6f, 0x76, 0x65, 0x2e, 0x65, 0x72, 0x72, 0x68, 0x61, 0x6e, 0x64, 0x29, 0x0a,
+	0x09, 0x69, 0x66, 0x20, 0x28, 0x21, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x29, 0x20, 0x7b, 0x20, 0x72, 
+	0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x20, 0x7d, 0x0a,
+	0x09, 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2c, 0x20, 0x72, 0x65, 0x74, 0x76, 0x61, 
+	0x6c, 0x20, 0x3d, 0x20, 0x78, 0x70, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x72, 0x75, 
+	0x6e, 0x2c, 0x20, 0x28, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x29, 
+	0x3f, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x65, 0x72, 0x72, 0x68, 
+	0x61, 0x6e, 0x64, 0x20, 0x3a, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x65, 0x72, 0x72, 0x68, 0x61, 0x6e, 0x64, 
+	0x29, 0x0a,
+	0x09, 0x69, 0x66, 0x20, 0x28, 0x21, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x29, 0x20, 0x7b, 0x20, 0x72, 
+	0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x20, 0x7d, 0x0a,
+	0x09, 0x0a,
+	0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x6f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x28, 0x72, 
+	0x65, 0x74, 0x76, 0x61, 0x6c, 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x30, 0x09, 0x0a,
+	0x7d, 0x0a,
 }; // [boot.kia]
 } // love
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.