Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UWP Port possibility #4187

Open
2 tasks done
marcelofrau opened this issue Apr 17, 2023 · 7 comments
Open
2 tasks done

UWP Port possibility #4187

marcelofrau opened this issue Apr 17, 2023 · 7 comments

Comments

@marcelofrau
Copy link

Is your feature request related to a problem? Please describe.

Hello,

I am seeing a lot of traction in UWP applications being developed for emulation and general purpose apps to run in the Xbox environment, specially with the possibility to everyone put their console in Dev Mode, and install custom and public available UWP applications, would be a very nice opportunity to have the fantastic dosbox-x running in a modern console.

The same was done for other emulators, and there is even a retroarch core for dosbox SVN running in the Xbox consoles, but a standalone and much better version of dosbox would be nice to be available there.

I don't have much UWP knowledge, but I am a software engineer for a long time already, not so much experienced with C++ but I'll try to see if I could help to achieve this somehow.

I've seen some other ports using SDL already in UWP, so I think it should not be a problem to port dosbox-x, but this is just speculation from my side.

Thank you,
Best regards

What you want

A port for dosbox-x for UWP.

Describe alternatives you've considered

No response

Additional information

No response

Have you checked that no similar feature request(s) exist?

  • I have searched and didn't find any similar feature request.

Code of Conduct & Contributing Guidelines

  • I agree to follow the code of conduct and the contributing guidelines.
@kcgen
Copy link
Contributor

kcgen commented Apr 17, 2023

For those (like me) who don't know this acronym: UPW is Microsoft's "Universal Windows Platform" app format -- https://learn.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide

@aybe
Copy link
Collaborator

aybe commented Apr 17, 2023

#2647

@Torinde
Copy link
Contributor

Torinde commented Apr 18, 2023

duplicate discussion at #4186 @aybe (maybe "Deprecated" is not clear enough... to change that to: "Please do not create new items"?)

UWP version maybe also can get published at the Microsoft Store or installed on Windows S mode devices, where regular apps are not allowed.

@aybe
Copy link
Collaborator

aybe commented Apr 18, 2023

Well, until @joncampbell123 disables the tab, there really isn't much that I can do 😅.

@marcelofrau
Copy link
Author

Sorry @aybe and @Torinde, I had commented there and just noticed the deprecation notice, then I went and copied in this new ticket and was going to delete the previous one (#4186), and in the mean time @joncampbell123 answered me there, so that's why I kept both. sorry the inconvenience and thanks for closing the other one.

@Torinde
Copy link
Contributor

Torinde commented Apr 18, 2023

SDL2 itself seems to support UWP. If you want to fork DOSBox-X to make a UWP version, that's perfectly fine with me. Perhaps then you could merge your changes back with #ifdef's to separate WIN32 from UWP code and it could be one of the build targets in the VS2019 project/solution files. Does that sound good?

Originally posted by @joncampbell123 in #4186 (comment)

it sounds awesome.. let me see if I can work on this.. will pull the last changes from dosbox and build again on the VS2019 once I'm home.. and will start learning how to work with UWP and see how I would do the port..

thanks for the tips.

Originally posted by @marcelofrau in #4186 (reply in thread)

DOSBox-X uses C++ classes, some templates, and a few STL libraries, but overall keeps the code at a mixed C and C++ level. Pointers are used heavily in this code. Contrary to the "wisdom" in the industry, pointers are not evil, they're fairly simple to manage so long as you don't do anything exotic with them or lose track of memory. Some code, like the scalers, are fairly heavy in #define macro use.

I don't expect SDL1 to make it as UWP code, especially the version used in DOSBox-X that is heavily modified from the original library.

Originally posted by @joncampbell123 in #4186 (comment)

ok, so let me check more about the SDL2 build and see what is the effort to port this.

Originally posted by @marcelofrau in #4186 (reply in thread)

I mean, I know pointers are not evil, I am just not so used to deal with them, but I think this would be the least of my problems to be honest (but well, you never know), I mean, I worked with some JNI libraries wrappers and had to know some C and C++, and also worked with QT and C++, it was some time ago, but I can consider myself a little rusted. let's see..

Originally posted by @marcelofrau in #4186 (reply in thread)

@aybe
Copy link
Collaborator

aybe commented Apr 19, 2023

@marcelofrau well, it turns out that the discussions tabs is opened... again, no harm is done! 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants