浏览代码

WP8: I'm only able to import saved games to Shared folder with Windows Phone Power Tools so...

Wei Mingzhi 9 年之前
父节点
当前提交
30a173d08c
共有 2 个文件被更改,包括 11 次插入1 次删除
  1. 5 1
      winphone/WMAppManifest.xml
  2. 6 0
      winphone/WinPhoneUtil.cpp

+ 5 - 1
winphone/WMAppManifest.xml

@@ -1,10 +1,14 @@
 <?xml version="1.0" encoding="utf-8"?>
 <Deployment xmlns="http://schemas.microsoft.com/windowsphone/2012/deployment" AppPlatformVersion="8.0">
   <DefaultLanguage xmlns="" code="en-US" />
+  <Languages xmlns="">
+    <Language code="zh-TW" />
+    <Language code="zh-CN" />
+    <Language code="en-US" />
+  </Languages>
   <App xmlns="" ProductID="{f59b48bc-5646-4f8b-90b2-4b09a9d94c5c}" Title="SDLPal" RuntimeType="Modern Native" Version="2.0.0.0" Genre="apps.normal" Author="Wei Mingzhi" Description="SDL-based reimplementation of classic Chinese RPG &quot;Xian Jian Qi Xia Zhuan&quot;." Publisher="SDLPal" PublisherID="{f27682c8-453b-451e-8c75-76c006cdede4}">
     <IconPath IsRelative="true" IsResource="false">Assets\ApplicationIcon.png</IconPath>
     <Capabilities>
-      <Capability Name="ID_CAP_REMOVABLE_STORAGE" />
     </Capabilities>
     <Tasks>
       <DefaultTask Name="_default" ImagePath="SDLPal.exe" ImageParams="" />

+ 6 - 0
winphone/WinPhoneUtil.cpp

@@ -40,5 +40,11 @@ MY_fopen(const char *path, const char *mode)
 		_snprintf_s(buf, 1024, "%s\\%s", p, path);
 		fp = _fsopen(buf, mode, 0x40);
 	}
+	if (fp == NULL)
+	{
+		p = GetRootPath();
+		_snprintf_s(buf, 1024, "%s\\Shared\\%s", p, path);
+		fp = _fsopen(buf, mode, 0x40);
+	}
 	return fp;
 }