mirror of https://github.com/mgba-emu/mgba.git
Remove obsolete errno interface
This commit is contained in:
parent
4429435071
commit
228b6aaa01
|
@ -7,8 +7,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|
||||||
static const char* GBA_CANNOT_MMAP = "Could not map memory";
|
|
||||||
|
|
||||||
static void GBASetActiveRegion(struct ARMMemory* memory, uint32_t region);
|
static void GBASetActiveRegion(struct ARMMemory* memory, uint32_t region);
|
||||||
static int GBAWaitMultiple(struct ARMMemory* memory, uint32_t startAddress, int count);
|
static int GBAWaitMultiple(struct ARMMemory* memory, uint32_t startAddress, int count);
|
||||||
|
|
||||||
|
@ -40,8 +38,8 @@ void GBAMemoryInit(struct GBAMemory* memory) {
|
||||||
|
|
||||||
if (!memory->wram || !memory->iwram) {
|
if (!memory->wram || !memory->iwram) {
|
||||||
GBAMemoryDeinit(memory);
|
GBAMemoryDeinit(memory);
|
||||||
memory->p->errno = GBA_OUT_OF_MEMORY;
|
GBALog(memory->p, GBA_LOG_ERROR, "Could not map memory");
|
||||||
memory->p->errstr = GBA_CANNOT_MMAP;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -35,8 +35,6 @@ static void GBAHitStub(struct ARMBoard* board, uint32_t opcode);
|
||||||
static void _checkOverrides(struct GBA* gba, uint32_t code);
|
static void _checkOverrides(struct GBA* gba, uint32_t code);
|
||||||
|
|
||||||
void GBAInit(struct GBA* gba) {
|
void GBAInit(struct GBA* gba) {
|
||||||
gba->errno = GBA_NO_ERROR;
|
|
||||||
gba->errstr = 0;
|
|
||||||
gba->debugger = 0;
|
gba->debugger = 0;
|
||||||
gba->savefile = 0;
|
gba->savefile = 0;
|
||||||
|
|
||||||
|
|
|
@ -88,8 +88,6 @@ struct GBA {
|
||||||
|
|
||||||
const char* activeFile;
|
const char* activeFile;
|
||||||
const char* savefile;
|
const char* savefile;
|
||||||
enum GBAError errno;
|
|
||||||
const char* errstr;
|
|
||||||
int logLevel;
|
int logLevel;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue