cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

711.patch (983B)


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