Windows Phone now supports native code (C / C++)
Moderator: ScummVM Team
Hi there!
Based on the work by skristiansson, I managed to create a Win8/RT app project. The project files are messy and it was a pain in the ass to get this far:
Targeting ARM doesn't work because of a LNK1112 error in str.obj (not sure why it's still targeting x86 there). File system access is not working on any platform. So there is still a lot of work to do.
Based on the work by skristiansson, I managed to create a Win8/RT app project. The project files are messy and it was a pain in the ass to get this far:
Targeting ARM doesn't work because of a LNK1112 error in str.obj (not sure why it's still targeting x86 there). File system access is not working on any platform. So there is still a lot of work to do.
-
- Posts: 3
- Joined: Sat Feb 07, 2015 1:24 pm
Quick update:
I am glad to report, that one of the biggest issues with the UWP port has been (pretty much) resolved:
You can now add games via a FolderPicker, which adds the game's location to a whitelist. This way you gain full file access to the chosen path. I managed to launch Indy3/4 from my "Downloads" folder on my Lumia920.
One downside so far is that I had to implement my own ReadStream class to consume the Storage API, since WinRT only allows the usage of fopen etc. only inside it's sandbox. I will have to check the performance on bigger games though...
I am glad to report, that one of the biggest issues with the UWP port has been (pretty much) resolved:
You can now add games via a FolderPicker, which adds the game's location to a whitelist. This way you gain full file access to the chosen path. I managed to launch Indy3/4 from my "Downloads" folder on my Lumia920.
One downside so far is that I had to implement my own ReadStream class to consume the Storage API, since WinRT only allows the usage of fopen etc. only inside it's sandbox. I will have to check the performance on bigger games though...
UPDATE: It's working now thanks to the help of wjp!
____________
I am currently trying to add support for FLAC/OGG, which gives me a lot of trouble.
I'm pretty sure there is something wrong with my ReadStream implementation. You can actually hear the first second of a dialogue line or any SFX before I get this:
The stream class was working fine so far with game files, so I am not sure what is going wrong. Any ideas?
Edit: Link to implementation code
cpp: http://pastebin.com/md3uPMmN
heade: http://pastebin.com/MFD5zb0p
____________
I am currently trying to add support for FLAC/OGG, which gives me a lot of trouble.
I'm pretty sure there is something wrong with my ReadStream implementation. You can actually hear the first second of a dialogue line or any SFX before I get this:
Code: Select all
0xC0000005: Access violation reading location 0x00000000-
Edit: Link to implementation code
cpp: http://pastebin.com/md3uPMmN
heade: http://pastebin.com/MFD5zb0p
Last edited by Lybra on Sat Oct 17, 2015 10:16 am, edited 1 time in total.
Hello.Lybra wrote:I am currently trying to add support for FLAC/OGG, which gives me a lot of trouble.
I'm pretty sure there is something wrong with my ReadStream implementation. You can actually hear the first second of a dialogue line or any SFX before I get this:
The stream class was working fine so far with game files, so I am not sure what is going wrong. Any ideas?Code: Select all
0xC0000005: Access violation reading location 0x00000000-
Edit: Link to implementation code
cpp: http://pastebin.com/md3uPMmN
heade: http://pastebin.com/MFD5zb0p
Have you tried libFLAC++?
It is an open source library to decode FLAC and ogg FLAC.
https://xiph.org/flac/api/
Regards.
Hi Luilly,Luilly wrote: Hello.
Have you tried libFLAC++?
It is an open source library to decode FLAC and ogg FLAC.
https://xiph.org/flac/api/
Regards.
yes I am actually using it and it's working fine now, thanks
Hello.Lybra wrote:Hi Luilly,Luilly wrote: Hello.
Have you tried libFLAC++?
It is an open source library to decode FLAC and ogg FLAC.
https://xiph.org/flac/api/
Regards.
yes I am actually using it and it's working fine now, thanks
So, have you solved all the problems with ogg flac?
Do you have plans for a release date?
Regards.