From 01358f0b62e246507e6734a677680b601b17e1f7 Mon Sep 17 00:00:00 2001 From: huangshiwu Date: Fri, 5 Sep 2014 11:21:08 +0800 Subject: [PATCH] fix wp8 compile error and modify default resource path --- cocos/2d/cocos2d_wp8.vcxproj | 4 ++++ cocos/2d/cocos2d_wp8.vcxproj.filters | 12 ++++++++++ cocos/platform/winrt/CCFileUtilsWinRT.cpp | 2 +- extensions/proj.wp8/libExtensions.vcxproj | 7 ------ .../proj.wp8/libExtensions.vcxproj.filters | 24 ------------------- .../proj.wp8-xaml/App/HelloCpp.csproj | 24 +++++++++++-------- .../cpp-testsComponent.vcxproj | 4 ---- .../cpp-testsComponent.vcxproj.filters | 20 ++-------------- 8 files changed, 33 insertions(+), 64 deletions(-) diff --git a/cocos/2d/cocos2d_wp8.vcxproj b/cocos/2d/cocos2d_wp8.vcxproj index bd9eafacf0..58078bb03d 100644 --- a/cocos/2d/cocos2d_wp8.vcxproj +++ b/cocos/2d/cocos2d_wp8.vcxproj @@ -230,6 +230,7 @@ + @@ -367,6 +368,7 @@ + @@ -453,6 +455,7 @@ + @@ -596,6 +599,7 @@ + diff --git a/cocos/2d/cocos2d_wp8.vcxproj.filters b/cocos/2d/cocos2d_wp8.vcxproj.filters index 154b65da34..0634b1b385 100644 --- a/cocos/2d/cocos2d_wp8.vcxproj.filters +++ b/cocos/2d/cocos2d_wp8.vcxproj.filters @@ -653,6 +653,12 @@ 3d + + renderer + + + 3d + @@ -1334,6 +1340,12 @@ 3d + + renderer + + + 3d + diff --git a/cocos/platform/winrt/CCFileUtilsWinRT.cpp b/cocos/platform/winrt/CCFileUtilsWinRT.cpp index a5b0e7214c..736a597504 100644 --- a/cocos/platform/winrt/CCFileUtilsWinRT.cpp +++ b/cocos/platform/winrt/CCFileUtilsWinRT.cpp @@ -53,7 +53,7 @@ static void _checkPath() if (s_pszResourcePath.empty()) { // TODO: needs to be tested - s_pszResourcePath = convertPathFormatToUnixStyle(CCFileUtilsWinRT::getAppPath() + '\\' + "Assets\\res" + '\\'); + s_pszResourcePath = convertPathFormatToUnixStyle(CCFileUtilsWinRT::getAppPath() + '\\' + "Assets\\Resources" + '\\'); } } diff --git a/extensions/proj.wp8/libExtensions.vcxproj b/extensions/proj.wp8/libExtensions.vcxproj index 451b0d11ef..72380f216e 100644 --- a/extensions/proj.wp8/libExtensions.vcxproj +++ b/extensions/proj.wp8/libExtensions.vcxproj @@ -176,9 +176,6 @@ - - - @@ -208,10 +205,6 @@ - - - - diff --git a/extensions/proj.wp8/libExtensions.vcxproj.filters b/extensions/proj.wp8/libExtensions.vcxproj.filters index 57969f624b..2a3c131354 100644 --- a/extensions/proj.wp8/libExtensions.vcxproj.filters +++ b/extensions/proj.wp8/libExtensions.vcxproj.filters @@ -13,9 +13,6 @@ {d5806151-7ae1-4fef-af5a-2fa1d1c7377b} - - {5d186e3d-0aaf-4904-a5d8-e5cb0f35f4cc} - {49487dbe-5758-436a-b014-8e2edc6b33ae} @@ -57,27 +54,18 @@ GUI\CCControlExtension - - GUI\CCControlExtension - GUI\CCControlExtension GUI\CCControlExtension - - GUI\CCEditBox - physics_nodes physics_nodes - - GUI\CCEditBox - @@ -125,27 +113,15 @@ GUI\CCControlExtension - - GUI\CCControlExtension - GUI\CCControlExtension - - GUI\CCEditBox - - - GUI\CCEditBox - physics_nodes physics_nodes - - GUI\CCEditBox - \ No newline at end of file diff --git a/templates/cpp-template-default/proj.wp8-xaml/App/HelloCpp.csproj b/templates/cpp-template-default/proj.wp8-xaml/App/HelloCpp.csproj index 19d93505a5..2f4cec563c 100644 --- a/templates/cpp-template-default/proj.wp8-xaml/App/HelloCpp.csproj +++ b/templates/cpp-template-default/proj.wp8-xaml/App/HelloCpp.csproj @@ -102,12 +102,24 @@ + + Assets\Resources\fonts\Marker Felt.ttf + Designer + + Assets\Resources\CloseNormal.png + + + Assets\Resources\CloseSelected.png + + + Assets\Resources\HelloWorld.png + PreserveNewest @@ -154,14 +166,7 @@ Designer - - - - Assets\res\%(RecursiveDir)%(FileName)%(Extension) - PreserveNewest - - - + - - + \ No newline at end of file diff --git a/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj b/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj index 60ea821193..b1c32cce74 100644 --- a/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj +++ b/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj @@ -207,11 +207,9 @@ - - @@ -411,11 +409,9 @@ - - diff --git a/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj.filters b/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj.filters index 44d9ce5bea..3a2638f4ef 100644 --- a/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj.filters +++ b/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj.filters @@ -199,9 +199,6 @@ {a4c2111f-cf9f-492c-884d-3de24715adce} - - {18a69e7e-8ca7-475a-bfbb-7296baab16ce} - {0ef55f53-411a-4661-b5d5-13930da52e68} @@ -217,9 +214,6 @@ {81ec2355-7efd-49e0-b6cb-b1bba23fbbc8} - - {3d73aa04-d66e-43d3-921f-b867a753c113} - {a6e7d28e-46a3-46c4-9735-b39e96f776f0} @@ -582,9 +576,6 @@ Classes\FileUtilsTest - - Classes\ExtensionsTest\EditBoxTest - Classes\ExtensionsTest\CocosBuilderTest\TimelineCallbackTest @@ -600,9 +591,6 @@ Classes - - Classes\ExtensionsTest\Scale9SpriteTest - Classes\LabelTest @@ -867,6 +855,7 @@ Classes\Camera3DTest + @@ -1298,9 +1287,6 @@ Classes\FileUtilsTest - - Classes\ExtensionsTest\EditBoxTest - Classes\ExtensionsTest\CocosBuilderTest\TimelineCallbackTest @@ -1322,9 +1308,6 @@ Classes - - Classes\ExtensionsTest\Scale9SpriteTest - Classes\LabelTest @@ -1605,6 +1588,7 @@ Classes\Camera3DTest +