• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 318 319 320 321 322 ... 1180 Next »

How to tell which game is running? (from another program)
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
How to tell which game is running? (from another program)
04-10-2017, 12:14 AM
#1
yhk
Unregistered
 
As title

Specifically, I want to use autohotkey to load another autohotkey script when a specific game is running.
I am ready to use window 10's API via DllCalls.

And how to tell where in the memory is the game running. Currently, I use a memory search for the gameID in memory when the script is loaded which is not efficient.
Reply
04-10-2017, 01:04 AM
#2
Helios Offline
Stellaaaaaaa
**********
Developers (Some Administrators and Super Moderators)
Posts: 4,395
Threads: 15
Joined: May 2012
You can't really. The best you can do is pull the GameID.
Find
Reply
04-10-2017, 12:23 PM
#3
yhk
Unregistered
 
Well, I have the "background" AHK script pulling the Dolphin process every few seconds.

Would it be possible to program (in further updates) a few fixed locations in the Dolphin process as pointers to the game ID and the memory location where the games is running from (for cheats implementations)?

Or at least show some info on the title bar, status bar or as some window's visible/hidden text? AHK can pull those info with ease relatively.
Reply
04-10-2017, 04:44 PM
#4
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,693
Threads: 7
Joined: Oct 2014
We do have an API for reading the emulated memory (and the game ID is in a fixed location in there), but it isn't supported on Windows right now.
Find
Reply
04-10-2017, 07:19 PM
#5
yhk
Unregistered
 
Thanks for the info. Hope that will be supported in Windows eventually.

Showing the gameID or game title/iso name on the title bar/status bar should be easy across the platforms. Or so I think...
Reply
04-10-2017, 08:43 PM
#6
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,693
Threads: 7
Joined: Oct 2014
Yes, it wouldn't be hard to show that in the title bar. I don't know if people want to add it, though.
Find
Reply
04-11-2017, 12:28 AM
#7
Helios Offline
Stellaaaaaaa
**********
Developers (Some Administrators and Super Moderators)
Posts: 4,395
Threads: 15
Joined: May 2012
It would involve modifying every game we have a gameINI for to move the title to an actual entry instead a comment because I don't like the idea of making a hacky little parser to get the title out of the first line comment =/

This is also assuming that we ship gameini with every single game. I don't believe we do.
Find
Reply
04-11-2017, 12:33 AM
#8
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,693
Threads: 7
Joined: Oct 2014
(04-11-2017, 12:28 AM)Helios Wrote: It would involve modifying every game we have a gameINI for to move the title to an actual entry instead a comment because I don't like the idea of making a hacky little parser to get the title out of the first line comment =/

This is also assuming that we ship gameini with every single game. I don't believe we do.

That's not necessary – we can read the title in the same way as the game list does. The titles in the game INIs aren't correct all the time anyway.
Find
Reply
04-12-2017, 12:20 AM
#9
Helios Offline
Stellaaaaaaa
**********
Developers (Some Administrators and Super Moderators)
Posts: 4,395
Threads: 15
Joined: May 2012
Oh right, I forgot about that
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode