711.patch 983 B

123456789101112131415161718192021222324252627282930
  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
  7. Implemented Xcode recognizing bitmap and wave files as resources, plus properly
  8. set their types recognizable by Xcode itself.
  9. diff --git a/src/actions/xcode/xcode_common.lua b/src/actions/xcode/xcode_common.lua
  10. --- a/src/actions/xcode/xcode_common.lua
  11. +++ b/src/actions/xcode/xcode_common.lua
  12. @@ -32,6 +32,8 @@
  13. [".nib"] = "Resources",
  14. [".xib"] = "Resources",
  15. [".icns"] = "Resources",
  16. + [".bmp"] = "Resources",
  17. + [".wav"] = "Resources",
  18. }
  19. return categories[path.getextension(node.name)]
  20. end
  21. @@ -85,6 +87,8 @@
  22. [".strings"] = "text.plist.strings",
  23. [".xib"] = "file.xib",
  24. [".icns"] = "image.icns",
  25. + [".bmp"] = "image.bmp",
  26. + [".wav"] = "audio.wav",
  27. }
  28. return types[path.getextension(node.path)] or "text"
  29. end