Browse Source

Fixed custom return value for love executable, cleaned up Xcode project a bit

Alex Szpakowski 11 years ago
parent
commit
b6aba767f4
3 changed files with 4 additions and 6 deletions
  1. 2 2
      platform/macosx/love-Info.plist
  2. 0 2
      platform/macosx/love.xcodeproj/project.pbxproj
  3. 2 2
      src/love.cpp

+ 2 - 2
platform/macosx/love-Info.plist

@@ -49,10 +49,10 @@
 	<string>0.9.0</string>
 	<key>CFBundleSignature</key>
 	<string>LoVe</string>
+	<key>LSApplicationCategoryType</key>
+	<string>public.app-category.games</string>
 	<key>NSHumanReadableCopyright</key>
 	<string>© 2006-2013 LÖVE Development Team</string>
-	<key>NSMainNibFile</key>
-	<string>SDLMain</string>
 	<key>NSPrincipalClass</key>
 	<string>NSApplication</string>
 	<key>UTExportedTypeDeclarations</key>

+ 0 - 2
platform/macosx/love.xcodeproj/project.pbxproj

@@ -13,7 +13,6 @@
 		A9255E031043195A00BA1496 /* Vorbis.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = A9255E021043195A00BA1496 /* Vorbis.framework */; };
 		A9255F431043240F00BA1496 /* IL.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = A9255F421043240F00BA1496 /* IL.framework */; };
 		A9255F58104324E100BA1496 /* Ogg.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = A9255F51104324D700BA1496 /* Ogg.framework */; };
-		A93E6E4A10420B4A007D418B /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A93E6E4710420B4A007D418B /* OpenGL.framework */; };
 		A93E6E5510420B57007D418B /* Lua.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A93E6E5310420B57007D418B /* Lua.framework */; };
 		A93E6EED10420BA8007D418B /* love.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A93E6A3410420AC0007D418B /* love.cpp */; };
 		A9D307F2106635D3004FEDF8 /* physfs.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = A9D307E9106635C3004FEDF8 /* physfs.framework */; };
@@ -94,7 +93,6 @@
 			files = (
 				FA08F69616C766E000F007B5 /* love.framework in Frameworks */,
 				8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
-				A93E6E4A10420B4A007D418B /* OpenGL.framework in Frameworks */,
 				A93E6E5510420B57007D418B /* Lua.framework in Frameworks */,
 				FA9B4A0A16E1579F00074F42 /* SDL2.framework in Frameworks */,
 			);

+ 2 - 2
src/love.cpp

@@ -203,8 +203,8 @@ int main(int argc, char **argv)
 	lua_call(L, 0, 1);
 
 	int retval = 0;
-	if (lua_isnumber(L, 1))
-		retval = (int) lua_tonumber(L, 1);
+	if (lua_isnumber(L, -1))
+		retval = (int) lua_tonumber(L, -1);
 
 	lua_close(L);