SethRobinson / UGT

Universal Game Translator - Uses Google's Cloud Vision to read and speak dialog from any image/game in any language
https://www.codedojo.com/?p=2426
Other
117 stars 23 forks source link

Linux port? #29

Open gmipf opened 3 years ago

gmipf commented 3 years ago

Do you consider or ever will port this to Linux? I'm a Linux and macOS only user.

Meerkov commented 3 years ago

As far as I understand, this is just a demo for windows (according to the readme). I'm pretty sure the graphics bindings are quite different between OS, so I think it's not a simple thing to port.

Your best bet might be running it in DosBox

SethRobinson commented 3 years ago

Yeah, it would take some work. While Proton SDK (the framework it runs on) does support mac and linux as targets (OpenGL for rendering and FMOD are fine for example), the 'weird' and special things UGT does are Windows-specific and would need to be abstracted or hacked around.

The parts that currently won't work on Linux/mac (and iphone/android for that matter)

The files to look at specifically: HotKeyHandler.cpp, WinDesktopCapture.cpp, WinDragRect.cpp.

For example, on OSX, we'd want to write a OSXDesktopCapture.cpp and link that instead of the Win* versions, etc.

I suspect Mac would be easier to get going due to only one kind of desktop layer to worry about, but we'd need a motivated expert to fill in the missing functionality. Any volunteers? :)