-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Anders429/0.2.0
0.2.0
- Loading branch information
Showing
19 changed files
with
333 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "tests/mgba_logs/mgba"] | ||
path = tests/mgba_logs/mgba | ||
path = tests/mgba_log_reporter/mgba | ||
url = https://github.com/mgba-emu/mgba.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
tests/mgba_logs/Cargo.toml → tests/mgba_log_reporter/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// These are bindings to mGBA's core itself. | ||
// | ||
// Defined here are all of the structs and functions necessary for the binary to set up and | ||
// interact directly with an mGBA instance. | ||
|
||
#include <stdbool.h> | ||
#include <stdint.h> | ||
|
||
struct MGBA; | ||
|
||
// Creates a new instance of mGBA, loaded with the provided ROM. | ||
struct MGBA* load(char* rom); | ||
|
||
struct callback { | ||
void* data; | ||
void (*callback)(void*, char[], uint8_t); | ||
void (*destroy)(void*); | ||
}; | ||
|
||
// Sets a function to be called when logs are received. | ||
void set_log_callback(struct MGBA* mgba, struct callback callback); | ||
|
||
// Reports whether the ROM processing has finished. | ||
// | ||
// This is reported by the ROM itself by writing the value `3` to `0x0203FFFF`. | ||
bool is_finished(struct MGBA* mgba); | ||
|
||
// Advance emulation by a single step. | ||
void step(struct MGBA* mgba); | ||
|
||
// Free the mGBA instance. | ||
void drop(struct MGBA* mgba); |
Submodule mgba
updated
from 000000 to 17a549
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//! Exposes the bindings used for operating with mGBA directly. | ||
|
||
#![allow( | ||
dead_code, | ||
non_camel_case_types, | ||
non_snake_case, | ||
non_upper_case_globals | ||
)] | ||
|
||
// Bindings are generated by build.rs. | ||
include!(concat!(env!("OUT_DIR"), "/bindings.rs")); |
Oops, something went wrong.