uwp platform updates

This commit is contained in:
Turanszki Janos
2020-05-10 22:41:38 +01:00
parent 2795554164
commit 88b289dad8
5 changed files with 9 additions and 11 deletions
+3
View File
@@ -46,5 +46,8 @@
<Capabilities>
<rescap:Capability Name="broadFileSystemAccess" />
<uap:Capability Name="objects3D"/>
<uap:Capability Name="musicLibrary"/>
<uap:Capability Name="picturesLibrary"/>
</Capabilities>
</Package>
-2
View File
@@ -224,8 +224,6 @@ namespace wiAudio
break;
default:
LARGE_INTEGER li = LARGE_INTEGER();
li.QuadPart = dwChunkDataSize;
pos += dwChunkDataSize;
}
+4 -8
View File
@@ -362,10 +362,6 @@ namespace wiHelper
return true;
}
#else
if (!FileExists(fileName))
{
return false;
}
using namespace concurrency;
using namespace Platform;
using namespace Windows::Storage;
@@ -390,7 +386,7 @@ namespace wiHelper
}
catch (Platform::AccessDeniedException^ e)
{
messageBox("Opening file failed: " + fileName + " , please allow file system access permission!", "Error!");
messageBox("Opening file failed: " + fileName + "\nPlease allow file system access permission!", "Error!");
end0 = true;
return;
}
@@ -428,8 +424,8 @@ namespace wiHelper
}
#endif // PLATFORM_UWP
messageBox("File not found: " + fileName);
return false;
wiBackLog::post(("File not found: " + fileName).c_str());
return false;
}
bool FileWrite(const std::string& fileName, const uint8_t* data, size_t size)
@@ -523,7 +519,7 @@ namespace wiHelper
}
catch (Platform::AccessDeniedException^ e)
{
messageBox("Opening file failed: " + fileName + " , please allow file system access permission!", "Error!");
messageBox("Opening file failed: " + fileName + "\nPlease allow file system access permission!", "Error!");
end0 = true;
return;
}
+1
View File
@@ -1032,6 +1032,7 @@ bool LoadShader(SHADERSTAGE stage, wiGraphics::Shader& shader, const std::string
{
return GetDevice()->CreateShader(stage, buffer.data(), buffer.size(), &shader);
}
wiHelper::messageBox("Shader not found: " + SHADERPATH + filename);
return false;
}
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 41;
// minor bug fixes, alterations, refactors, updates
const int revision = 12;
const int revision = 13;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);