├── .DS_Store ├── .gitignore ├── Classes ├── AppDelegate.cpp ├── AppDelegate.h ├── CurlDown.cpp ├── CurlDown.h ├── HelloWorldScene.cpp └── HelloWorldScene.h ├── README.md ├── Resources ├── CloseNormal.png ├── CloseSelected.png ├── HelloWorld.png └── fonts │ ├── Marker Felt.ttf │ └── arial.ttf ├── proj.android ├── .DS_Store ├── .classpath ├── .cproject ├── .project ├── AndroidManifest.xml ├── README.md ├── ant.properties ├── build.xml ├── build_native.sh ├── jni │ ├── Android.mk │ ├── Application.mk │ └── hellocpp │ │ └── main.cpp ├── proguard-project.txt ├── project.properties ├── res │ ├── drawable-hdpi │ │ └── icon.png │ ├── drawable-ldpi │ │ └── icon.png │ ├── drawable-mdpi │ │ └── icon.png │ └── values │ │ └── strings.xml └── src │ └── com │ └── vic │ └── bpdownload │ └── BPDownload.java ├── proj.blackberry ├── .cproject ├── .project ├── bar-descriptor.xml ├── empty │ └── empty ├── icon.png └── main.cpp ├── proj.ios ├── .DS_Store ├── AppController.h ├── AppController.mm ├── BPDownload.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ │ └── vic.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata │ │ └── vic.xcuserdatad │ │ └── xcschemes │ │ ├── BPDownload.xcscheme │ │ └── xcschememanagement.plist ├── Default-568h@2x.png ├── Default.png ├── Default@2x.png ├── Icon-114.png ├── Icon-120.png ├── Icon-144.png ├── Icon-152.png ├── Icon-57.png ├── Icon-72.png ├── Icon-76.png ├── Info.plist ├── Prefix.pch ├── RootViewController.h ├── RootViewController.mm └── main.m ├── proj.linux ├── .cproject ├── .project ├── Makefile ├── build.sh └── main.cpp ├── proj.mac ├── AppController.h ├── AppController.mm ├── BPDownload.xcodeproj │ └── project.pbxproj ├── Icon.icns ├── Info.plist ├── Prefix.pch ├── en.lproj │ ├── InfoPlist.strings │ └── MainMenu.xib └── main.m ├── proj.marmalade ├── BPDownload.mkb └── src │ ├── Main.cpp │ └── Main.h ├── proj.tizen ├── .cproject ├── .project ├── README.mdown ├── data │ └── .gitkeep ├── inc │ └── .gitkeep ├── lib │ └── .gitkeep ├── manifest.xml ├── res │ └── .gitkeep ├── shared │ ├── data │ │ └── .gitkeep │ ├── res │ │ └── screen-density-xhigh │ │ │ └── mainmenu.png │ └── trusted │ │ └── .gitkeep └── src │ └── HelloCppEntry.cpp ├── proj.win32 ├── BPDownload.sln ├── BPDownload.vcxproj ├── BPDownload.vcxproj.filters ├── BPDownload.vcxproj.user ├── main.cpp └── main.h ├── proj.winrt ├── App.xaml ├── App.xaml.cpp ├── App.xaml.h ├── Assets │ ├── Logo.png │ ├── SmallLogo.png │ ├── SplashScreen.png │ ├── StoreLogo.png │ └── WideLogo.png ├── BPDownload.sln ├── BPDownload.vcxproj ├── BPDownload.vcxproj.filters ├── BPDownload_2013.sln ├── BPDownload_2013.vcxproj ├── BPDownload_2013.vcxproj.filters ├── Common │ └── StandardStyles.xaml ├── MainPage.xaml ├── MainPage.xaml.cpp ├── MainPage.xaml.h ├── Package.appxmanifest ├── Package_2013.appxmanifest ├── TemporaryKey.pfx ├── pch.cpp └── pch.h └── proj.wp8 ├── Assets ├── AlignmentGrid.png ├── ApplicationIcon.png └── Tiles │ ├── FlipCycleTileLarge.png │ ├── FlipCycleTileMedium.png │ ├── FlipCycleTileSmall.png │ ├── IconicTileMediumLarge.png │ └── IconicTileSmall.png ├── BPDownload.cpp ├── BPDownload.h ├── BPDownload.sln ├── BPDownload.vcxproj ├── BPDownload.vcxproj.filters └── WMAppManifest.xml /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files 2 | *.slo 3 | *.lo 4 | *.o 5 | 6 | # Compiled Dynamic libraries 7 | *.so 8 | *.dylib 9 | 10 | # Compiled Static libraries 11 | *.lai 12 | *.la 13 | *.a 14 | -------------------------------------------------------------------------------- /Classes/AppDelegate.cpp: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "HelloWorldScene.h" 3 | 4 | USING_NS_CC; 5 | 6 | AppDelegate::AppDelegate() { 7 | 8 | } 9 | 10 | AppDelegate::~AppDelegate() 11 | { 12 | } 13 | 14 | bool AppDelegate::applicationDidFinishLaunching() { 15 | // initialize director 16 | CCDirector* pDirector = CCDirector::sharedDirector(); 17 | CCEGLView* pEGLView = CCEGLView::sharedOpenGLView(); 18 | 19 | pDirector->setOpenGLView(pEGLView); 20 | 21 | // turn on display FPS 22 | pDirector->setDisplayStats(true); 23 | 24 | // set FPS. the default value is 1.0/60 if you don't call this 25 | pDirector->setAnimationInterval(1.0 / 60); 26 | 27 | //******************************************************************************************// 28 | //******************************************************************************************// 29 | //********************************** c plus plus tset down *********************************// 30 | //******************************************************************************************// 31 | //******************************************************************************************// 32 | 33 | CCScene *pScene = HelloWorld::scene(); 34 | pDirector->runWithScene(pScene); 35 | 36 | return true; 37 | } 38 | 39 | // This function will be called when the app is inactive. When comes a phone call,it's be invoked too 40 | void AppDelegate::applicationDidEnterBackground() { 41 | CCDirector::sharedDirector()->stopAnimation(); 42 | 43 | // if you use SimpleAudioEngine, it must be pause 44 | // SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic(); 45 | } 46 | 47 | // this function will be called when the app is active again 48 | void AppDelegate::applicationWillEnterForeground() { 49 | CCDirector::sharedDirector()->startAnimation(); 50 | 51 | // if you use SimpleAudioEngine, it must resume here 52 | // SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic(); 53 | } 54 | -------------------------------------------------------------------------------- /Classes/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #ifndef _APP_DELEGATE_H_ 2 | #define _APP_DELEGATE_H_ 3 | 4 | #include "cocos2d.h" 5 | 6 | /** 7 | @brief The cocos2d Application. 8 | 9 | The reason for implement as private inheritance is to hide some interface call by CCDirector. 10 | */ 11 | class AppDelegate : private cocos2d::CCApplication 12 | { 13 | public: 14 | AppDelegate(); 15 | virtual ~AppDelegate(); 16 | 17 | /** 18 | @brief Implement CCDirector and CCScene init code here. 19 | @return true Initialize success, app continue. 20 | @return false Initialize failed, app terminate. 21 | */ 22 | virtual bool applicationDidFinishLaunching(); 23 | 24 | /** 25 | @brief The function be called when the application enter background 26 | @param the pointer of the application 27 | */ 28 | virtual void applicationDidEnterBackground(); 29 | 30 | /** 31 | @brief The function be called when the application enter foreground 32 | @param the pointer of the application 33 | */ 34 | virtual void applicationWillEnterForeground(); 35 | }; 36 | 37 | #endif // _APP_DELEGATE_H_ 38 | 39 | -------------------------------------------------------------------------------- /Classes/CurlDown.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // CurlDown.cpp 3 | // muli_download 4 | // 5 | // Created by vin on 14-3-24. 6 | // 7 | // 8 | 9 | #include "CurlDown.h" 10 | static pthread_mutex_t g_downloadMutex_1; 11 | 12 | CurlDown::~CurlDown(){ 13 | mFileLenth = 0; 14 | } 15 | CurlDown::CurlDown():isStop(false),mDownloadUrl(""),timeout(2){ // test timeout 2 seconds. if release timeout 20 seconds 16 | mFileLenth = 0; 17 | mFilePath = ""; 18 | pthread_mutex_init(&g_downloadMutex_1, NULL); 19 | } 20 | CurlDown::CurlDown(string downUrl,string filePath):mFileLenth(0),isStop(false),mDownloadUrl(downUrl),timeout(2),mFilePath(filePath){ // test timeout 2 seconds. if release timeout 20 seconds 21 | mDownloadUrl = downUrl; 22 | pthread_mutex_init(&g_downloadMutex_1, NULL); 23 | } 24 | 25 | void CurlDown::setDelegate(CurlDownDelegate * delegate) { 26 | mDelegate = delegate; 27 | } 28 | 29 | 30 | 31 | #pragma mark- 控制方法 32 | void CurlDown::downloadControler() { 33 | CCLog("--1-"); 34 | mFileLenth = getDownloadFileLenth(); // 获取远程文件大小 35 | if (mFileLenth <= 0) { 36 | cout << "download file fail..." << endl; 37 | mDelegate->onError(kNetwork); 38 | return; 39 | } 40 | vector searchPaths = CCFileUtils::sharedFileUtils()->getSearchPaths(); 41 | vector::iterator iter = searchPaths.begin(); 42 | searchPaths.insert(iter, mFilePath); 43 | CCFileUtils::sharedFileUtils()->setSearchPaths(searchPaths); 44 | 45 | CCLog("--2-mFileLenth:%f",mFileLenth); 46 | mFileName = mDownloadUrl.substr(mDownloadUrl.rfind('/') + 1); 47 | CCLog("--3-"); 48 | CCLog("mFileName:%s;",mFileName.c_str()); 49 | // mFilePath = CCFileUtils::sharedFileUtils()->getWritablePath(); 50 | // CCLog("--5-"); 51 | mFilePath = mFilePath + mFileName; 52 | CCLog("mFilePath:%s",mFilePath.c_str()); 53 | CCLog("--6-"); 54 | bool ret = false; 55 | while (true){ // 循环下载 每30秒进行下载 避免断网情况 56 | ret = download(); //直接下载 进行堵塞线程 57 | CCLog("----stop---%s------",isStop?"true":"false"); 58 | if (isStop) { // 如果进行停止 break 59 | CCLog("----stop---------"); 60 | break; 61 | } 62 | if (ret ){ //下载完成 63 | break; 64 | } 65 | sleep(0.5); //每次下载中间间隔0.5秒 66 | } 67 | 68 | if (ret) { 69 | CCLog("download ok"); 70 | mDelegate->onSuccess(mFilePath); 71 | } else { 72 | CCLog("download fail"); 73 | mDelegate->onError(kUncompress); 74 | } 75 | } 76 | 77 | void CurlDown::setStopDown(){ 78 | pthread_mutex_lock(&g_downloadMutex_1); 79 | isStop = true; 80 | pthread_mutex_unlock(&g_downloadMutex_1); 81 | CCLog("----stop-lll--%s------",isStop?"true":"false"); 82 | } 83 | 84 | #pragma mark 进行文件写入本地回调函数 85 | static size_t my_write_func(void *ptr, size_t size, size_t nmemb, void *userdata) { 86 | FILE *fp = (FILE*)userdata; 87 | size_t written = fwrite(ptr, size, nmemb, fp); 88 | return written; 89 | } 90 | #pragma mark 下载进度函数 - 每次下载大小 不是总的大小 91 | static int my_progress_func(void *ptr, double totalToDownload, double nowDownloaded, double totalToUpLoad, double nowUpLoaded) { 92 | // double curpercent = nowDownloaded / totalToDownload *100;//2001619 93 | // if (totalToDownload == 0) { 94 | // return 0; 95 | // } 96 | // CCLog("nowDd:%d; totalDown:%d; downProgress:%.2f%%",(int)nowDownloaded,(int)totalToDownload,curpercent); 97 | // 下载总值 上面注释的如果进入续传就不准确了 98 | CurlDown* curlDown = (CurlDown*)ptr; 99 | if(!curlDown || curlDown->mFileLenth == 0 || nowDownloaded == 0) return 0; 100 | double nowDown = (curlDown->mFileLenth - totalToDownload + nowDownloaded); 101 | double curpercent = nowDown / curlDown->mFileLenth * 100; // 2001619 102 | 103 | curlDown->mDelegate->onProgress(curpercent,ptr, curlDown->mFilePath); 104 | // CCLog("nowDd:%d; totalDown:%d; downProgress:%.2f%%",(int)(curlDown->mFileLenth - totalToDownload + nowDownloaded),(int)curlDown->mFileLenth , curpercent); 105 | return 0; 106 | } 107 | 108 | //fopen函数调用如下: 109 | //fopen(“文件名”,“使用文件方式”); 110 | //r:只读; 111 | //w:只写; 112 | //r+:允许读写; 113 | //w+:允许读写; 114 | //a:向文本文件末添加数据; 115 | //a+:向文本文件末添加数据,允许读; 116 | //rb:只读二进制文件; 117 | //wb:只写二进制文件; 118 | //rb+:只读二进制文件,允许写; 119 | //wb+:只写二进制文件,允许读; 120 | //ab:向二进制文件末添加数据; 121 | //ab+:向二进制文件末添加数据,允许读; 122 | long CurlDown::getLocalFileLength() { 123 | FILE *fp = fopen(mFilePath.c_str(), "r"); 124 | fseek(fp, 0, SEEK_END); 125 | long length = ftell(fp); 126 | fclose(fp); 127 | return length; 128 | } 129 | 130 | #pragma mark 进行下载 131 | bool CurlDown::download() { 132 | FILE *fp = NULL; 133 | if(access(mFilePath.c_str(), 0)==0) { // 以二进制形式追加 134 | fp = fopen(mFilePath.c_str(), "ab+"); 135 | } else { // 二进制写 136 | fp = fopen(mFilePath.c_str(), "wb"); 137 | } 138 | 139 | if (fp == NULL) {// 如果文件初始化失败进行返回 140 | return false; 141 | } 142 | 143 | // 读取本地文件下载大小 144 | long localFileLenth = getLocalFileLength(); //已经下载的大小 145 | CCLog("filePath:%s;leng:%ld",mFilePath.c_str() , localFileLenth ); //4397779 //3377875 146 | 147 | CURL *handle = curl_easy_init(); 148 | std::string packageUrl = mDownloadUrl; //下载地址+下载文件名 149 | curl_easy_setopt(handle, CURLOPT_URL, packageUrl.c_str()); // http://curl.haxx.se/libcurl/c/fopen.html 150 | curl_easy_setopt(handle, CURLOPT_TIMEOUT, timeout); 151 | curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, my_write_func); //写文件回调方法 152 | curl_easy_setopt(handle, CURLOPT_WRITEDATA, fp); // 写入文件对象 153 | curl_easy_setopt(handle, CURLOPT_RESUME_FROM, localFileLenth); // 从本地大小位置进行请求数据 154 | // curl_easy_setopt(handle, CURLOPT_RESUME_FROM_LARGE, localFileLenth); // 坑 155 | curl_easy_setopt(handle, CURLOPT_NOPROGRESS, 0L); 156 | curl_easy_setopt(handle, CURLOPT_PROGRESSFUNCTION, my_progress_func ); //下载进度回调方法 157 | curl_easy_setopt(handle, CURLOPT_PROGRESSDATA, this); // 传入本类对象 158 | 159 | CURLcode res = curl_easy_perform(handle); 160 | fclose(fp); 161 | return res == CURLE_OK; 162 | } 163 | 164 | /* 得到远程文件的大小, 要下载的文件大小 */ // 参考的那个不对 获取不到大小 165 | long CurlDown::getDownloadFileLenth(){ 166 | // double filesize = 0.0; 167 | CURL *handle = curl_easy_init(); 168 | // http://curl.haxx.se/libcurl/c/ftpgetinfo.html 169 | // curl_easy_setopt(curl, CURLOPT_URL, ftpurl); 170 | // /* No download if the file */ 171 | // curl_easy_setopt(curl, CURLOPT_NOBODY, 1L); 172 | // /* Ask for filetime */ 173 | // curl_easy_setopt(curl, CURLOPT_FILETIME, 1L); 174 | // /* No header output: TODO 14.1 http-style HEAD output for ftp */ 175 | // curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, throw_away); 176 | // curl_easy_setopt(curl, CURLOPT_HEADER, 0L); 177 | // /* Switch on full protocol/debug output */ 178 | // /* curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); */ 179 | 180 | curl_easy_setopt(handle, CURLOPT_URL, mDownloadUrl.c_str()); 181 | /* No download if the file */ 182 | curl_easy_setopt(handle, CURLOPT_NOBODY, 1L); 183 | /* Ask for filetime */ 184 | curl_easy_setopt(handle, CURLOPT_HEADER, 0L); // 0 不打印日志 1打印日志 185 | 186 | if (curl_easy_perform(handle) == CURLE_OK) { 187 | curl_easy_getinfo(handle, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &mFileLenth); 188 | printf("filesize : %0.0f bytes\n", mFileLenth); 189 | } else { 190 | mFileLenth = -1; 191 | } 192 | return mFileLenth; 193 | } -------------------------------------------------------------------------------- /Classes/CurlDown.h: -------------------------------------------------------------------------------- 1 | // 2 | // CurlDown.h 3 | // muli_download 4 | // 5 | // Created by vin on 14-3-24. 6 | // 7 | // 8 | 9 | #ifndef __muli_download__CurlDown__ 10 | #define __muli_download__CurlDown__ 11 | 12 | #include 13 | #include "cocos2d.h" 14 | #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) 15 | #include "../cocos2dx/platform/third_party/win32/curl/curl.h" 16 | #else 17 | #include "curl/curl.h" 18 | #endif 19 | #include 20 | using namespace cocos2d; 21 | using namespace std; 22 | USING_NS_CC; 23 | 24 | class CurlDownDelegate; 25 | 26 | class CurlDown : public CCObject { 27 | private: 28 | string mFileName; // 下载文件名称 29 | bool isStop; 30 | public: 31 | ~CurlDown(); 32 | CurlDown(); 33 | CurlDown(string downUrl,string filePath); 34 | 35 | string mFilePath; // 本地存储地址 36 | double mFileLenth; // 下载文件大小 37 | string mDownloadUrl; // 下载URL 38 | long timeout; // 请求超时时间 为了测试用 设置超时时间为2秒 如果是发正式版本 改为20秒超时时间 39 | bool download(); // 下载方法 40 | long getDownloadFileLenth(); // 下载文件大小方法 41 | void downloadControler(); // 下载控制方法 42 | long getLocalFileLength(); // 当前下载文件大小 43 | 44 | void setStopDown();// 停止下载 45 | void setDelegate(CurlDownDelegate * delegate); 46 | CurlDownDelegate *mDelegate; 47 | 48 | 49 | enum ErrorCode 50 | { 51 | // Error caused by creating a file to store downloaded data 52 | kCreateFile, 53 | /** Error caused by network 54 | -- network unavaivable 55 | -- timeout 56 | -- ... 57 | */ 58 | kNetwork, 59 | /** There is not a new version 60 | */ 61 | kNoNewVersion, 62 | /** Error caused in uncompressing stage 63 | -- can not open zip file 64 | -- can not read file global information 65 | -- can not read file information 66 | -- can not create a directory 67 | -- ... 68 | */ 69 | kUncompress, 70 | }; 71 | }; 72 | 73 | class CurlDownDelegate 74 | { 75 | public: 76 | /* @brief Call back function for error 77 | @param errorCode Type of error 78 | */ 79 | virtual void onError(CurlDown::ErrorCode errorCode) {}; 80 | /** @brief Call back function for recording downloading percent 81 | @param percent How much percent downloaded 82 | @warn This call back function just for recording downloading percent. 83 | AssetsManager will do some other thing after downloading, you should 84 | write code in onSuccess() after downloading. 85 | */ 86 | virtual void onProgress(double percent, void *delegate, string filefullPath) {}; 87 | /** @brief Call back function for success 88 | */ 89 | virtual void onSuccess(string filefullPath) {}; 90 | }; 91 | 92 | #endif /* defined(__muli_download__CurlDown__) */ 93 | -------------------------------------------------------------------------------- /Classes/HelloWorldScene.cpp: -------------------------------------------------------------------------------- 1 | #include "HelloWorldScene.h" 2 | USING_NS_CC; 3 | 4 | using namespace cocos2d; 5 | 6 | static pthread_mutex_t g_downloadMutex; 7 | 8 | 9 | CCScene* HelloWorld::scene() { 10 | CCScene *scene = CCScene::create(); 11 | HelloWorld *layer = HelloWorld::create(); 12 | scene->addChild(layer); 13 | return scene; 14 | } 15 | 16 | bool HelloWorld::init() { 17 | if ( !CCLayer::init() ) { 18 | return false; 19 | } 20 | CCSize size = CCDirector::sharedDirector()->getWinSize(); 21 | 22 | CCMenu* pMenu = CCMenu::create(); 23 | pMenu->setPosition( CCPointZero ); 24 | this->addChild(pMenu, 1); 25 | // down start 26 | CCMenuItemFont * btnDownStart = CCMenuItemFont::create("down start", this, menu_selector(HelloWorld::menuCallback)); 27 | btnDownStart->setPosition(ccp(size.width / 2 - 200, size.height/2 + 50)); 28 | btnDownStart->setTag(1); 29 | pMenu->addChild(btnDownStart); 30 | // down stop 31 | CCMenuItemFont * btnDownStop = CCMenuItemFont::create("down stop", this, menu_selector(HelloWorld::menuCallback)); 32 | btnDownStop->setPosition(ccp(size.width / 2 - 200, size.height/2 - 50)); 33 | btnDownStop->setTag(2); 34 | pMenu->addChild(btnDownStop); 35 | // down stop 36 | CCMenuItemFont * btnDownFileDel = CCMenuItemFont::create("down file del", this, menu_selector(HelloWorld::menuCallback)); 37 | btnDownFileDel->setPosition(ccp(size.width / 2 - 200, size.height/2 - 150)); 38 | btnDownFileDel->setTag(3); 39 | pMenu->addChild(btnDownFileDel); 40 | // down Progress 41 | lblDownProgress = CCLabelTTF::create("down Progress", "Thonburi", 34); 42 | lblDownProgress->setPosition( ccp(size.width / 2 + 100, size.height/2) ); 43 | lblDownProgress->setAnchorPoint(ccp(0.5, 0.5)); 44 | this->addChild(lblDownProgress, 2); 45 | downFilePath = CCFileUtils::sharedFileUtils()->getWritablePath(); 46 | CCLog("path:%s",(CCFileUtils::sharedFileUtils()->getWritablePath()+"dafa.zip").c_str()); 47 | return true; 48 | } 49 | 50 | void HelloWorld::menuCallback(CCObject* pSender) { 51 | CCMenuItem *item = (CCMenuItem *)pSender; 52 | switch (item->getTag()) { 53 | case 1: // down start 54 | downFilePath = CCFileUtils::sharedFileUtils()->getWritablePath(); 55 | CCDirector::sharedDirector()->getScheduler()->scheduleSelector(schedule_selector(HelloWorld::updateUI), this, 0, false); // HttpClient中参考 56 | isStop = false; 57 | this->threadStart(); 58 | break; 59 | case 2: // down stop 60 | isStop = true; 61 | break; 62 | case 3: 63 | if (isStop) { 64 | CCLog("downFilePath:%s",downFilePath.c_str()); 65 | if (access(downFilePath.c_str(), 0) == 0) { 66 | remove(downFilePath.c_str()); 67 | CCMessageBox("删除成功", "温馨提示"); 68 | }else{ 69 | CCMessageBox("没有找到文件目录", "温馨提示"); 70 | } 71 | }else{ 72 | CCMessageBox("下载中或没有文件下载", "温馨提示"); 73 | } 74 | 75 | break; 76 | default: 77 | break; 78 | } 79 | } 80 | 81 | //int ii =0; 82 | void HelloWorld::updateUI(){ 83 | if(updateStr.empty())return; 84 | lblDownProgress->setString(updateStr.c_str()); 85 | if (updateStr == "success") { 86 | isStop = true; 87 | CCDirector::sharedDirector()->getScheduler()->unscheduleSelector(schedule_selector(HelloWorld::updateUI), this); 88 | } 89 | // CCLog("--progress:%d-",ii++); 90 | } 91 | 92 | // 启动线程的方法 93 | int HelloWorld::threadStart() { 94 | pthread_mutex_init(&g_downloadMutex, NULL); 95 | int errCode=0; 96 | pthread_t th_curlDown; // 线程初始化 97 | do { 98 | pthread_attr_t tAttr; 99 | errCode=pthread_attr_init(&tAttr); 100 | CC_BREAK_IF(errCode!=0); 101 | errCode=pthread_attr_setdetachstate(&tAttr, PTHREAD_CREATE_DETACHED); 102 | if(errCode!=0) { 103 | pthread_attr_destroy(&tAttr); 104 | break; 105 | } 106 | errCode=pthread_create(&th_curlDown, &tAttr, thread_funcation, this); 107 | } while (0); 108 | return errCode; 109 | } 110 | 111 | // 需要线程来完成的功能都写在这个函数里 112 | void* HelloWorld::thread_funcation(void *arg) { 113 | CCLOG("thread started..."); 114 | HelloWorld *hw = (HelloWorld*)arg; 115 | hw->ccc = new CurlDown("http://developer.baidu.com/map/static/doc/output/BaiduMap_AndroidSDK_v2.4.0_All.zip",hw->downFilePath); 116 | // ccc->mDownloadUrl = "http://developer.baidu.com/map/static/doc/output/BaiduMap_AndroidSDK_v2.4.0_All.zip"; 117 | // int leng = ccc->getDownloadFileLenth(); 118 | hw->ccc->setDelegate(hw); 119 | hw->ccc->downloadControler(); 120 | 121 | return NULL; 122 | } 123 | 124 | void HelloWorld::onError(CurlDown::ErrorCode errorCode){ 125 | CCLog("error"); 126 | 127 | pthread_mutex_lock(&g_downloadMutex); 128 | updateStr = "error"; 129 | pthread_mutex_unlock(&g_downloadMutex); 130 | 131 | CCDirector::sharedDirector()->getScheduler()->unscheduleSelector(schedule_selector(HelloWorld::updateUI), this); 132 | } 133 | void HelloWorld::onProgress(double percent, void *delegate, string filefullPath){ // 下载进度 134 | CCLog("donw progress:%.2f%%",percent); 135 | 136 | if (isStop) { 137 | CurlDown * cd = (CurlDown *)delegate; 138 | // pthread_mutex_lock(&g_downloadMutex); 139 | cd->setStopDown(); 140 | // pthread_mutex_unlock(&g_downloadMutex); 141 | } 142 | 143 | pthread_mutex_lock(&g_downloadMutex); 144 | const char * per =CCString::createWithFormat("donw progress:%.2f%%",percent)->getCString(); 145 | updateStr = per; 146 | downFilePath = filefullPath; 147 | pthread_mutex_unlock(&g_downloadMutex); 148 | } 149 | void HelloWorld::onSuccess(string filefullPath){ 150 | CCLog("success"); 151 | 152 | pthread_mutex_lock(&g_downloadMutex); 153 | updateStr = "success"; 154 | downFilePath = filefullPath; 155 | pthread_mutex_unlock(&g_downloadMutex); 156 | } 157 | 158 | void HelloWorld::menuCloseCallback(CCObject* pSender) 159 | { 160 | CCDirector::sharedDirector()->end(); 161 | 162 | #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) 163 | exit(0); 164 | #endif 165 | } 166 | -------------------------------------------------------------------------------- /Classes/HelloWorldScene.h: -------------------------------------------------------------------------------- 1 | #ifndef __HELLOWORLD_SCENE_H__ 2 | #define __HELLOWORLD_SCENE_H__ 3 | 4 | #include "cocos2d.h" 5 | 6 | #include 7 | #include "CurlDown.h" 8 | 9 | class HelloWorld : public cocos2d::CCLayer,CurlDownDelegate 10 | { 11 | private: 12 | CCLabelTTF* lblDownProgress; 13 | string updateStr; 14 | bool isStop; 15 | public: 16 | CurlDown *ccc; 17 | virtual bool init(); 18 | 19 | static cocos2d::CCScene* scene(); 20 | 21 | // a selector callback 22 | void menuCloseCallback(CCObject* pSender); 23 | void menuCallback(CCObject* pSender); 24 | // preprocessor macro for "static create()" constructor ( node() deprecated ) 25 | CREATE_FUNC(HelloWorld); 26 | 27 | string downFilePath; 28 | int threadStart();// 启动线程的方法 29 | static void* thread_funcation(void *arg);// 被启动的线程函数,注意必须是静态方法 30 | void updateUI(); // 线程任务调度方法 31 | 32 | // 断点续传 回调方法 33 | virtual void onError(CurlDown::ErrorCode errorCode); 34 | virtual void onProgress(double percent, void *delegate, string filefullPath); 35 | virtual void onSuccess(string filefullPath); 36 | 37 | }; 38 | 39 | #endif // __HELLOWORLD_SCENE_H__ 40 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | BPDownload 2 | ========== 3 | 4 | Breakpoint-continuingly-download-file 这是一个以Cocos2d-x c++ 断点续传功能下载文件的项目源码 This is a Cocos2d-x c++ source breakpoint continuingly functions download file project 5 | 6 | my blog article -> http://blog.csdn.net/vpingchangxin/article/details/22309067 7 | -------------------------------------------------------------------------------- /Resources/CloseNormal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/Resources/CloseNormal.png -------------------------------------------------------------------------------- /Resources/CloseSelected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/Resources/CloseSelected.png -------------------------------------------------------------------------------- /Resources/HelloWorld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/Resources/HelloWorld.png -------------------------------------------------------------------------------- /Resources/fonts/Marker Felt.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/Resources/fonts/Marker Felt.ttf -------------------------------------------------------------------------------- /Resources/fonts/arial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/Resources/fonts/arial.ttf -------------------------------------------------------------------------------- /proj.android/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.android/.DS_Store -------------------------------------------------------------------------------- /proj.android/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /proj.android/.cproject: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 30 | 33 | 34 | 35 | 45 | 48 | 49 | 50 | 51 | 61 | 64 | 65 | 66 | 67 | 75 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /proj.android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | BPDownload 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 25 | clean,full,incremental, 26 | 27 | 28 | ?name? 29 | 30 | 31 | 32 | org.eclipse.cdt.make.core.append_environment 33 | true 34 | 35 | 36 | org.eclipse.cdt.make.core.autoBuildTarget 37 | all 38 | 39 | 40 | org.eclipse.cdt.make.core.buildArguments 41 | -C ${ProjDirPath} NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt -j2 42 | 43 | 44 | org.eclipse.cdt.make.core.buildCommand 45 | ${ProjDirPath}/ANDROID_NDK/ndk-build 46 | 47 | 48 | org.eclipse.cdt.make.core.cleanBuildTarget 49 | clean 50 | 51 | 52 | org.eclipse.cdt.make.core.contents 53 | org.eclipse.cdt.make.core.activeConfigSettings 54 | 55 | 56 | org.eclipse.cdt.make.core.enableAutoBuild 57 | false 58 | 59 | 60 | org.eclipse.cdt.make.core.enableCleanBuild 61 | true 62 | 63 | 64 | org.eclipse.cdt.make.core.enableFullBuild 65 | true 66 | 67 | 68 | org.eclipse.cdt.make.core.fullBuildTarget 69 | all 70 | 71 | 72 | org.eclipse.cdt.make.core.stopOnError 73 | true 74 | 75 | 76 | org.eclipse.cdt.make.core.useDefaultBuildCmd 77 | false 78 | 79 | 80 | 81 | 82 | com.android.ide.eclipse.adt.ApkBuilder 83 | 84 | 85 | 86 | 87 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 88 | full,incremental, 89 | 90 | 91 | 92 | 93 | 94 | com.android.ide.eclipse.adt.AndroidNature 95 | org.eclipse.jdt.core.javanature 96 | org.eclipse.cdt.core.cnature 97 | org.eclipse.cdt.core.ccnature 98 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 99 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 100 | 101 | 102 | 103 | Classes 104 | 2 105 | COCOS2DX/projects/BPDownload/Classes 106 | 107 | 108 | cocos2dx 109 | 2 110 | COCOS2DX/cocos2dx 111 | 112 | 113 | extensions 114 | 2 115 | COCOS2DX/extensions 116 | 117 | 118 | scripting 119 | 2 120 | COCOS2DX/scripting 121 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /proj.android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 12 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /proj.android/README.md: -------------------------------------------------------------------------------- 1 | ## Prerequisites: 2 | 3 | * Android NDK 4 | * Android SDK **OR** Eclipse ADT Bundle 5 | * Android AVD target installed 6 | 7 | ## Building project 8 | 9 | There are two ways of building Android projects. 10 | 11 | 1. Eclipse 12 | 2. Command Line 13 | 14 | ### Import Project in Eclipse 15 | 16 | #### Features: 17 | 18 | 1. Complete workflow from Eclipse, including: 19 | * Build C++. 20 | * Clean C++. 21 | * Build and Run whole project. 22 | * Logcat view. 23 | * Debug Java code. 24 | * Javascript editor. 25 | * Project management. 26 | 2. True C++ editing, including: 27 | * Code completion. 28 | * Jump to definition. 29 | * Refactoring tools etc. 30 | * Quick open C++ files. 31 | 32 | 33 | #### Setup Eclipse Environment (only once) 34 | 35 | 36 | **NOTE:** This step needs to be done only once to setup the Eclipse environment for cocos2d-x projects. Skip this section if you've done this before. 37 | 38 | 1. Download Eclipse ADT bundle from [Google ADT homepage](http://developer.android.com/sdk/index.html) 39 | 40 | **OR** 41 | 42 | Install Eclipse with Java. Add ADT and CDT plugins. 43 | 44 | 2. Only for Windows 45 | 1. Install [Cygwin](http://www.cygwin.com/) with make (select make package from the list during the install). 46 | 2. Add `Cygwin\bin` directory to system PATH variable. 47 | 3. Add this line `none /cygdrive cygdrive binary,noacl,posix=0,user 0 0` to `Cygwin\etc\fstab` file. 48 | 49 | 3. Set up Variables: 50 | 1. Path Variable `COCOS2DX`: 51 | * Eclipse->Preferences->General->Workspace->**Linked Resources** 52 | * Click **New** button to add a Path Variable `COCOS2DX` pointing to the root cocos2d-x directory. 53 | ![Example](https://lh5.googleusercontent.com/-oPpk9kg3e5w/UUOYlq8n7aI/AAAAAAAAsdQ/zLA4eghBH9U/s400/cocos2d-x-eclipse-vars.png) 54 | 55 | 2. C/C++ Environment Variable `NDK_ROOT`: 56 | * Eclipse->Preferences->C/C++->Build->**Environment**. 57 | * Click **Add** button and add a new variable `NDK_ROOT` pointing to the root NDK directory. 58 | ![Example](https://lh3.googleusercontent.com/-AVcY8IAT0_g/UUOYltoRobI/AAAAAAAAsdM/22D2J9u3sig/s400/cocos2d-x-eclipse-ndk.png) 59 | * Only for Windows: Add new variables **CYGWIN** with value `nodosfilewarning` and **SHELLOPTS** with value `igncr` 60 | 61 | 4. Import libcocos2dx library project: 62 | 1. File->New->Project->Android Project From Existing Code. 63 | 2. Click **Browse** button and open `cocos2d-x/cocos2dx/platform/android/java` directory. 64 | 3. Click **Finish** to add project. 65 | 66 | #### Adding and running from Eclipse 67 | 68 | ![Example](https://lh3.googleusercontent.com/-SLBOu6e3QbE/UUOcOXYaGqI/AAAAAAAAsdo/tYBY2SylOSM/s288/cocos2d-x-eclipse-project-from-code.png) ![Import](https://lh5.googleusercontent.com/-XzC9Pn65USc/UUOcOTAwizI/AAAAAAAAsdk/4b6YM-oim9Y/s400/cocos2d-x-eclipse-import-project.png) 69 | 70 | 1. File->New->Project->Android Project From Existing Code 71 | 2. **Browse** to your project directory. eg: `cocos2d-x/cocos2dx/samples/Cpp/TestCpp/proj.android/` 72 | 3. Add the project 73 | 4. Click **Run** or **Debug** to compile C++ followed by Java and to run on connected device or emulator. 74 | 75 | 76 | ### Running project from Command Line 77 | 78 | $ cd cocos2d-x/samples/Cpp/TestCpp/proj.android/ 79 | $ export NDK_ROOT=/path/to/ndk 80 | $ ./build_native.sh 81 | $ ant debug install 82 | 83 | If the last command results in sdk.dir missing error then do: 84 | 85 | $ android list target 86 | $ android update project -p . -t (id from step 6) 87 | $ android update project -p cocos2d-x/cocos2dx/platform/android/java/ -t (id from step 6) 88 | -------------------------------------------------------------------------------- /proj.android/ant.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked into Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /proj.android/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 29 | 30 | 31 | 40 | 41 | 42 | 43 | 47 | 48 | 60 | 61 | 62 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /proj.android/build_native.sh: -------------------------------------------------------------------------------- 1 | APPNAME="BPDownload" 2 | 3 | # options 4 | 5 | buildexternalsfromsource= 6 | 7 | usage(){ 8 | cat << EOF 9 | usage: $0 [options] 10 | 11 | Build C/C++ code for $APPNAME using Android NDK 12 | 13 | OPTIONS: 14 | -s Build externals from source 15 | -h this help 16 | EOF 17 | } 18 | 19 | while getopts "sh" OPTION; do 20 | case "$OPTION" in 21 | s) 22 | buildexternalsfromsource=1 23 | ;; 24 | h) 25 | usage 26 | exit 0 27 | ;; 28 | esac 29 | done 30 | 31 | # paths 32 | 33 | if [ -z "${NDK_ROOT+aaa}" ];then 34 | echo "please define NDK_ROOT" 35 | exit 1 36 | fi 37 | 38 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 39 | # ... use paths relative to current directory 40 | COCOS2DX_ROOT="$DIR/../../.." 41 | APP_ROOT="$DIR/.." 42 | APP_ANDROID_ROOT="$DIR" 43 | 44 | echo "NDK_ROOT = $NDK_ROOT" 45 | echo "COCOS2DX_ROOT = $COCOS2DX_ROOT" 46 | echo "APP_ROOT = $APP_ROOT" 47 | echo "APP_ANDROID_ROOT = $APP_ANDROID_ROOT" 48 | 49 | # make sure assets is exist 50 | if [ -d "$APP_ANDROID_ROOT"/assets ]; then 51 | rm -rf "$APP_ANDROID_ROOT"/assets 52 | fi 53 | 54 | mkdir "$APP_ANDROID_ROOT"/assets 55 | 56 | # copy resources 57 | for file in "$APP_ROOT"/Resources/* 58 | do 59 | if [ -d "$file" ]; then 60 | cp -rf "$file" "$APP_ANDROID_ROOT"/assets 61 | fi 62 | 63 | if [ -f "$file" ]; then 64 | cp "$file" "$APP_ANDROID_ROOT"/assets 65 | fi 66 | done 67 | 68 | # run ndk-build 69 | if [[ "$buildexternalsfromsource" ]]; then 70 | echo "Building external dependencies from source" 71 | "$NDK_ROOT"/ndk-build -C "$APP_ANDROID_ROOT" $* \ 72 | "NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/source" 73 | else 74 | echo "Using prebuilt externals" 75 | "$NDK_ROOT"/ndk-build -C "$APP_ANDROID_ROOT" $* \ 76 | "NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt" 77 | fi 78 | -------------------------------------------------------------------------------- /proj.android/jni/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := cocos2dcpp_shared 6 | 7 | LOCAL_MODULE_FILENAME := libcocos2dcpp 8 | 9 | LOCAL_SRC_FILES := hellocpp/main.cpp \ 10 | ../../Classes/AppDelegate.cpp \ 11 | ../../Classes/HelloWorldScene.cpp \ 12 | ../../Classes/CurlDown.cpp 13 | 14 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes 15 | 16 | LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dx_static 17 | LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static 18 | LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static 19 | LOCAL_WHOLE_STATIC_LIBRARIES += chipmunk_static 20 | LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static 21 | 22 | include $(BUILD_SHARED_LIBRARY) 23 | 24 | $(call import-module,cocos2dx) 25 | $(call import-module,cocos2dx/platform/third_party/android/prebuilt/libcurl) 26 | $(call import-module,CocosDenshion/android) 27 | $(call import-module,extensions) 28 | $(call import-module,external/Box2D) 29 | $(call import-module,external/chipmunk) 30 | -------------------------------------------------------------------------------- /proj.android/jni/Application.mk: -------------------------------------------------------------------------------- 1 | APP_STL := gnustl_static 2 | APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -DCOCOS2D_DEBUG=1 3 | -------------------------------------------------------------------------------- /proj.android/jni/hellocpp/main.cpp: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "cocos2d.h" 3 | #include "CCEventType.h" 4 | #include "platform/android/jni/JniHelper.h" 5 | #include 6 | #include 7 | 8 | #define LOG_TAG "main" 9 | #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__) 10 | 11 | using namespace cocos2d; 12 | 13 | extern "C" 14 | { 15 | 16 | jint JNI_OnLoad(JavaVM *vm, void *reserved) 17 | { 18 | JniHelper::setJavaVM(vm); 19 | 20 | return JNI_VERSION_1_4; 21 | } 22 | 23 | void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thiz, jint w, jint h) 24 | { 25 | if (!CCDirector::sharedDirector()->getOpenGLView()) 26 | { 27 | CCEGLView *view = CCEGLView::sharedOpenGLView(); 28 | view->setFrameSize(w, h); 29 | 30 | AppDelegate *pAppDelegate = new AppDelegate(); 31 | CCApplication::sharedApplication()->run(); 32 | } 33 | else 34 | { 35 | ccGLInvalidateStateCache(); 36 | CCShaderCache::sharedShaderCache()->reloadDefaultShaders(); 37 | ccDrawInit(); 38 | CCTextureCache::reloadAllTextures(); 39 | CCNotificationCenter::sharedNotificationCenter()->postNotification(EVENT_COME_TO_FOREGROUND, NULL); 40 | CCDirector::sharedDirector()->setGLDefaultValues(); 41 | } 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /proj.android/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /proj.android/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-17 12 | 13 | android.library.reference.1=../../../cocos2dx/platform/android/java 14 | -------------------------------------------------------------------------------- /proj.android/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.android/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /proj.android/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.android/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /proj.android/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.android/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /proj.android/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | BPDownload 4 | 5 | -------------------------------------------------------------------------------- /proj.android/src/com/vic/bpdownload/BPDownload.java: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2011 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | package com.vic.bpdownload; 25 | 26 | import org.cocos2dx.lib.Cocos2dxActivity; 27 | import org.cocos2dx.lib.Cocos2dxGLSurfaceView; 28 | 29 | import android.os.Bundle; 30 | 31 | public class BPDownload extends Cocos2dxActivity{ 32 | 33 | protected void onCreate(Bundle savedInstanceState){ 34 | super.onCreate(savedInstanceState); 35 | } 36 | 37 | public Cocos2dxGLSurfaceView onCreateView() { 38 | Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this); 39 | // BPDownload should create stencil buffer 40 | glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); 41 | 42 | return glSurfaceView; 43 | } 44 | 45 | static { 46 | System.loadLibrary("cocos2dcpp"); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /proj.blackberry/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | BPDownload 4 | 5 | 6 | Box2D 7 | chipmunk 8 | cocos2dx 9 | CocosDenshion 10 | extensions 11 | 12 | 13 | 14 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 15 | clean,full,incremental, 16 | 17 | 18 | ?name? 19 | 20 | 21 | 22 | org.eclipse.cdt.make.core.append_environment 23 | true 24 | 25 | 26 | org.eclipse.cdt.make.core.buildArguments 27 | 28 | 29 | 30 | org.eclipse.cdt.make.core.buildCommand 31 | make 32 | 33 | 34 | org.eclipse.cdt.make.core.buildLocation 35 | ${workspace_loc:/BPDownload/Device-Debug} 36 | 37 | 38 | org.eclipse.cdt.make.core.contents 39 | org.eclipse.cdt.make.core.activeConfigSettings 40 | 41 | 42 | org.eclipse.cdt.make.core.enableAutoBuild 43 | false 44 | 45 | 46 | org.eclipse.cdt.make.core.enableCleanBuild 47 | true 48 | 49 | 50 | org.eclipse.cdt.make.core.enableFullBuild 51 | true 52 | 53 | 54 | org.eclipse.cdt.make.core.stopOnError 55 | true 56 | 57 | 58 | org.eclipse.cdt.make.core.useDefaultBuildCmd 59 | true 60 | 61 | 62 | 63 | 64 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 65 | full,incremental, 66 | 67 | 68 | 69 | 70 | com.qnx.tools.bbt.xml.core.bbtXMLValidationBuilder 71 | 72 | 73 | 74 | 75 | 76 | org.eclipse.cdt.core.cnature 77 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 78 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 79 | com.qnx.tools.ide.bbt.core.bbtnature 80 | org.eclipse.cdt.core.ccnature 81 | 82 | 83 | 84 | Classes 85 | 2 86 | PARENT-1-PROJECT_LOC/Classes 87 | 88 | 89 | Resources 90 | 2 91 | PARENT-1-PROJECT_LOC/Resources 92 | 93 | 94 | 95 | 96 | 1345434891844 97 | Classes/ExtensionsTest 98 | 10 99 | 100 | org.eclipse.ui.ide.multiFilter 101 | 1.0-name-matches-true-false-EditBoxTest 102 | 103 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /proj.blackberry/bar-descriptor.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 12 | com.vic.bpdownload 13 | 14 | 16 | BPDownload 17 | 18 | 21 | 1.0.0 22 | 23 | 25 | 1 26 | 27 | 28 | 29 | 30 | 32 | The BPDownload Application 33 | 34 | 35 | 36 | 37 | 38 | Example Inc. 39 | 40 | 41 | 42 | 43 | 44 | none 45 | false 46 | 47 | 48 | 49 | core.games 50 | icon.png 51 | Resources 52 | 53 | 54 | 55 | 56 | armle-v7 57 | lib/libCocosDenshion.so 58 | BPDownload 59 | 60 | 61 | armle-v7 62 | lib/libCocosDenshion.so 63 | BPDownload 64 | 65 | 66 | armle-v7 67 | lib/libCocosDenshion.so 68 | BPDownload 69 | 70 | 71 | armle-v7 72 | lib/libCocosDenshion.so 73 | BPDownload 74 | 75 | 76 | x86 77 | lib/libCocosDenshion.so 78 | BPDownload 79 | 80 | 81 | x86 82 | lib/libCocosDenshion.so 83 | BPDownload 84 | 85 | 86 | x86 87 | lib/libCocosDenshion.so 88 | BPDownload 89 | 90 | 91 | 92 | 93 | icon.png 94 | 95 | 96 | 97 | 98 | 99 | 100 | run_native 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /proj.blackberry/empty/empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.blackberry/empty/empty -------------------------------------------------------------------------------- /proj.blackberry/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.blackberry/icon.png -------------------------------------------------------------------------------- /proj.blackberry/main.cpp: -------------------------------------------------------------------------------- 1 | #include "cocos2d.h" 2 | #include "AppDelegate.h" 3 | 4 | USING_NS_CC; 5 | 6 | int main(int argc, char **argv) 7 | { 8 | // create the application instance 9 | AppDelegate app; 10 | 11 | int width, height; 12 | const char *width_str, *height_str; 13 | width_str = getenv("WIDTH"); 14 | height_str = getenv("HEIGHT"); 15 | if (width_str && height_str) 16 | { 17 | width = atoi(width_str); 18 | height = atoi(height_str); 19 | } 20 | else 21 | { 22 | width = 1024; 23 | height = 600; 24 | } 25 | 26 | CCEGLView* eglView = CCEGLView::sharedOpenGLView(); 27 | eglView->setFrameSize(width, height); 28 | 29 | return CCApplication::sharedApplication()->run(); 30 | } 31 | -------------------------------------------------------------------------------- /proj.ios/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.ios/.DS_Store -------------------------------------------------------------------------------- /proj.ios/AppController.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class RootViewController; 4 | 5 | @interface AppController : NSObject { 6 | UIWindow *window; 7 | RootViewController *viewController; 8 | } 9 | 10 | @end 11 | 12 | -------------------------------------------------------------------------------- /proj.ios/AppController.mm: -------------------------------------------------------------------------------- 1 | #import "AppController.h" 2 | #import "EAGLView.h" 3 | #import "cocos2d.h" 4 | #import "AppDelegate.h" 5 | #import "RootViewController.h" 6 | 7 | @implementation AppController 8 | 9 | #pragma mark - 10 | #pragma mark Application lifecycle 11 | 12 | // cocos2d application instance 13 | static AppDelegate s_sharedApplication; 14 | 15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 16 | 17 | // Override point for customization after application launch. 18 | 19 | // Add the view controller's view to the window and display. 20 | window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]]; 21 | 22 | // Init the EAGLView 23 | EAGLView *__glView = [EAGLView viewWithFrame: [window bounds] 24 | pixelFormat: kEAGLColorFormatRGB565 25 | depthFormat: GL_DEPTH24_STENCIL8_OES 26 | preserveBackbuffer: NO 27 | sharegroup: nil 28 | multiSampling: NO 29 | numberOfSamples: 0]; 30 | 31 | // Use RootViewController manage EAGLView 32 | viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil]; 33 | viewController.wantsFullScreenLayout = YES; 34 | viewController.view = __glView; 35 | 36 | // Set RootViewController to window 37 | if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0) 38 | { 39 | // warning: addSubView doesn't work on iOS6 40 | [window addSubview: viewController.view]; 41 | } 42 | else 43 | { 44 | // use this method on ios6 45 | [window setRootViewController:viewController]; 46 | } 47 | 48 | [window makeKeyAndVisible]; 49 | 50 | [[UIApplication sharedApplication] setStatusBarHidden:true]; 51 | 52 | cocos2d::CCApplication::sharedApplication()->run(); 53 | 54 | return YES; 55 | } 56 | 57 | 58 | - (void)applicationWillResignActive:(UIApplication *)application { 59 | /* 60 | Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 61 | Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 62 | */ 63 | cocos2d::CCDirector::sharedDirector()->pause(); 64 | } 65 | 66 | - (void)applicationDidBecomeActive:(UIApplication *)application { 67 | /* 68 | Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 69 | */ 70 | cocos2d::CCDirector::sharedDirector()->resume(); 71 | } 72 | 73 | - (void)applicationDidEnterBackground:(UIApplication *)application { 74 | /* 75 | Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 76 | If your application supports background execution, called instead of applicationWillTerminate: when the user quits. 77 | */ 78 | cocos2d::CCApplication::sharedApplication()->applicationDidEnterBackground(); 79 | } 80 | 81 | - (void)applicationWillEnterForeground:(UIApplication *)application { 82 | /* 83 | Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background. 84 | */ 85 | cocos2d::CCApplication::sharedApplication()->applicationWillEnterForeground(); 86 | } 87 | 88 | - (void)applicationWillTerminate:(UIApplication *)application { 89 | /* 90 | Called when the application is about to terminate. 91 | See also applicationDidEnterBackground:. 92 | */ 93 | } 94 | 95 | 96 | #pragma mark - 97 | #pragma mark Memory management 98 | 99 | - (void)applicationDidReceiveMemoryWarning:(UIApplication *)application { 100 | /* 101 | Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later. 102 | */ 103 | } 104 | 105 | 106 | - (void)dealloc { 107 | [window release]; 108 | [super dealloc]; 109 | } 110 | 111 | 112 | @end 113 | -------------------------------------------------------------------------------- /proj.ios/BPDownload.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /proj.ios/BPDownload.xcodeproj/project.xcworkspace/xcuserdata/vic.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.ios/BPDownload.xcodeproj/project.xcworkspace/xcuserdata/vic.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /proj.ios/BPDownload.xcodeproj/xcuserdata/vic.xcuserdatad/xcschemes/BPDownload.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 51 | 52 | 58 | 59 | 60 | 61 | 62 | 63 | 69 | 70 | 76 | 77 | 78 | 79 | 81 | 82 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /proj.ios/BPDownload.xcodeproj/xcuserdata/vic.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | BPDownload.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 1D6058900D05DD3D006BFB54 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /proj.ios/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.ios/Default-568h@2x.png -------------------------------------------------------------------------------- /proj.ios/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.ios/Default.png -------------------------------------------------------------------------------- /proj.ios/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.ios/Default@2x.png -------------------------------------------------------------------------------- /proj.ios/Icon-114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.ios/Icon-114.png -------------------------------------------------------------------------------- /proj.ios/Icon-120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.ios/Icon-120.png -------------------------------------------------------------------------------- /proj.ios/Icon-144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.ios/Icon-144.png -------------------------------------------------------------------------------- /proj.ios/Icon-152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.ios/Icon-152.png -------------------------------------------------------------------------------- /proj.ios/Icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.ios/Icon-57.png -------------------------------------------------------------------------------- /proj.ios/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.ios/Icon-72.png -------------------------------------------------------------------------------- /proj.ios/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.ios/Icon-76.png -------------------------------------------------------------------------------- /proj.ios/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | Icon-57.png 13 | CFBundleIconFiles 14 | 15 | Icon.png 16 | Icon@2x.png 17 | Icon-57.png 18 | Icon-114.png 19 | Icon-72.png 20 | Icon-144.png 21 | Icon-76.png 22 | Icon-120.png 23 | Icon-152.png 24 | 25 | CFBundleIdentifier 26 | com.vic.bpdownload 27 | CFBundleInfoDictionaryVersion 28 | 6.0 29 | CFBundleName 30 | ${PRODUCT_NAME} 31 | CFBundlePackageType 32 | APPL 33 | CFBundleShortVersionString 34 | 35 | CFBundleSignature 36 | ???? 37 | CFBundleVersion 38 | 1.0 39 | LSRequiresIPhoneOS 40 | 41 | UIAppFonts 42 | 43 | UISupportedInterfaceOrientations 44 | 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /proj.ios/Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'iphone' target in the 'iphone' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | -------------------------------------------------------------------------------- /proj.ios/RootViewController.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | @interface RootViewController : UIViewController { 5 | 6 | } 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /proj.ios/RootViewController.mm: -------------------------------------------------------------------------------- 1 | #import "RootViewController.h" 2 | 3 | 4 | @implementation RootViewController 5 | 6 | /* 7 | // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad. 8 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { 9 | if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) { 10 | // Custom initialization 11 | } 12 | return self; 13 | } 14 | */ 15 | 16 | /* 17 | // Implement loadView to create a view hierarchy programmatically, without using a nib. 18 | - (void)loadView { 19 | } 20 | */ 21 | 22 | /* 23 | // Implement viewDidLoad to do additional setup after loading the view, typically from a nib. 24 | - (void)viewDidLoad { 25 | [super viewDidLoad]; 26 | } 27 | 28 | */ 29 | // Override to allow orientations other than the default portrait orientation. 30 | // This method is deprecated on ios6 31 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 32 | return UIInterfaceOrientationIsLandscape( interfaceOrientation ); 33 | } 34 | 35 | // For ios6, use supportedInterfaceOrientations & shouldAutorotate instead 36 | - (NSUInteger) supportedInterfaceOrientations{ 37 | #ifdef __IPHONE_6_0 38 | return UIInterfaceOrientationMaskAllButUpsideDown; 39 | #endif 40 | } 41 | 42 | - (BOOL) shouldAutorotate { 43 | return YES; 44 | } 45 | 46 | //fix not hide status on ios7 47 | - (BOOL)prefersStatusBarHidden 48 | { 49 | return YES; 50 | } 51 | 52 | - (void)didReceiveMemoryWarning { 53 | // Releases the view if it doesn't have a superview. 54 | [super didReceiveMemoryWarning]; 55 | 56 | // Release any cached data, images, etc that aren't in use. 57 | } 58 | 59 | - (void)viewDidUnload { 60 | [super viewDidUnload]; 61 | // Release any retained subviews of the main view. 62 | // e.g. self.myOutlet = nil; 63 | } 64 | 65 | 66 | - (void)dealloc { 67 | [super dealloc]; 68 | } 69 | 70 | 71 | @end 72 | -------------------------------------------------------------------------------- /proj.ios/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | // Under iOS and the Simulator, we can use an alternate Accelerometer interface 4 | #import "AccelerometerSimulation.h" 5 | 6 | int main(int argc, char *argv[]) { 7 | 8 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 9 | int retVal = UIApplicationMain(argc, argv, nil, @"AppController"); 10 | [pool release]; 11 | return retVal; 12 | } 13 | -------------------------------------------------------------------------------- /proj.linux/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | BPDownload 4 | 5 | 6 | libBox2D 7 | libChipmunk 8 | libcocos2d 9 | libCocosDenshion 10 | libextension 11 | 12 | 13 | 14 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 15 | clean,full,incremental, 16 | 17 | 18 | ?children? 19 | ?name?=outputEntries\|?children?=?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|\|| 20 | 21 | 22 | ?name? 23 | 24 | 25 | 26 | org.eclipse.cdt.make.core.append_environment 27 | true 28 | 29 | 30 | org.eclipse.cdt.make.core.autoBuildTarget 31 | all 32 | 33 | 34 | org.eclipse.cdt.make.core.buildArguments 35 | 36 | 37 | 38 | org.eclipse.cdt.make.core.buildCommand 39 | make 40 | 41 | 42 | org.eclipse.cdt.make.core.buildLocation 43 | ${workspace_loc:/BPDownload/Debug} 44 | 45 | 46 | org.eclipse.cdt.make.core.cleanBuildTarget 47 | clean 48 | 49 | 50 | org.eclipse.cdt.make.core.contents 51 | org.eclipse.cdt.make.core.activeConfigSettings 52 | 53 | 54 | org.eclipse.cdt.make.core.enableAutoBuild 55 | false 56 | 57 | 58 | org.eclipse.cdt.make.core.enableCleanBuild 59 | true 60 | 61 | 62 | org.eclipse.cdt.make.core.enableFullBuild 63 | true 64 | 65 | 66 | org.eclipse.cdt.make.core.fullBuildTarget 67 | all 68 | 69 | 70 | org.eclipse.cdt.make.core.stopOnError 71 | true 72 | 73 | 74 | org.eclipse.cdt.make.core.useDefaultBuildCmd 75 | true 76 | 77 | 78 | 79 | 80 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 81 | full,incremental, 82 | 83 | 84 | 85 | 86 | 87 | org.eclipse.cdt.core.cnature 88 | org.eclipse.cdt.core.ccnature 89 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 90 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 91 | 92 | 93 | 94 | Classes 95 | 2 96 | PARENT-1-PROJECT_LOC/Classes 97 | 98 | 99 | 100 | 101 | 1345106176896 102 | Classes/ExtensionsTest 103 | 10 104 | 105 | org.eclipse.ui.ide.multiFilter 106 | 1.0-name-matches-true-false-EditBoxTest 107 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /proj.linux/Makefile: -------------------------------------------------------------------------------- 1 | EXECUTABLE = BPDownload 2 | 3 | INCLUDES = -I.. -I../Classes 4 | 5 | SOURCES = main.cpp \ 6 | ../Classes/AppDelegate.cpp \ 7 | ../Classes/HelloWorldScene.cpp 8 | 9 | COCOS_ROOT = ../../.. 10 | include $(COCOS_ROOT)/cocos2dx/proj.linux/cocos2dx.mk 11 | 12 | SHAREDLIBS += -lcocos2d 13 | COCOS_LIBS = $(LIB_DIR)/libcocos2d.so 14 | 15 | $(TARGET): $(OBJECTS) $(STATICLIBS) $(COCOS_LIBS) $(CORE_MAKEFILE_LIST) 16 | @mkdir -p $(@D) 17 | $(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -o $@ $(SHAREDLIBS) $(STATICLIBS) 18 | 19 | $(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST) 20 | @mkdir -p $(@D) 21 | $(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@ 22 | 23 | $(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST) 24 | @mkdir -p $(@D) 25 | $(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@ 26 | -------------------------------------------------------------------------------- /proj.linux/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | TXTCOLOR_DEFAULT="\033[0;m" 4 | TXTCOLOR_RED="\033[0;31m" 5 | TXTCOLOR_GREEN="\033[0;32m" 6 | 7 | COCOS2DX20_TRUNK=`pwd`/../../.. 8 | OUTPUT_DEBUG=$COCOS2DX20_TRUNK/lib/linux/debug/ 9 | OUTPUT_RELEASE=$COCOS2DX20_TRUNK/lib/linux/release/ 10 | 11 | check_make_result() 12 | { 13 | if [ 0 != $? ]; then 14 | exit 1 15 | fi 16 | } 17 | 18 | DEPENDS='libx11-dev' 19 | DEPENDS+=' libxmu-dev' 20 | DEPENDS+=' libglu1-mesa-dev' 21 | DEPENDS+=' libgl2ps-dev' 22 | DEPENDS+=' libxi-dev' 23 | DEPENDS+=' libglfw-dev' 24 | DEPENDS+=' g++' 25 | DEPENDS+=' libzip-dev' 26 | DEPENDS+=' libcurl4-gnutls-dev' 27 | DEPENDS+=' libfontconfig1-dev' 28 | DEPENDS+=' libsqlite3-dev' 29 | DEPENDS+=' libglew-dev' 30 | 31 | for i in $DEPENDS; do 32 | PKG_OK=$(dpkg-query -W --showformat='${Status}\n' $i | grep "install ok installed") 33 | echo Checking for $i: $PKG_OK 34 | if [ "" == "$PKG_OK" ]; then 35 | echo -e $TXTCOLOR_GREEN"No $i. Setting up $i, please enter your password:"$TXTCOLOR_DEFAULT 36 | sudo apt-get --force-yes --yes install $i 37 | fi 38 | done 39 | 40 | mkdir -p $OUTPUT_DEBUG 41 | mkdir -p $OUTPUT_RELEASE 42 | 43 | make -C $COCOS2DX20_TRUNK/external/Box2D/proj.linux DEBUG=1 44 | check_make_result 45 | 46 | make -C $COCOS2DX20_TRUNK/external/chipmunk/proj.linux DEBUG=1 47 | check_make_result 48 | 49 | make -C $COCOS2DX20_TRUNK/cocos2dx/proj.linux DEBUG=1 50 | check_make_result 51 | 52 | make -C $COCOS2DX20_TRUNK/CocosDenshion/proj.linux DEBUG=1 53 | check_make_result 54 | 55 | make -C $COCOS2DX20_TRUNK/extensions/proj.linux DEBUG=1 56 | check_make_result 57 | 58 | make DEBUG=1 59 | check_make_result 60 | -------------------------------------------------------------------------------- /proj.linux/main.cpp: -------------------------------------------------------------------------------- 1 | #include "../Classes/AppDelegate.h" 2 | #include "cocos2d.h" 3 | #include "CCEGLView.h" 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | USING_NS_CC; 11 | 12 | int main(int argc, char **argv) 13 | { 14 | // create the application instance 15 | AppDelegate app; 16 | CCEGLView* eglView = CCEGLView::sharedOpenGLView(); 17 | eglView->setFrameSize(800, 480); 18 | return CCApplication::sharedApplication()->run(); 19 | } 20 | -------------------------------------------------------------------------------- /proj.mac/AppController.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #pragma once 26 | 27 | #import "cocos2d.h" 28 | #import "EAGLView.h" 29 | 30 | @interface AppController : NSObject 31 | { 32 | NSWindow *window; 33 | EAGLView *glView; 34 | } 35 | 36 | @property (nonatomic, assign) IBOutlet NSWindow* window; 37 | @property (nonatomic, assign) IBOutlet EAGLView* glView; 38 | 39 | -(IBAction) toggleFullScreen:(id)sender; 40 | -(IBAction) exitFullScreen:(id)sender; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /proj.mac/AppController.mm: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #import "AppController.h" 26 | #import "AppDelegate.h" 27 | 28 | @implementation AppController 29 | 30 | static AppDelegate s_sharedApplication; 31 | 32 | @synthesize window, glView; 33 | 34 | -(void) applicationDidFinishLaunching:(NSNotification *)aNotification 35 | { 36 | // create the window 37 | // note that using NSResizableWindowMask causes the window to be a little 38 | // smaller and therefore ipad graphics are not loaded 39 | NSRect rect = NSMakeRect(200, 200, 480, 320); 40 | window = [[NSWindow alloc] initWithContentRect:rect 41 | styleMask:( NSClosableWindowMask | NSTitledWindowMask ) 42 | backing:NSBackingStoreBuffered 43 | defer:YES]; 44 | 45 | NSOpenGLPixelFormatAttribute attributes[] = { 46 | NSOpenGLPFADoubleBuffer, 47 | NSOpenGLPFADepthSize, 24, 48 | NSOpenGLPFAStencilSize, 8, 49 | 0 50 | }; 51 | 52 | NSOpenGLPixelFormat *pixelFormat = [[[NSOpenGLPixelFormat alloc] initWithAttributes:attributes] autorelease]; 53 | 54 | // allocate our GL view 55 | // (isn't there already a shared EAGLView?) 56 | glView = [[EAGLView alloc] initWithFrame:rect pixelFormat:pixelFormat]; 57 | 58 | // set window parameters 59 | [window becomeFirstResponder]; 60 | [window setContentView:glView]; 61 | [window setTitle:@"HelloCpp"]; 62 | [window makeKeyAndOrderFront:self]; 63 | [window setAcceptsMouseMovedEvents:NO]; 64 | 65 | cocos2d::CCApplication::sharedApplication()->run(); 66 | } 67 | 68 | -(BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)theApplication 69 | { 70 | return YES; 71 | } 72 | 73 | -(void) dealloc 74 | { 75 | cocos2d::CCDirector::sharedDirector()->end(); 76 | [super dealloc]; 77 | } 78 | 79 | #pragma mark - 80 | #pragma mark IB Actions 81 | 82 | -(IBAction) toggleFullScreen:(id)sender 83 | { 84 | EAGLView* pView = [EAGLView sharedEGLView]; 85 | [pView setFullScreen:!pView.isFullScreen]; 86 | } 87 | 88 | -(IBAction) exitFullScreen:(id)sender 89 | { 90 | [[EAGLView sharedEGLView] setFullScreen:NO]; 91 | } 92 | 93 | @end 94 | -------------------------------------------------------------------------------- /proj.mac/Icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.mac/Icon.icns -------------------------------------------------------------------------------- /proj.mac/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | Icon 11 | CFBundleIdentifier 12 | com.vic.bpdownload 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSMinimumSystemVersion 26 | ${MACOSX_DEPLOYMENT_TARGET} 27 | NSHumanReadableCopyright 28 | Copyright © 2012. All rights reserved. 29 | NSMainNibFile 30 | MainMenu 31 | NSPrincipalClass 32 | NSApplication 33 | 34 | 35 | -------------------------------------------------------------------------------- /proj.mac/Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Paralaxer' target in the 'Paralaxer' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /proj.mac/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /proj.mac/main.m: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #import 26 | 27 | int main(int argc, char *argv[]) 28 | { 29 | return NSApplicationMain(argc, (const char **)argv); 30 | } 31 | -------------------------------------------------------------------------------- /proj.marmalade/BPDownload.mkb: -------------------------------------------------------------------------------- 1 | options 2 | { 3 | module_path="../../../cocos2dx/proj.marmalade/;../../../CocosDenshion/proj.marmalade/;../../../extensions/proj.marmalade/;../../../external/chipmunk/proj.marmalade/;../../../external/Box2D/proj.marmalade/" 4 | s3e-data-dir = "../Resources/" 5 | } 6 | 7 | includepaths 8 | { 9 | ../Classes 10 | } 11 | subprojects 12 | { 13 | IwGL 14 | cocos2dx 15 | cocos2dx-ext 16 | Box2D 17 | CocosDenshion 18 | # chipmunk 19 | } 20 | 21 | defines 22 | { 23 | CC_ENABLE_BOX2D_INTEGRATION=1 24 | } 25 | assets 26 | { 27 | (../Resources) 28 | } 29 | 30 | files 31 | { 32 | [Main] 33 | (src) 34 | Main.h 35 | Main.cpp 36 | 37 | (../Classes) 38 | AppDelegate.cpp 39 | AppDelegate.h 40 | HelloWorldScene.cpp 41 | HelloWorldScene.h 42 | 43 | } 44 | 45 | 46 | -------------------------------------------------------------------------------- /proj.marmalade/src/Main.cpp: -------------------------------------------------------------------------------- 1 | // Application main file. 2 | 3 | #include "Main.h" 4 | #include "../Classes/AppDelegate.h" 5 | 6 | // Cocos2dx headers 7 | #include "cocos2d.h" 8 | 9 | // Marmaladeheaders 10 | #include "IwGL.h" 11 | 12 | USING_NS_CC; 13 | 14 | int main() 15 | { 16 | AppDelegate app; 17 | 18 | return cocos2d::CCApplication::sharedApplication()->Run(); 19 | } 20 | -------------------------------------------------------------------------------- /proj.marmalade/src/Main.h: -------------------------------------------------------------------------------- 1 | #ifndef MAIN_H 2 | #define MAIN_H 3 | 4 | #endif 5 | -------------------------------------------------------------------------------- /proj.tizen/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | proj.tizen 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | 11 | 12 | ?name? 13 | 14 | 15 | 16 | org.eclipse.cdt.make.core.append_environment 17 | true 18 | 19 | 20 | org.eclipse.cdt.make.core.autoBuildTarget 21 | all 22 | 23 | 24 | org.eclipse.cdt.make.core.buildArguments 25 | 26 | 27 | 28 | org.eclipse.cdt.make.core.buildCommand 29 | sbi-make 30 | 31 | 32 | org.eclipse.cdt.make.core.buildLocation 33 | ${workspace_loc:/${ProjName}/Debug-Tizen-Device} 34 | 35 | 36 | org.eclipse.cdt.make.core.cleanBuildTarget 37 | clean 38 | 39 | 40 | org.eclipse.cdt.make.core.contents 41 | org.eclipse.cdt.make.core.activeConfigSettings 42 | 43 | 44 | org.eclipse.cdt.make.core.enableAutoBuild 45 | true 46 | 47 | 48 | org.eclipse.cdt.make.core.enableCleanBuild 49 | true 50 | 51 | 52 | org.eclipse.cdt.make.core.enableFullBuild 53 | true 54 | 55 | 56 | org.eclipse.cdt.make.core.fullBuildTarget 57 | all 58 | 59 | 60 | org.eclipse.cdt.make.core.stopOnError 61 | true 62 | 63 | 64 | org.eclipse.cdt.make.core.useDefaultBuildCmd 65 | true 66 | 67 | 68 | 69 | 70 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 71 | full,incremental, 72 | 73 | 74 | 75 | 76 | org.tizen.nativecpp.apichecker.core.builder 77 | 78 | 79 | 80 | 81 | 82 | org.eclipse.cdt.core.cnature 83 | org.eclipse.cdt.core.ccnature 84 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 85 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 86 | org.tizen.nativecpp.apichecker.core.tizenCppNature 87 | 88 | 89 | 90 | src/Classes 91 | 2 92 | PARENT-1-PROJECT_LOC/Classes 93 | 94 | 95 | 96 | 97 | 1372995128994 98 | 99 | 26 100 | 101 | org.eclipse.ui.ide.multiFilter 102 | 1.0-projectRelativePath-matches-false-false-*/.tpk 103 | 104 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /proj.tizen/README.mdown: -------------------------------------------------------------------------------- 1 | HelloCpp for Tizen 2 | ================== 3 | 4 | * Create Tizen IDE workspace in cocos2d-x/samples/Cpp/HelloCpp 5 | * Import proj.tizen 6 | * Copy cocos2d-x/samples/Cpp/HelloCpp/Resources/*.* to cocos2d-x/samples/Cpp/HelloCpp/proj.tizen/res 7 | -------------------------------------------------------------------------------- /proj.tizen/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.tizen/data/.gitkeep -------------------------------------------------------------------------------- /proj.tizen/inc/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.tizen/inc/.gitkeep -------------------------------------------------------------------------------- /proj.tizen/lib/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.tizen/lib/.gitkeep -------------------------------------------------------------------------------- /proj.tizen/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Ea48obap0R 4 | 1.0.0 5 | C++App 6 | 7 | true 8 | 9 | 10 | 2.2 11 | 12 | 13 | 14 | 15 | 16 | BPDownload 17 | 18 | 19 | mainmenu.png 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /proj.tizen/res/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.tizen/res/.gitkeep -------------------------------------------------------------------------------- /proj.tizen/shared/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.tizen/shared/data/.gitkeep -------------------------------------------------------------------------------- /proj.tizen/shared/res/screen-density-xhigh/mainmenu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.tizen/shared/res/screen-density-xhigh/mainmenu.png -------------------------------------------------------------------------------- /proj.tizen/shared/trusted/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.tizen/shared/trusted/.gitkeep -------------------------------------------------------------------------------- /proj.tizen/src/HelloCppEntry.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2013 cocos2d-x.org 3 | Copyright (c) 2013 Lee, Jae-Hong 4 | 5 | http://www.cocos2d-x.org 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in 15 | all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | THE SOFTWARE. 24 | ****************************************************************************/ 25 | 26 | // 27 | // This file contains the Tizen application entry point. 28 | // 29 | #include "../../Classes/AppDelegate.h" 30 | #include "cocos2d.h" 31 | 32 | USING_NS_CC; 33 | 34 | using namespace Tizen::Base; 35 | using namespace Tizen::Base::Collection; 36 | 37 | #ifdef __cplusplus 38 | extern "C" 39 | { 40 | #endif // __cplusplus 41 | 42 | void 43 | ApplicationInitialized(void) 44 | { 45 | AppDelegate* pAppDelegate = new AppDelegate; 46 | 47 | CCEGLView* eglView = CCEGLView::sharedOpenGLView(); 48 | eglView->setFrameSize(1280, 720); 49 | 50 | CCApplication::sharedApplication()->run(); 51 | } 52 | 53 | // 54 | // The entry function of Tizen application called by the operating system. 55 | // 56 | _EXPORT_ int 57 | OspMain(int argc, char *pArgv[]) 58 | { 59 | AppLog("Application started."); 60 | ArrayList args(SingleObjectDeleter); 61 | args.Construct(); 62 | for (int i = 0; i < argc; i++) 63 | { 64 | args.Add(new (std::nothrow) String(pArgv[i])); 65 | } 66 | 67 | CCOspApplication::SetApplicationInitializedCallback(ApplicationInitialized); 68 | CCOspApplication::SetScreenOrientation(Tizen::Ui::ORIENTATION_LANDSCAPE); 69 | result r = Tizen::App::Application::Execute(CCOspApplication::CreateInstance, &args); 70 | TryLog(r == E_SUCCESS, "[%s] Application execution failed", GetErrorMessage(r)); 71 | AppLog("Application finished."); 72 | 73 | return static_cast(r); 74 | } 75 | #ifdef __cplusplus 76 | } 77 | #endif // __cplusplus 78 | -------------------------------------------------------------------------------- /proj.win32/BPDownload.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BPDownload", "BPDownload.vcxproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}" 5 | ProjectSection(ProjectDependencies) = postProject 6 | {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28} 7 | {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} 8 | {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} 9 | {929480E7-23C0-4DF6-8456-096D71547116} = {929480E7-23C0-4DF6-8456-096D71547116} 10 | {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} 11 | EndProjectSection 12 | EndProject 13 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\..\..\cocos2dx\proj.win32\cocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}" 14 | EndProject 15 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosDenshion", "..\..\..\CocosDenshion\proj.win32\CocosDenshion.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}" 16 | ProjectSection(ProjectDependencies) = postProject 17 | {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} 18 | EndProjectSection 19 | EndProject 20 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libExtensions", "..\..\..\extensions\proj.win32\libExtensions.vcxproj", "{21B2C324-891F-48EA-AD1A-5AE13DE12E28}" 21 | ProjectSection(ProjectDependencies) = postProject 22 | {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} 23 | {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} 24 | {929480E7-23C0-4DF6-8456-096D71547116} = {929480E7-23C0-4DF6-8456-096D71547116} 25 | {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} 26 | EndProjectSection 27 | EndProject 28 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libBox2D", "..\..\..\external\Box2D\proj.win32\Box2D.vcxproj", "{929480E7-23C0-4DF6-8456-096D71547116}" 29 | EndProject 30 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "..\..\..\external\chipmunk\proj.win32\chipmunk.vcxproj", "{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}" 31 | EndProject 32 | Global 33 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 34 | Debug|Win32 = Debug|Win32 35 | Release|Win32 = Release|Win32 36 | EndGlobalSection 37 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 38 | {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.ActiveCfg = Debug|Win32 39 | {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.Build.0 = Debug|Win32 40 | {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.ActiveCfg = Release|Win32 41 | {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.Build.0 = Release|Win32 42 | {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.ActiveCfg = Debug|Win32 43 | {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.Build.0 = Debug|Win32 44 | {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.ActiveCfg = Release|Win32 45 | {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.Build.0 = Release|Win32 46 | {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.ActiveCfg = Debug|Win32 47 | {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.Build.0 = Debug|Win32 48 | {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.ActiveCfg = Release|Win32 49 | {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.Build.0 = Release|Win32 50 | {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.ActiveCfg = Debug|Win32 51 | {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.Build.0 = Debug|Win32 52 | {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.ActiveCfg = Release|Win32 53 | {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.Build.0 = Release|Win32 54 | {929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.ActiveCfg = Debug|Win32 55 | {929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.Build.0 = Debug|Win32 56 | {929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.ActiveCfg = Release|Win32 57 | {929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.Build.0 = Release|Win32 58 | {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.ActiveCfg = Debug|Win32 59 | {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.Build.0 = Debug|Win32 60 | {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.ActiveCfg = Release|Win32 61 | {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.Build.0 = Release|Win32 62 | EndGlobalSection 63 | GlobalSection(SolutionProperties) = preSolution 64 | HideSolutionNode = FALSE 65 | EndGlobalSection 66 | EndGlobal 67 | -------------------------------------------------------------------------------- /proj.win32/BPDownload.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {76A39BB2-9B84-4C65-98A5-654D86B86F2A} 15 | test_win32 16 | Win32Proj 17 | 18 | 19 | 20 | Application 21 | Unicode 22 | true 23 | v100 24 | v110 25 | v110_xp 26 | v120 27 | v120_xp 28 | 29 | 30 | Application 31 | Unicode 32 | v100 33 | v110 34 | v110_xp 35 | v120 36 | v120_xp 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | <_ProjectFileVersion>10.0.40219.1 50 | $(SolutionDir)$(Configuration).win32\ 51 | $(Configuration).win32\ 52 | true 53 | $(SolutionDir)$(Configuration).win32\ 54 | $(Configuration).win32\ 55 | false 56 | AllRules.ruleset 57 | 58 | 59 | AllRules.ruleset 60 | 61 | 62 | 63 | 64 | $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath) 65 | 66 | 67 | $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath) 68 | 69 | 70 | 71 | Disabled 72 | $(ProjectDir)..\..\..\cocos2dx;$(ProjectDir)..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\external;$(ProjectDir)..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\CocosDenshion\include;$(ProjectDir)..\..\..\extensions;..\Classes;..;%(AdditionalIncludeDirectories) 73 | WIN32;_DEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES;CC_ENABLE_CHIPMUNK_INTEGRATION=1;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) 74 | true 75 | EnableFastChecks 76 | MultiThreadedDebugDLL 77 | 78 | 79 | Level3 80 | EditAndContinue 81 | 4267;4251;4244;%(DisableSpecificWarnings) 82 | 83 | 84 | libExtensions.lib;libcocos2d.lib;libCocosDenshion.lib;opengl32.lib;glew32.lib;libBox2d.lib;libchipmunk.lib;libcurl_imp.lib;pthreadVCE2.lib;websockets.lib;%(AdditionalDependencies) 85 | $(OutDir)$(ProjectName).exe 86 | $(OutDir);%(AdditionalLibraryDirectories) 87 | true 88 | Windows 89 | MachineX86 90 | 91 | 92 | 93 | 94 | 95 | 96 | if not exist "$(OutDir)" mkdir "$(OutDir)" 97 | xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)" 98 | 99 | 100 | 101 | 102 | MaxSpeed 103 | true 104 | $(ProjectDir)..\..\..\cocos2dx;$(ProjectDir)..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\external;$(ProjectDir)..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\CocosDenshion\include;$(ProjectDir)..\..\..\extensions;..\Classes;..;%(AdditionalIncludeDirectories) 105 | WIN32;NDEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) 106 | MultiThreadedDLL 107 | true 108 | 109 | 110 | Level3 111 | ProgramDatabase 112 | 4267;4251;4244;%(DisableSpecificWarnings) 113 | 114 | 115 | libExtensions.lib;libcocos2d.lib;libCocosDenshion.lib;opengl32.lib;glew32.lib;libBox2d.lib;libchipmunk.lib;libcurl_imp.lib;pthreadVCE2.lib;websockets.lib;%(AdditionalDependencies) 116 | $(OutDir)$(ProjectName).exe 117 | $(OutDir);%(AdditionalLibraryDirectories) 118 | true 119 | Windows 120 | true 121 | true 122 | MachineX86 123 | 124 | 125 | 126 | 127 | 128 | 129 | if not exist "$(OutDir)" mkdir "$(OutDir)" 130 | xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)" 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | {98a51ba8-fc3a-415b-ac8f-8c7bd464e93e} 146 | false 147 | 148 | 149 | {f8edd7fa-9a51-4e80-baeb-860825d2eac6} 150 | false 151 | 152 | 153 | {21b2c324-891f-48ea-ad1a-5ae13de12e28} 154 | false 155 | 156 | 157 | {929480e7-23c0-4df6-8456-096d71547116} 158 | false 159 | 160 | 161 | {207bc7a9-ccf1-4f2f-a04d-45f72242ae25} 162 | false 163 | 164 | 165 | 166 | 167 | 168 | -------------------------------------------------------------------------------- /proj.win32/BPDownload.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {84a8ebd7-7cf0-47f6-b75e-d441df67da40} 6 | 7 | 8 | {bb6c862e-70e9-49d9-81b7-3829a6f50471} 9 | 10 | 11 | 12 | 13 | win32 14 | 15 | 16 | Classes 17 | 18 | 19 | Classes 20 | 21 | 22 | 23 | 24 | win32 25 | 26 | 27 | Classes 28 | 29 | 30 | Classes 31 | 32 | 33 | -------------------------------------------------------------------------------- /proj.win32/BPDownload.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(ProjectDir)..\Resources 5 | WindowsLocalDebugger 6 | 7 | 8 | $(ProjectDir)..\Resources 9 | WindowsLocalDebugger 10 | 11 | -------------------------------------------------------------------------------- /proj.win32/main.cpp: -------------------------------------------------------------------------------- 1 | #include "main.h" 2 | #include "AppDelegate.h" 3 | #include "CCEGLView.h" 4 | 5 | USING_NS_CC; 6 | 7 | int APIENTRY _tWinMain(HINSTANCE hInstance, 8 | HINSTANCE hPrevInstance, 9 | LPTSTR lpCmdLine, 10 | int nCmdShow) 11 | { 12 | UNREFERENCED_PARAMETER(hPrevInstance); 13 | UNREFERENCED_PARAMETER(lpCmdLine); 14 | 15 | // create the application instance 16 | AppDelegate app; 17 | CCEGLView* eglView = CCEGLView::sharedOpenGLView(); 18 | eglView->setViewName("BPDownload"); 19 | eglView->setFrameSize(480, 320); 20 | return CCApplication::sharedApplication()->run(); 21 | } 22 | -------------------------------------------------------------------------------- /proj.win32/main.h: -------------------------------------------------------------------------------- 1 | #ifndef __MAIN_H__ 2 | #define __MAIN_H__ 3 | 4 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 5 | 6 | // Windows Header Files: 7 | #include 8 | #include 9 | 10 | // C RunTime Header Files 11 | #include "CCStdC.h" 12 | 13 | #endif // __MAIN_H__ 14 | -------------------------------------------------------------------------------- /proj.winrt/App.xaml: -------------------------------------------------------------------------------- 1 |  6 | 7 | 8 | 9 | 10 | 11 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /proj.winrt/App.xaml.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2013 cocos2d-x.org 3 | Copyright (c) Microsoft Open Technologies, Inc. 4 | 5 | http://www.cocos2d-x.org 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in 15 | all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | THE SOFTWARE. 24 | ****************************************************************************/ 25 | // 26 | // App.xaml.cpp 27 | // Implementation of the App class. 28 | // 29 | 30 | #include "pch.h" 31 | #include "MainPage.xaml.h" 32 | 33 | using namespace BPDownload; 34 | 35 | using namespace Platform; 36 | using namespace Windows::ApplicationModel; 37 | using namespace Windows::ApplicationModel::Activation; 38 | using namespace Windows::Foundation; 39 | using namespace Windows::Foundation::Collections; 40 | using namespace Windows::Storage; 41 | using namespace Windows::UI::Xaml; 42 | using namespace Windows::UI::Xaml::Controls; 43 | using namespace Windows::UI::Xaml::Controls::Primitives; 44 | using namespace Windows::UI::Xaml::Data; 45 | using namespace Windows::UI::Xaml::Input; 46 | using namespace Windows::UI::Xaml::Interop; 47 | using namespace Windows::UI::Xaml::Media; 48 | using namespace Windows::UI::Xaml::Navigation; 49 | 50 | /// 51 | /// Initializes the singleton application object. This is the first line of authored code 52 | /// executed, and as such is the logical equivalent of main() or WinMain(). 53 | /// 54 | App::App() 55 | { 56 | InitializeComponent(); 57 | Suspending += ref new SuspendingEventHandler(this, &App::OnSuspending); 58 | } 59 | 60 | /// 61 | /// Invoked when the application is launched normally by the end user. Other entry points 62 | /// will be used when the application is launched to open a specific file, to display 63 | /// search results, and so forth. 64 | /// 65 | /// Details about the launch request and process. 66 | void App::OnLaunched(LaunchActivatedEventArgs^ args) 67 | { 68 | m_mainPage = ref new MainPage(); 69 | 70 | if (args->PreviousExecutionState == ApplicationExecutionState::Terminated) 71 | { 72 | m_mainPage->LoadInternalState(ApplicationData::Current->LocalSettings->Values); 73 | } 74 | 75 | // Place the page in the current window and ensure that it is active. 76 | Window::Current->Content = m_mainPage; 77 | Window::Current->Activate(); 78 | } 79 | 80 | /// 81 | /// Invoked when the application is being suspended. 82 | /// 83 | /// Details about the origin of the event. 84 | /// Details about the suspending event. 85 | void App::OnSuspending(Object^ sender, SuspendingEventArgs^ args) 86 | { 87 | (void) sender; // Unused parameter. 88 | (void) args; // Unused parameter. 89 | 90 | m_mainPage->SaveInternalState(ApplicationData::Current->LocalSettings->Values); 91 | } -------------------------------------------------------------------------------- /proj.winrt/App.xaml.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2013 cocos2d-x.org 3 | Copyright (c) Microsoft Open Technologies, Inc. 4 | 5 | http://www.cocos2d-x.org 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in 15 | all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | THE SOFTWARE. 24 | ****************************************************************************/ 25 | // 26 | // App.xaml.h 27 | // Declaration of the App class. 28 | // 29 | 30 | #pragma once 31 | 32 | #include "App.g.h" 33 | #include "MainPage.xaml.h" 34 | 35 | namespace BPDownload 36 | { 37 | /// 38 | /// Provides application-specific behavior to supplement the default Application class. 39 | /// 40 | ref class App sealed 41 | { 42 | public: 43 | App(); 44 | virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ args) override; 45 | 46 | private: 47 | void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ args); 48 | MainPage^ m_mainPage; 49 | }; 50 | } 51 | -------------------------------------------------------------------------------- /proj.winrt/Assets/Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.winrt/Assets/Logo.png -------------------------------------------------------------------------------- /proj.winrt/Assets/SmallLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.winrt/Assets/SmallLogo.png -------------------------------------------------------------------------------- /proj.winrt/Assets/SplashScreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.winrt/Assets/SplashScreen.png -------------------------------------------------------------------------------- /proj.winrt/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.winrt/Assets/StoreLogo.png -------------------------------------------------------------------------------- /proj.winrt/Assets/WideLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcxin/BPDownload/55ad447f7e0b25adfb5382b74951f1ae306285f2/proj.winrt/Assets/WideLogo.png -------------------------------------------------------------------------------- /proj.winrt/BPDownload.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BPDownload", "BPDownload.vcxproj", "{A4BD3C33-E173-4233-B52B-C5BFD57144C8}" 5 | EndProject 6 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "angleproject", "angleproject", "{9D188BFB-2893-433D-B5B1-D79076A2B88C}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "esUtil_winrt", "..\..\..\cocos2dx\platform\third_party\winrt\angleproject\samples\gles2_book\Common\esUtil_winrt.vcxproj", "{44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B}" 9 | EndProject 10 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libEGL_winrt", "..\..\..\cocos2dx\platform\third_party\winrt\angleproject\src\libEGL\libEGL_winrt.vcxproj", "{CD5990D7-2D62-490E-8436-CCD388893139}" 11 | EndProject 12 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libGLESv2_winrt", "..\..\..\cocos2dx\platform\third_party\winrt\angleproject\src\libGLESv2\libGLESv2_winrt.vcxproj", "{5C1B40B9-6262-44A0-97A6-A8B9F032E6E0}" 13 | EndProject 14 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "translator_hlsl_winrt", "..\..\..\cocos2dx\platform\third_party\winrt\angleproject\src\compiler\translator_hlsl_winrt.vcxproj", "{F7CC3484-9BCF-4063-B842-02C0C621FC1B}" 15 | EndProject 16 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "translator_common_winrt", "..\..\..\cocos2dx\platform\third_party\winrt\angleproject\src\compiler\translator_common_winrt.vcxproj", "{3681E22C-F004-4048-A867-8DEDD85EC601}" 17 | EndProject 18 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "preprocessor_winrt", "..\..\..\cocos2dx\platform\third_party\winrt\angleproject\src\compiler\preprocessor\preprocessor_winrt.vcxproj", "{E7B1D854-AD49-4662-8326-24579123F471}" 19 | EndProject 20 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\..\..\cocos2dx\proj.winrt\cocos2d.vcxproj", "{12155DB2-C528-4C56-8292-5E87FC315769}" 21 | EndProject 22 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CocosDenshion", "..\..\..\CocosDenshion\proj.winrt\CocosDenshion.vcxproj", "{886FB3F1-CDBC-4B60-94C8-0F02EB583A1E}" 23 | EndProject 24 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libExtensions", "..\..\..\extensions\proj.winrt\libExtensions.vcxproj", "{F8A69A16-14EB-4E5C-8F99-4CBFC5A6E089}" 25 | EndProject 26 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libBox2D", "..\..\..\external\Box2D\proj.winrt\Box2D.vcxproj", "{79FC91D4-974C-4BC7-8E8C-79E194437DE7}" 27 | EndProject 28 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "..\..\..\external\chipmunk\proj.winrt\chipmunk.vcxproj", "{3AD76EA1-D698-40D2-B04D-D9AB8171F40B}" 29 | EndProject 30 | Global 31 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 32 | Debug|ARM = Debug|ARM 33 | Debug|Win32 = Debug|Win32 34 | Debug|x64 = Debug|x64 35 | Release|ARM = Release|ARM 36 | Release|Win32 = Release|Win32 37 | Release|x64 = Release|x64 38 | EndGlobalSection 39 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 40 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Debug|ARM.ActiveCfg = Debug|ARM 41 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Debug|ARM.Build.0 = Debug|ARM 42 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Debug|ARM.Deploy.0 = Debug|ARM 43 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Debug|Win32.ActiveCfg = Debug|Win32 44 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Debug|Win32.Build.0 = Debug|Win32 45 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Debug|Win32.Deploy.0 = Debug|Win32 46 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Debug|x64.ActiveCfg = Debug|x64 47 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Debug|x64.Build.0 = Debug|x64 48 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Debug|x64.Deploy.0 = Debug|x64 49 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Release|ARM.ActiveCfg = Release|ARM 50 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Release|ARM.Build.0 = Release|ARM 51 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Release|ARM.Deploy.0 = Release|ARM 52 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Release|Win32.ActiveCfg = Release|Win32 53 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Release|Win32.Build.0 = Release|Win32 54 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Release|Win32.Deploy.0 = Release|Win32 55 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Release|x64.ActiveCfg = Release|x64 56 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Release|x64.Build.0 = Release|x64 57 | {A4BD3C33-E173-4233-B52B-C5BFD57144C8}.Release|x64.Deploy.0 = Release|x64 58 | {44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B}.Debug|ARM.ActiveCfg = Debug|ARM 59 | {44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B}.Debug|ARM.Build.0 = Debug|ARM 60 | {44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B}.Debug|Win32.ActiveCfg = Debug|Win32 61 | {44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B}.Debug|Win32.Build.0 = Debug|Win32 62 | {44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B}.Debug|x64.ActiveCfg = Debug|x64 63 | {44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B}.Debug|x64.Build.0 = Debug|x64 64 | {44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B}.Release|ARM.ActiveCfg = Release|ARM 65 | {44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B}.Release|ARM.Build.0 = Release|ARM 66 | {44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B}.Release|Win32.ActiveCfg = Release|Win32 67 | {44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B}.Release|Win32.Build.0 = Release|Win32 68 | {44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B}.Release|x64.ActiveCfg = Release|x64 69 | {44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B}.Release|x64.Build.0 = Release|x64 70 | {CD5990D7-2D62-490E-8436-CCD388893139}.Debug|ARM.ActiveCfg = Debug|ARM 71 | {CD5990D7-2D62-490E-8436-CCD388893139}.Debug|ARM.Build.0 = Debug|ARM 72 | {CD5990D7-2D62-490E-8436-CCD388893139}.Debug|Win32.ActiveCfg = Debug|Win32 73 | {CD5990D7-2D62-490E-8436-CCD388893139}.Debug|Win32.Build.0 = Debug|Win32 74 | {CD5990D7-2D62-490E-8436-CCD388893139}.Debug|x64.ActiveCfg = Debug|x64 75 | {CD5990D7-2D62-490E-8436-CCD388893139}.Debug|x64.Build.0 = Debug|x64 76 | {CD5990D7-2D62-490E-8436-CCD388893139}.Release|ARM.ActiveCfg = Release|ARM 77 | {CD5990D7-2D62-490E-8436-CCD388893139}.Release|ARM.Build.0 = Release|ARM 78 | {CD5990D7-2D62-490E-8436-CCD388893139}.Release|Win32.ActiveCfg = Release|Win32 79 | {CD5990D7-2D62-490E-8436-CCD388893139}.Release|Win32.Build.0 = Release|Win32 80 | {CD5990D7-2D62-490E-8436-CCD388893139}.Release|x64.ActiveCfg = Release|x64 81 | {CD5990D7-2D62-490E-8436-CCD388893139}.Release|x64.Build.0 = Release|x64 82 | {5C1B40B9-6262-44A0-97A6-A8B9F032E6E0}.Debug|ARM.ActiveCfg = Debug|ARM 83 | {5C1B40B9-6262-44A0-97A6-A8B9F032E6E0}.Debug|ARM.Build.0 = Debug|ARM 84 | {5C1B40B9-6262-44A0-97A6-A8B9F032E6E0}.Debug|Win32.ActiveCfg = Debug|Win32 85 | {5C1B40B9-6262-44A0-97A6-A8B9F032E6E0}.Debug|Win32.Build.0 = Debug|Win32 86 | {5C1B40B9-6262-44A0-97A6-A8B9F032E6E0}.Debug|x64.ActiveCfg = Debug|x64 87 | {5C1B40B9-6262-44A0-97A6-A8B9F032E6E0}.Debug|x64.Build.0 = Debug|x64 88 | {5C1B40B9-6262-44A0-97A6-A8B9F032E6E0}.Release|ARM.ActiveCfg = Release|ARM 89 | {5C1B40B9-6262-44A0-97A6-A8B9F032E6E0}.Release|ARM.Build.0 = Release|ARM 90 | {5C1B40B9-6262-44A0-97A6-A8B9F032E6E0}.Release|Win32.ActiveCfg = Release|Win32 91 | {5C1B40B9-6262-44A0-97A6-A8B9F032E6E0}.Release|Win32.Build.0 = Release|Win32 92 | {5C1B40B9-6262-44A0-97A6-A8B9F032E6E0}.Release|x64.ActiveCfg = Release|x64 93 | {5C1B40B9-6262-44A0-97A6-A8B9F032E6E0}.Release|x64.Build.0 = Release|x64 94 | {F7CC3484-9BCF-4063-B842-02C0C621FC1B}.Debug|ARM.ActiveCfg = Debug|ARM 95 | {F7CC3484-9BCF-4063-B842-02C0C621FC1B}.Debug|ARM.Build.0 = Debug|ARM 96 | {F7CC3484-9BCF-4063-B842-02C0C621FC1B}.Debug|Win32.ActiveCfg = Debug|Win32 97 | {F7CC3484-9BCF-4063-B842-02C0C621FC1B}.Debug|Win32.Build.0 = Debug|Win32 98 | {F7CC3484-9BCF-4063-B842-02C0C621FC1B}.Debug|x64.ActiveCfg = Debug|x64 99 | {F7CC3484-9BCF-4063-B842-02C0C621FC1B}.Debug|x64.Build.0 = Debug|x64 100 | {F7CC3484-9BCF-4063-B842-02C0C621FC1B}.Release|ARM.ActiveCfg = Release|ARM 101 | {F7CC3484-9BCF-4063-B842-02C0C621FC1B}.Release|ARM.Build.0 = Release|ARM 102 | {F7CC3484-9BCF-4063-B842-02C0C621FC1B}.Release|Win32.ActiveCfg = Release|Win32 103 | {F7CC3484-9BCF-4063-B842-02C0C621FC1B}.Release|Win32.Build.0 = Release|Win32 104 | {F7CC3484-9BCF-4063-B842-02C0C621FC1B}.Release|x64.ActiveCfg = Release|x64 105 | {F7CC3484-9BCF-4063-B842-02C0C621FC1B}.Release|x64.Build.0 = Release|x64 106 | {3681E22C-F004-4048-A867-8DEDD85EC601}.Debug|ARM.ActiveCfg = Debug|ARM 107 | {3681E22C-F004-4048-A867-8DEDD85EC601}.Debug|ARM.Build.0 = Debug|ARM 108 | {3681E22C-F004-4048-A867-8DEDD85EC601}.Debug|Win32.ActiveCfg = Debug|Win32 109 | {3681E22C-F004-4048-A867-8DEDD85EC601}.Debug|Win32.Build.0 = Debug|Win32 110 | {3681E22C-F004-4048-A867-8DEDD85EC601}.Debug|x64.ActiveCfg = Debug|x64 111 | {3681E22C-F004-4048-A867-8DEDD85EC601}.Debug|x64.Build.0 = Debug|x64 112 | {3681E22C-F004-4048-A867-8DEDD85EC601}.Release|ARM.ActiveCfg = Release|ARM 113 | {3681E22C-F004-4048-A867-8DEDD85EC601}.Release|ARM.Build.0 = Release|ARM 114 | {3681E22C-F004-4048-A867-8DEDD85EC601}.Release|Win32.ActiveCfg = Release|Win32 115 | {3681E22C-F004-4048-A867-8DEDD85EC601}.Release|Win32.Build.0 = Release|Win32 116 | {3681E22C-F004-4048-A867-8DEDD85EC601}.Release|x64.ActiveCfg = Release|x64 117 | {3681E22C-F004-4048-A867-8DEDD85EC601}.Release|x64.Build.0 = Release|x64 118 | {E7B1D854-AD49-4662-8326-24579123F471}.Debug|ARM.ActiveCfg = Debug|ARM 119 | {E7B1D854-AD49-4662-8326-24579123F471}.Debug|ARM.Build.0 = Debug|ARM 120 | {E7B1D854-AD49-4662-8326-24579123F471}.Debug|Win32.ActiveCfg = Debug|Win32 121 | {E7B1D854-AD49-4662-8326-24579123F471}.Debug|Win32.Build.0 = Debug|Win32 122 | {E7B1D854-AD49-4662-8326-24579123F471}.Debug|x64.ActiveCfg = Debug|x64 123 | {E7B1D854-AD49-4662-8326-24579123F471}.Debug|x64.Build.0 = Debug|x64 124 | {E7B1D854-AD49-4662-8326-24579123F471}.Release|ARM.ActiveCfg = Release|ARM 125 | {E7B1D854-AD49-4662-8326-24579123F471}.Release|ARM.Build.0 = Release|ARM 126 | {E7B1D854-AD49-4662-8326-24579123F471}.Release|Win32.ActiveCfg = Release|Win32 127 | {E7B1D854-AD49-4662-8326-24579123F471}.Release|Win32.Build.0 = Release|Win32 128 | {E7B1D854-AD49-4662-8326-24579123F471}.Release|x64.ActiveCfg = Release|x64 129 | {E7B1D854-AD49-4662-8326-24579123F471}.Release|x64.Build.0 = Release|x64 130 | {12155DB2-C528-4C56-8292-5E87FC315769}.Debug|ARM.ActiveCfg = Debug|ARM 131 | {12155DB2-C528-4C56-8292-5E87FC315769}.Debug|ARM.Build.0 = Debug|ARM 132 | {12155DB2-C528-4C56-8292-5E87FC315769}.Debug|Win32.ActiveCfg = Debug|Win32 133 | {12155DB2-C528-4C56-8292-5E87FC315769}.Debug|Win32.Build.0 = Debug|Win32 134 | {12155DB2-C528-4C56-8292-5E87FC315769}.Debug|x64.ActiveCfg = Debug|x64 135 | {12155DB2-C528-4C56-8292-5E87FC315769}.Debug|x64.Build.0 = Debug|x64 136 | {12155DB2-C528-4C56-8292-5E87FC315769}.Release|ARM.ActiveCfg = Release|ARM 137 | {12155DB2-C528-4C56-8292-5E87FC315769}.Release|ARM.Build.0 = Release|ARM 138 | {12155DB2-C528-4C56-8292-5E87FC315769}.Release|Win32.ActiveCfg = Release|Win32 139 | {12155DB2-C528-4C56-8292-5E87FC315769}.Release|Win32.Build.0 = Release|Win32 140 | {12155DB2-C528-4C56-8292-5E87FC315769}.Release|x64.ActiveCfg = Release|x64 141 | {12155DB2-C528-4C56-8292-5E87FC315769}.Release|x64.Build.0 = Release|x64 142 | {886FB3F1-CDBC-4B60-94C8-0F02EB583A1E}.Debug|ARM.ActiveCfg = Debug|ARM 143 | {886FB3F1-CDBC-4B60-94C8-0F02EB583A1E}.Debug|ARM.Build.0 = Debug|ARM 144 | {886FB3F1-CDBC-4B60-94C8-0F02EB583A1E}.Debug|Win32.ActiveCfg = Debug|Win32 145 | {886FB3F1-CDBC-4B60-94C8-0F02EB583A1E}.Debug|Win32.Build.0 = Debug|Win32 146 | {886FB3F1-CDBC-4B60-94C8-0F02EB583A1E}.Debug|x64.ActiveCfg = Debug|x64 147 | {886FB3F1-CDBC-4B60-94C8-0F02EB583A1E}.Debug|x64.Build.0 = Debug|x64 148 | {886FB3F1-CDBC-4B60-94C8-0F02EB583A1E}.Release|ARM.ActiveCfg = Release|ARM 149 | {886FB3F1-CDBC-4B60-94C8-0F02EB583A1E}.Release|ARM.Build.0 = Release|ARM 150 | {886FB3F1-CDBC-4B60-94C8-0F02EB583A1E}.Release|Win32.ActiveCfg = Release|Win32 151 | {886FB3F1-CDBC-4B60-94C8-0F02EB583A1E}.Release|Win32.Build.0 = Release|Win32 152 | {886FB3F1-CDBC-4B60-94C8-0F02EB583A1E}.Release|x64.ActiveCfg = Release|x64 153 | {886FB3F1-CDBC-4B60-94C8-0F02EB583A1E}.Release|x64.Build.0 = Release|x64 154 | {F8A69A16-14EB-4E5C-8F99-4CBFC5A6E089}.Debug|ARM.ActiveCfg = Debug|ARM 155 | {F8A69A16-14EB-4E5C-8F99-4CBFC5A6E089}.Debug|ARM.Build.0 = Debug|ARM 156 | {F8A69A16-14EB-4E5C-8F99-4CBFC5A6E089}.Debug|Win32.ActiveCfg = Debug|Win32 157 | {F8A69A16-14EB-4E5C-8F99-4CBFC5A6E089}.Debug|Win32.Build.0 = Debug|Win32 158 | {F8A69A16-14EB-4E5C-8F99-4CBFC5A6E089}.Debug|x64.ActiveCfg = Debug|x64 159 | {F8A69A16-14EB-4E5C-8F99-4CBFC5A6E089}.Debug|x64.Build.0 = Debug|x64 160 | {F8A69A16-14EB-4E5C-8F99-4CBFC5A6E089}.Release|ARM.ActiveCfg = Release|ARM 161 | {F8A69A16-14EB-4E5C-8F99-4CBFC5A6E089}.Release|ARM.Build.0 = Release|ARM 162 | {F8A69A16-14EB-4E5C-8F99-4CBFC5A6E089}.Release|Win32.ActiveCfg = Release|Win32 163 | {F8A69A16-14EB-4E5C-8F99-4CBFC5A6E089}.Release|Win32.Build.0 = Release|Win32 164 | {F8A69A16-14EB-4E5C-8F99-4CBFC5A6E089}.Release|x64.ActiveCfg = Release|x64 165 | {F8A69A16-14EB-4E5C-8F99-4CBFC5A6E089}.Release|x64.Build.0 = Release|x64 166 | {79FC91D4-974C-4BC7-8E8C-79E194437DE7}.Debug|ARM.ActiveCfg = Debug|ARM 167 | {79FC91D4-974C-4BC7-8E8C-79E194437DE7}.Debug|ARM.Build.0 = Debug|ARM 168 | {79FC91D4-974C-4BC7-8E8C-79E194437DE7}.Debug|Win32.ActiveCfg = Debug|Win32 169 | {79FC91D4-974C-4BC7-8E8C-79E194437DE7}.Debug|Win32.Build.0 = Debug|Win32 170 | {79FC91D4-974C-4BC7-8E8C-79E194437DE7}.Debug|x64.ActiveCfg = Debug|x64 171 | {79FC91D4-974C-4BC7-8E8C-79E194437DE7}.Debug|x64.Build.0 = Debug|x64 172 | {79FC91D4-974C-4BC7-8E8C-79E194437DE7}.Release|ARM.ActiveCfg = Release|ARM 173 | {79FC91D4-974C-4BC7-8E8C-79E194437DE7}.Release|ARM.Build.0 = Release|ARM 174 | {79FC91D4-974C-4BC7-8E8C-79E194437DE7}.Release|Win32.ActiveCfg = Release|Win32 175 | {79FC91D4-974C-4BC7-8E8C-79E194437DE7}.Release|Win32.Build.0 = Release|Win32 176 | {79FC91D4-974C-4BC7-8E8C-79E194437DE7}.Release|x64.ActiveCfg = Release|x64 177 | {79FC91D4-974C-4BC7-8E8C-79E194437DE7}.Release|x64.Build.0 = Release|x64 178 | {3AD76EA1-D698-40D2-B04D-D9AB8171F40B}.Debug|ARM.ActiveCfg = Debug|ARM 179 | {3AD76EA1-D698-40D2-B04D-D9AB8171F40B}.Debug|ARM.Build.0 = Debug|ARM 180 | {3AD76EA1-D698-40D2-B04D-D9AB8171F40B}.Debug|Win32.ActiveCfg = Debug|Win32 181 | {3AD76EA1-D698-40D2-B04D-D9AB8171F40B}.Debug|Win32.Build.0 = Debug|Win32 182 | {3AD76EA1-D698-40D2-B04D-D9AB8171F40B}.Debug|x64.ActiveCfg = Debug|x64 183 | {3AD76EA1-D698-40D2-B04D-D9AB8171F40B}.Debug|x64.Build.0 = Debug|x64 184 | {3AD76EA1-D698-40D2-B04D-D9AB8171F40B}.Release|ARM.ActiveCfg = Release|ARM 185 | {3AD76EA1-D698-40D2-B04D-D9AB8171F40B}.Release|ARM.Build.0 = Release|ARM 186 | {3AD76EA1-D698-40D2-B04D-D9AB8171F40B}.Release|Win32.ActiveCfg = Release|Win32 187 | {3AD76EA1-D698-40D2-B04D-D9AB8171F40B}.Release|Win32.Build.0 = Release|Win32 188 | {3AD76EA1-D698-40D2-B04D-D9AB8171F40B}.Release|x64.ActiveCfg = Release|x64 189 | {3AD76EA1-D698-40D2-B04D-D9AB8171F40B}.Release|x64.Build.0 = Release|x64 190 | EndGlobalSection 191 | GlobalSection(SolutionProperties) = preSolution 192 | HideSolutionNode = FALSE 193 | EndGlobalSection 194 | GlobalSection(NestedProjects) = preSolution 195 | {44EEDAD2-D9AD-45DC-83B0-E5F50BD4377B} = {9D188BFB-2893-433D-B5B1-D79076A2B88C} 196 | {CD5990D7-2D62-490E-8436-CCD388893139} = {9D188BFB-2893-433D-B5B1-D79076A2B88C} 197 | {5C1B40B9-6262-44A0-97A6-A8B9F032E6E0} = {9D188BFB-2893-433D-B5B1-D79076A2B88C} 198 | {F7CC3484-9BCF-4063-B842-02C0C621FC1B} = {9D188BFB-2893-433D-B5B1-D79076A2B88C} 199 | {3681E22C-F004-4048-A867-8DEDD85EC601} = {9D188BFB-2893-433D-B5B1-D79076A2B88C} 200 | {E7B1D854-AD49-4662-8326-24579123F471} = {9D188BFB-2893-433D-B5B1-D79076A2B88C} 201 | EndGlobalSection 202 | EndGlobal 203 | -------------------------------------------------------------------------------- /proj.winrt/BPDownload.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | a4bd3c33-e173-4233-b52b-c5bfd57144c8 6 | 7 | 8 | c979f1c5-f7cd-46dd-805d-97511829bd44 9 | 10 | 11 | Common 12 | 13 | 14 | Assets 15 | 16 | 17 | Assets 18 | 19 | 20 | Assets 21 | 22 | 23 | Assets 24 | 25 | 26 | {97c3b83c-49c5-4c12-b313-2ad896c789fb} 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | Classes 38 | 39 | 40 | Classes 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | Classes 49 | 50 | 51 | Classes 52 | 53 | 54 | Classes 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | Assets 71 | 72 | 73 | -------------------------------------------------------------------------------- /proj.winrt/BPDownload_2013.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | a4bd3c33-e173-4233-b52b-c5bfd57144c8 6 | 7 | 8 | c979f1c5-f7cd-46dd-805d-97511829bd44 9 | 10 | 11 | Common 12 | 13 | 14 | Assets 15 | 16 | 17 | Assets 18 | 19 | 20 | Assets 21 | 22 | 23 | Assets 24 | 25 | 26 | {97c3b83c-49c5-4c12-b313-2ad896c789fb} 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | Classes 38 | 39 | 40 | Classes 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | Classes 49 | 50 | 51 | Classes 52 | 53 | 54 | Classes 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | Assets 66 | 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /proj.winrt/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | 14 |