Browse Source

silenced VS2013 warnings

Wei Mingzhi 9 years ago
parent
commit
da9dd32f14
6 changed files with 11 additions and 9 deletions
  1. 2 2
      common.h
  2. 0 1
      input.c
  3. 6 0
      input.h
  4. 0 2
      main.c
  5. 1 0
      util.c
  6. 2 4
      winphone/WMAppManifest.xml

+ 2 - 2
common.h

@@ -116,8 +116,8 @@ extern "C"
 
 #elif defined (__WINPHONE__)
 
-#define PAL_PREFIX            "./"
-#define PAL_SAVE_PREFIX       "./"
+#define PAL_PREFIX            "./Assets/Data/"
+#define PAL_SAVE_PREFIX       "./" // ???
 #define PAL_HAS_TOUCH         1
 
 #else

+ 0 - 1
input.c

@@ -1074,7 +1074,6 @@ PAL_ProcessEvent(
    while (PAL_PollEvent(NULL));
 }
 
-
 int
 PAL_PollEvent(
    SDL_Event *event

+ 6 - 0
input.h

@@ -78,6 +78,12 @@ PAL_ShutdownInput(
    VOID
 );
 
+int
+PAL_PollEvent(
+   SDL_Event *event
+);
+
+
 extern BOOL g_fUseJoystick;
 
 #ifdef __cplusplus

+ 0 - 2
main.c

@@ -502,8 +502,6 @@ main(
 #ifdef _WIN32
 #if SDL_MAJOR_VERSION == 1 && SDL_MINOR_VERSION <= 2
    putenv("SDL_VIDEODRIVER=directx");
-#else
-   putenv("SDL_VIDEODRIVER=windows");
 #endif
 #endif
 

+ 1 - 0
util.c

@@ -23,6 +23,7 @@
 //
 
 #include "util.h"
+#include "input.h"
 
 #ifdef PAL_HAS_NATIVEMIDI
 #include "midi.h"

+ 2 - 4
winphone/WMAppManifest.xml

@@ -1,12 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <Deployment xmlns="http://schemas.microsoft.com/windowsphone/2012/deployment" AppPlatformVersion="8.0">
   <DefaultLanguage xmlns="" code="en-US" />
-  <App xmlns="" ProductID="{f59b48bc-5646-4f8b-90b2-4b09a9d94c5c}" Title="SDLPal" RuntimeType="Modern Native" Version="1.0.0.0" Genre="apps.normal" Author="SDLPal author" Description="SDL-based reimplementation of classic Chinese RPG &quot;Xian Jian Qi Xia Zhuan&quot;." Publisher="SDLPal" PublisherID="{f27682c8-453b-451e-8c75-76c006cdede4}">
+  <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_NETWORKING" />
-      <Capability Name="ID_CAP_MEDIALIB_AUDIO" />
-      <Capability Name="ID_CAP_MEDIALIB_PLAYBACK" />
+      <Capability Name="ID_CAP_REMOVABLE_STORAGE" />
     </Capabilities>
     <Tasks>
       <DefaultTask Name="_default" ImagePath="SDLPal.exe" ImageParams="" />