mupen64plus-core | Core module of the Mupen64Plus project
kandi X-RAY | mupen64plus-core Summary
kandi X-RAY | mupen64plus-core Summary
More documentation can be found on the Mupen64Plus website and you can find a more complete README file on the wiki. Mupen64Plus is based off of mupen64, originally created by Hacktarux. This package contains only the Mupen64Plus core library. For a fully functional emulator, the user must also install graphics, sound, input, and RSP plugins, as well as a user interface program (called a front-end).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mupen64plus-core
mupen64plus-core Key Features
mupen64plus-core Examples and Code Snippets
Community Discussions
Trending Discussions on mupen64plus-core
QUESTION
I'm using Mupen64Plus and the included m64p_test_rom.v64
file.
I'm using C# to talk to the mupen64plus.dll
API which is written in C.
Problem
I'm trying to use its API command M64CMD_ROM_GET_HEADER
to get the ROM Header from m64p_test_rom.v64
, which contains properties like Name
, Manufacturer ID
, Country code
. It looks like the command stores the data in a struct
.
The problem is that when the API command is called to populate the struct
, the variables remain null, it does not populate it with new values.
I'm using this C# API code from BizHawk to talk to mupen64plus.dll
.
Commands
Mupen64Plus v2.0 Core Front-End Wiki
CoreDoCommand(m64p_command Command, int ParamInt, void *ParamPtr)
Command Enumerated type specifying which command should be executed.
ParamInt: An integer value which may be used as an input to the command.
ParamPtr: A pointer which may be used as an input to the command.M64CMD_ROM_GET_HEADER
This will retrieve the header data of the currently open ROM. A ROM image must be open.
ParamInt: Pointer to a rom_header struct to receive the data.
ParamPtr: The size in bytes of the rom_header struct.
In my C#
project I created a new struct
to match the one in the Mupen64Plus's C
source code. I'm not sure if I have converted it from C
to C#
correctly.
Mupen64Plus C m64p_types.h
...ANSWER
Answered 2019-Aug-22 at 07:14You have defined/passed the parameters to the method in the wrong order. The second parameter of the delegate is of type int and the third parameter is a void pointer in C and should be used to pass data as a reference. For example, you can find the following code in the link you sent (BizHawk/mupen64pluseCoreApi.cs) :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mupen64plus-core
directory specified on command line with --installdir
same directory as the mupen64plus binary
/usr/local/share/mupen64plus
/usr/share/mupen64plus
current working directory
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page