Skip to content

Commit 59101a9

Browse files
author
James Chen
committed
Merge pull request #3074 from dumganhar/iss2371-add-lua-ios-mac
ios and mac projects need to be unified in one simple xcode project, adding lua projects for Mac and iOS.
2 parents 766154a + d8ff731 commit 59101a9

File tree

41 files changed

+4043
-6267
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4043
-6267
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ build_*_vc10/
5959
*.pbxuser
6060
*.xcbkptlist
6161
*.xcscheme
62+
*.xcworkspacedata
6263
*.xcuserstate
6364
xcschememanagement.plist
6465
build/

cocos2d-ios.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 123 deletions
This file was deleted.

cocos2d_libs.xcodeproj/project.pbxproj

Lines changed: 539 additions & 1 deletion
Large diffs are not rendered by default.

cocos2d_libs.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
This file was deleted.

cocos2dx/platform/CCFileUtils.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -617,26 +617,26 @@ std::string FileUtils::fullPathForFilename(const char* pszFileName)
617617

618618
string fullpath = "";
619619

620-
for (std::vector<std::string>::iterator searchPathsIter = _searchPathArray.begin();
620+
for (auto searchPathsIter = _searchPathArray.begin();
621621
searchPathsIter != _searchPathArray.end(); ++searchPathsIter) {
622-
for (std::vector<std::string>::iterator resOrderIter = _searchResolutionsOrderArray.begin();
622+
for (auto resOrderIter = _searchResolutionsOrderArray.begin();
623623
resOrderIter != _searchResolutionsOrderArray.end(); ++resOrderIter) {
624624

625-
//CCLOG("\n\nSEARCHING: %s, %s, %s", newFilename.c_str(), resOrderIter->c_str(), searchPathsIter->c_str());
625+
// CCLOG("\n\nSEARCHING: %s, %s, %s", newFilename.c_str(), resOrderIter->c_str(), searchPathsIter->c_str());
626626

627627
fullpath = this->getPathForFilename(newFilename, *resOrderIter, *searchPathsIter);
628628

629629
if (fullpath.length() > 0)
630630
{
631631
// Using the filename passed in as key.
632632
_fullPathCache.insert(std::pair<std::string, std::string>(pszFileName, fullpath));
633-
//CCLOG("Returning path: %s", fullpath.c_str());
633+
// CCLOG("Returning path: %s", fullpath.c_str());
634634
return fullpath;
635635
}
636636
}
637637
}
638638

639-
//CCLOG("cocos2d: fullPathForFilename: No file found at %s. Possible missing file.", pszFileName);
639+
// CCLOG("cocos2d: fullPathForFilename: No file found at %s. Possible missing file.", pszFileName);
640640

641641
// The file wasn't found, return the file name passed in.
642642
return pszFileName;

cocos2dx/platform/mac/CCGL.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ THE SOFTWARE.
3535
#define glDeleteVertexArrays glDeleteVertexArraysAPPLE
3636
#define glGenVertexArrays glGenVertexArraysAPPLE
3737
#define glBindVertexArray glBindVertexArrayAPPLE
38+
#define glClearDepthf glClearDepth
39+
#define glDepthRangef glDepthRange
40+
#define glReleaseShaderCompiler(xxx)
3841

3942

4043
#endif // __PLATFORM_MAC_CCGL_H__

0 commit comments

Comments
 (0)