diff --git a/cocos2dx-uphone.sln b/cocos2dx-uphone.sln index 0471dd8a33..b7965052d9 100644 --- a/cocos2dx-uphone.sln +++ b/cocos2dx-uphone.sln @@ -27,7 +27,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CocosDenshion_uphone", "Coc EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cocosTemplate", "template\cocosTemplate.vcproj", "{A2338E7B-155B-4A3B-AB4B-518ECDD26564}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_uphone", "test_uphone\proj.uphone\test_uphone.vcproj", "{33819ACD-9774-4E68-AFBE-7A88BBA7B19D}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_uphone", "tests\proj.uphone\test_uphone.vcproj", "{33819ACD-9774-4E68-AFBE-7A88BBA7B19D}" ProjectSection(ProjectDependencies) = postProject {6AC43F51-A036-4653-B910-BDDC346D15E7} = {6AC43F51-A036-4653-B910-BDDC346D15E7} {83C75293-906B-432E-80B9-A0041043E380} = {83C75293-906B-432E-80B9-A0041043E380} diff --git a/cocos2dx-win32.sln b/cocos2dx-win32.sln index bba5edb89d..9b6a008b5e 100644 --- a/cocos2dx-win32.sln +++ b/cocos2dx-win32.sln @@ -19,7 +19,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestAudioEngine-win32", "Te {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} EndProjectSection EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-win32", "test_uphone\proj.win32\test-win32.vcproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-win32", "tests\proj.win32\test-win32.vcproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}" ProjectSection(ProjectDependencies) = postProject {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} diff --git a/test_win32/AppDelegate.cpp b/test_win32/AppDelegate.cpp deleted file mode 100644 index 1238007be7..0000000000 --- a/test_win32/AppDelegate.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#include "AppDelegate.h" -#include "tests/controller.h" - -using namespace cocos2d; - -AppDelegate::AppDelegate() -:m_pMainWnd(NULL) -{ -} - -AppDelegate::~AppDelegate() -{ - CCX_SAFE_DELETE(m_pMainWnd); -} - - -bool AppDelegate::applicationDidFinishLaunching() -{ - // create window - if (!(m_pMainWnd = new CCXEGLView() || - ! m_pMainWnd->Create(L"Cocos2dx-win32", 320, 480) ) - { - CCX_SAFE_DELETE(m_pMainWnd); - return false; - } - - // init director - CCDirector * pDirector = CCDirector::sharedDirector(); - pDirector->setOpenGLView(m_pMainWnd); - pDirector->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft); - // pDirector->setDeviceOrientation(kCCDeviceOrientationPortrait); - pDirector->setDisplayFPS(true); - - CCScene * pScene = CCScene::node(); - CCLayer * pLayer = new TestController(); - pLayer->autorelease(); - - pScene->addChild(pLayer); - pDirector->runWithScene(pScene); - - return true; -} - -void AppDelegate::applicationDidEnterBackground() -{ - CCDirector::sharedDirector()->stopAnimation(); -} - -void AppDelegate::applicationWillEnterForeground() -{ - CCDirector::sharedDirector()->startAnimation(); -} diff --git a/test_win32/AppDelegate.h b/test_win32/AppDelegate.h deleted file mode 100644 index d86cf59a84..0000000000 --- a/test_win32/AppDelegate.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef __APP_DELEGATE_H__ -#define __APP_DELEGATE_H__ - -#include "cocos2d.h" - -class AppDelegate : public cocos2d::CCXApplication -{ -public: - AppDelegate(); - ~AppDelegate(); - virtual bool applicationDidFinishLaunching(); - virtual void applicationDidEnterBackground(); - virtual void applicationWillEnterForeground(); - -protected: - cocos2d::CCXEGLView *m_pMainWnd; -}; - -#endif // __APP_DELEGATE_H__ \ No newline at end of file diff --git a/test_win32/copy_res.bat b/test_win32/copy_res.bat deleted file mode 100644 index d587654045..0000000000 --- a/test_win32/copy_res.bat +++ /dev/null @@ -1,2 +0,0 @@ -echo off -xcopy /E /Y %CD%\Res\*.* %1 diff --git a/test_win32/main.cpp b/test_win32/main.cpp deleted file mode 100644 index 848ea590c8..0000000000 --- a/test_win32/main.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "main.h" -#include "AppDelegate.h" - -HINSTANCE g_hInstance; - -int APIENTRY _tWinMain(HINSTANCE hInstance, - HINSTANCE hPrevInstance, - LPTSTR lpCmdLine, - int nCmdShow) -{ - UNREFERENCED_PARAMETER(hPrevInstance); - UNREFERENCED_PARAMETER(lpCmdLine); - - g_hInstance = hInstance; - - int nRet = 0; - AppDelegate app; - nRet = app.Run(); - - return nRet; -} diff --git a/test_win32/main.h b/test_win32/main.h deleted file mode 100644 index f5ad256d5c..0000000000 --- a/test_win32/main.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef __MAIN_H__ -#define __MAIN_H__ - -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers -// Windows Header Files: -#include - -// C RunTime Header Files -#include -#include -#include -#include - -extern HINSTANCE g_hInstance; - -#endif // __WINMAIN_H__ diff --git a/test_win32/test-win32.vcproj b/test_win32/test-win32.vcproj deleted file mode 100644 index 77099717ca..0000000000 --- a/test_win32/test-win32.vcproj +++ /dev/null @@ -1,843 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/test_uphone/AppDelegate.cpp b/tests/AppDelegate.cpp similarity index 95% rename from test_uphone/AppDelegate.cpp rename to tests/AppDelegate.cpp index 114324787d..a31ce6449c 100644 --- a/test_uphone/AppDelegate.cpp +++ b/tests/AppDelegate.cpp @@ -41,7 +41,7 @@ bool AppDelegate::applicationDidFinishLaunching() // pDirector->setDeviceOrientation(kCCDeviceOrientationPortrait); pDirector->setDisplayFPS(true); -#if defined(CCX_PLPATFORM_UPHONE) +#if defined(CCX_PLATFORM_UPHONE) // set the resource path CCFileUtils::setResourcePath("/NEWPLUS/TDA_DATA/Data/cocos2d_tests/"); #endif diff --git a/test_uphone/AppDelegate.h b/tests/AppDelegate.h similarity index 100% rename from test_uphone/AppDelegate.h rename to tests/AppDelegate.h diff --git a/test_uphone/Res/Images/atlastest.png.REMOVED.git-id b/tests/Res/Images/atlastest.png.REMOVED.git-id similarity index 100% rename from test_uphone/Res/Images/atlastest.png.REMOVED.git-id rename to tests/Res/Images/atlastest.png.REMOVED.git-id diff --git a/test_uphone/Res/Images/background1.png.REMOVED.git-id b/tests/Res/Images/background1.png.REMOVED.git-id similarity index 100% rename from test_uphone/Res/Images/background1.png.REMOVED.git-id rename to tests/Res/Images/background1.png.REMOVED.git-id diff --git a/test_uphone/Res/Images/background2.png.REMOVED.git-id b/tests/Res/Images/background2.png.REMOVED.git-id similarity index 100% rename from test_uphone/Res/Images/background2.png.REMOVED.git-id rename to tests/Res/Images/background2.png.REMOVED.git-id diff --git a/test_uphone/Res/Images/grossini_dance_atlas-mono.png.REMOVED.git-id b/tests/Res/Images/grossini_dance_atlas-mono.png.REMOVED.git-id similarity index 100% rename from test_uphone/Res/Images/grossini_dance_atlas-mono.png.REMOVED.git-id rename to tests/Res/Images/grossini_dance_atlas-mono.png.REMOVED.git-id diff --git a/test_uphone/Res/TileMaps/hexa-tiles.png.REMOVED.git-id b/tests/Res/TileMaps/hexa-tiles.png.REMOVED.git-id similarity index 100% rename from test_uphone/Res/TileMaps/hexa-tiles.png.REMOVED.git-id rename to tests/Res/TileMaps/hexa-tiles.png.REMOVED.git-id diff --git a/test_uphone/Res/TileMaps/ortho-test1.png.REMOVED.git-id b/tests/Res/TileMaps/ortho-test1.png.REMOVED.git-id similarity index 100% rename from test_uphone/Res/TileMaps/ortho-test1.png.REMOVED.git-id rename to tests/Res/TileMaps/ortho-test1.png.REMOVED.git-id diff --git a/test_uphone/Res/animations/grossini.plist.xml b/tests/Res/animations/grossini.plist.xml similarity index 100% rename from test_uphone/Res/animations/grossini.plist.xml rename to tests/Res/animations/grossini.plist.xml diff --git a/test_uphone/Res/fonts/bitmapFontTest.png.REMOVED.git-id b/tests/Res/fonts/bitmapFontTest.png.REMOVED.git-id similarity index 100% rename from test_uphone/Res/fonts/bitmapFontTest.png.REMOVED.git-id rename to tests/Res/fonts/bitmapFontTest.png.REMOVED.git-id diff --git a/test_uphone/Res/fonts/bitmapFontTest2.png.REMOVED.git-id b/tests/Res/fonts/bitmapFontTest2.png.REMOVED.git-id similarity index 100% rename from test_uphone/Res/fonts/bitmapFontTest2.png.REMOVED.git-id rename to tests/Res/fonts/bitmapFontTest2.png.REMOVED.git-id diff --git a/test_uphone/framework.uphone/NewDeleteOp.cpp b/tests/framework.uphone/NewDeleteOp.cpp similarity index 100% rename from test_uphone/framework.uphone/NewDeleteOp.cpp rename to tests/framework.uphone/NewDeleteOp.cpp diff --git a/test_uphone/framework.uphone/TG3AppDllEntry.cpp b/tests/framework.uphone/TG3AppDllEntry.cpp similarity index 100% rename from test_uphone/framework.uphone/TG3AppDllEntry.cpp rename to tests/framework.uphone/TG3AppDllEntry.cpp diff --git a/test_uphone/framework.uphone/TG3AppDllEntry.h b/tests/framework.uphone/TG3AppDllEntry.h similarity index 100% rename from test_uphone/framework.uphone/TG3AppDllEntry.h rename to tests/framework.uphone/TG3AppDllEntry.h diff --git a/test_uphone/framework.uphone/main.cpp b/tests/framework.uphone/main.cpp similarity index 100% rename from test_uphone/framework.uphone/main.cpp rename to tests/framework.uphone/main.cpp diff --git a/test_uphone/framework.win32/main.cpp b/tests/framework.win32/main.cpp similarity index 100% rename from test_uphone/framework.win32/main.cpp rename to tests/framework.win32/main.cpp diff --git a/test_uphone/framework.win32/main.h b/tests/framework.win32/main.h similarity index 100% rename from test_uphone/framework.win32/main.h rename to tests/framework.win32/main.h diff --git a/test_uphone/pack/TestUphone.TG3_IProc b/tests/pack/TestUphone.TG3_IProc similarity index 100% rename from test_uphone/pack/TestUphone.TG3_IProc rename to tests/pack/TestUphone.TG3_IProc diff --git a/test_uphone/proj.uphone/Makefile.ARM b/tests/proj.uphone/Makefile.ARM similarity index 100% rename from test_uphone/proj.uphone/Makefile.ARM rename to tests/proj.uphone/Makefile.ARM diff --git a/test_uphone/proj.uphone/copy_res.bat b/tests/proj.uphone/copy_res.bat similarity index 100% rename from test_uphone/proj.uphone/copy_res.bat rename to tests/proj.uphone/copy_res.bat diff --git a/test_uphone/proj.uphone/test_uphone.vcproj b/tests/proj.uphone/test_uphone.vcproj similarity index 95% rename from test_uphone/proj.uphone/test_uphone.vcproj rename to tests/proj.uphone/test_uphone.vcproj index 5245983d4b..6d7045fde8 100644 --- a/test_uphone/proj.uphone/test_uphone.vcproj +++ b/tests/proj.uphone/test_uphone.vcproj @@ -17,7 +17,7 @@