premake/patches/711.patch
author Ryan C. Gordon
Tue, 05 Jan 2016 05:22:35 -0500
changeset 10031 2b3baddd9afa
parent 7925 f090a47eb7f7
permissions -rwxr-xr-x
Patched to compile.
icculus@7925
     1
# HG changeset patch
icculus@7925
     2
# User Ben Henning
icculus@7925
     3
# Date 1376453463 25200
icculus@7925
     4
#      Tue Aug 13 21:11:03 2013 -0700
icculus@7925
     5
# Node ID a5f8b4f709722222e02fa481873d76ad25255e09
icculus@7925
     6
# Parent  8b24d45e6a5d717876a7b32b64e99043c95328e5
icculus@7925
     7
Implemented Xcode recognizing bitmap and wave files as resources, plus properly
icculus@7925
     8
set their types recognizable by Xcode itself.
icculus@7925
     9
icculus@7925
    10
diff --git a/src/actions/xcode/xcode_common.lua b/src/actions/xcode/xcode_common.lua
icculus@7925
    11
--- a/src/actions/xcode/xcode_common.lua
icculus@7925
    12
+++ b/src/actions/xcode/xcode_common.lua
icculus@7925
    13
@@ -32,6 +32,8 @@
icculus@7925
    14
 			[".nib"] = "Resources",
icculus@7925
    15
 			[".xib"] = "Resources",
icculus@7925
    16
 			[".icns"] = "Resources",
icculus@7925
    17
+			[".bmp"] = "Resources",
icculus@7925
    18
+			[".wav"] = "Resources",
icculus@7925
    19
 		}
icculus@7925
    20
 		return categories[path.getextension(node.name)]
icculus@7925
    21
 	end
icculus@7925
    22
@@ -85,6 +87,8 @@
icculus@7925
    23
 			[".strings"]   = "text.plist.strings",
icculus@7925
    24
 			[".xib"]       = "file.xib",
icculus@7925
    25
 			[".icns"]      = "image.icns",
icculus@7925
    26
+			[".bmp"]       = "image.bmp",
icculus@7925
    27
+			[".wav"]       = "audio.wav",
icculus@7925
    28
 		}
icculus@7925
    29
 		return types[path.getextension(node.path)] or "text"
icculus@7925
    30
 	end