Browse Source

Made the android set save functions private.

--HG--
branch : new-conf-flag-for-android-2
BobbyJones 9 years ago
parent
commit
57467448ad
3 changed files with 6 additions and 6 deletions
  1. 2 2
      src/modules/filesystem/wrap_Filesystem.cpp
  2. 1 1
      src/scripts/boot.lua
  3. 3 3
      src/scripts/boot.lua.h

+ 2 - 2
src/modules/filesystem/wrap_Filesystem.cpp

@@ -721,8 +721,8 @@ static const luaL_Reg functions[] =
 	{ "init", w_init },
 	{ "init", w_init },
 	{ "setFused", w_setFused },
 	{ "setFused", w_setFused },
 	{ "isFused", w_isFused },
 	{ "isFused", w_isFused },
-	{ "setAndroidSaveExternal", w_setAndroidSaveExternal },
-	{ "getAndroidSaveExternal", w_isAndroidSaveExternal },
+	{ "_setAndroidSaveExternal", w_setAndroidSaveExternal },
+	{ "_getAndroidSaveExternal", w_isAndroidSaveExternal },
 	{ "setIdentity", w_setIdentity },
 	{ "setIdentity", w_setIdentity },
 	{ "getIdentity", w_getIdentity },
 	{ "getIdentity", w_getIdentity },
 	{ "setSource", w_setSource },
 	{ "setSource", w_setSource },

+ 1 - 1
src/scripts/boot.lua

@@ -494,7 +494,7 @@ function love.init()
 	end
 	end
 
 
 	if love.filesystem then
 	if love.filesystem then
-		love.filesystem.setAndroidSaveExternal(c.externalstorage)
+		love.filesystem._setAndroidSaveExternal(c.externalstorage)
 		love.filesystem.setIdentity(c.identity or love.filesystem.getIdentity(), c.appendidentity)
 		love.filesystem.setIdentity(c.identity or love.filesystem.getIdentity(), c.appendidentity)
 		if love.filesystem.isFile("main.lua") then
 		if love.filesystem.isFile("main.lua") then
 			require("main")
 			require("main")

+ 3 - 3
src/scripts/boot.lua.h

@@ -913,9 +913,9 @@ const unsigned char boot_lua[] =
 	0x09, 0x69, 0x66, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 
 	0x09, 0x69, 0x66, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 
 	0x6d, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a,
 	0x6d, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a,
 	0x09, 0x09, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 
 	0x09, 0x09, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 
-	0x73, 0x65, 0x74, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x53, 0x61, 0x76, 0x65, 0x45, 0x78, 0x74, 0x65, 
-	0x72, 0x6e, 0x61, 0x6c, 0x28, 0x63, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x73, 0x74, 0x6f, 
-	0x72, 0x61, 0x67, 0x65, 0x29, 0x0a,
+	0x5f, 0x73, 0x65, 0x74, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x53, 0x61, 0x76, 0x65, 0x45, 0x78, 0x74, 
+	0x65, 0x72, 0x6e, 0x61, 0x6c, 0x28, 0x63, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x73, 0x74, 
+	0x6f, 0x72, 0x61, 0x67, 0x65, 0x29, 0x0a,
 	0x09, 0x09, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 
 	0x09, 0x09, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 
 	0x73, 0x65, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x28, 0x63, 0x2e, 0x69, 0x64, 0x65, 0x6e, 
 	0x73, 0x65, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x28, 0x63, 0x2e, 0x69, 0x64, 0x65, 0x6e, 
 	0x74, 0x69, 0x74, 0x79, 0x20, 0x6f, 0x72, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 
 	0x74, 0x69, 0x74, 0x79, 0x20, 0x6f, 0x72, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73,