MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Pages: 1

fuji8bit
MAME Fan
Reged: 03/21/10
Posts: 1
Send PM


How to get an instance of "running_machine" outside the mame.c scope?
#221616 - 05/10/10 11:01 AM


Hi --

I can't find the answer to this on the forums, hoping you can help out.

There is a whole lot of useful information stored in the running_machine class (global_machine), but I can't get an instance of it outside the mame.c scope (global_machine is declared as "static", and is not extern'able).

How do you access the running_machine class in your code?

Thanks!
Steve



Sune
Connected
Reged: 09/21/03
Posts: 5648
Loc: Lagoa Santa, Brasil
Send PM


Re: How to get an instance of "running_machine" outside the mame.c scope? new [Re: fuji8bit]
#221679 - 05/11/10 04:27 AM


> How do you access the running_machine class in your code?

If you could say something about what you're trying to achieve I think your chances of getting help with this would increase. Depending on what it is of course..

S



trap15
EmuDev
Reged: 05/11/10
Posts: 3
Loc: Columbus, OH
Send PM


Re: How to get an instance of "running_machine" outside the mame.c scope? new [Re: fuji8bit]
#221681 - 05/11/10 04:52 AM


I'm fairly sure you aren't supposed to use running_machine. Why would you need it?



Twitter |
I like the challenge of "doing the impossible" with older hardware, and pushing it as far as it can go


Pages: 1

MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Pi 
0 registered and 51 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3630