mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-23 14:42:33 +01:00
byuu says: Changelog: - added Cocoa target: higan can now be compiled for OS X Lion [Cydrak, byuu] - SNES/accuracy profile hires color blending improvements - fixes Marvelous text [AWJ] - fixed a slight bug in SNES/SA-1 VBR support caused by a typo - added support for multi-pass shaders that can load external textures (requires OpenGL 3.2+) - added game library path (used by ananke->Import Game) to Settings->Advanced - system profiles, shaders and cheats database can be stored in "all users" shared folders now (eg /usr/share on Linux) - all configuration files are in BML format now, instead of XML (much easier to read and edit this way) - main window supports drag-and-drop of game folders (but not game files / ZIP archives) - audio buffer clears when entering a modal loop on Windows (prevents audio repetition with DirectSound driver) - a substantial amount of code clean-up (probably the biggest refactoring to date) One highly desired target for this release was to default to the optimal drivers instead of the safest drivers, but because AMD drivers don't seem to like my OpenGL 3.2 driver, I've decided to postpone that. AMD has too big a market share. Hopefully with v093 officially released, we can get some public input on what AMD doesn't like.
61 lines
1.2 KiB
C++
61 lines
1.2 KiB
C++
#ifndef GB_HPP
|
|
#define GB_HPP
|
|
|
|
#include <emulator/emulator.hpp>
|
|
#include <processor/lr35902/lr35902.hpp>
|
|
|
|
namespace GameBoy {
|
|
namespace Info {
|
|
static const char Name[] = "bgb";
|
|
static const unsigned SerializerVersion = 4;
|
|
}
|
|
}
|
|
|
|
/*
|
|
bgb - Game Boy, Super Game Boy, and Game Boy Color emulator
|
|
author: byuu
|
|
license: GPLv3
|
|
project started: 2010-12-27
|
|
*/
|
|
|
|
#include <libco/libco.h>
|
|
|
|
namespace GameBoy {
|
|
struct Thread {
|
|
cothread_t thread;
|
|
unsigned frequency;
|
|
int64_t clock;
|
|
|
|
inline void create(void (*entrypoint)(), unsigned frequency) {
|
|
if(thread) co_delete(thread);
|
|
thread = co_create(65536 * sizeof(void*), entrypoint);
|
|
this->frequency = frequency;
|
|
clock = 0;
|
|
}
|
|
|
|
inline void serialize(serializer& s) {
|
|
s.integer(frequency);
|
|
s.integer(clock);
|
|
}
|
|
|
|
inline Thread() : thread(nullptr) {
|
|
}
|
|
|
|
inline ~Thread() {
|
|
if(thread) co_delete(thread);
|
|
}
|
|
};
|
|
|
|
#include <gb/memory/memory.hpp>
|
|
#include <gb/system/system.hpp>
|
|
#include <gb/scheduler/scheduler.hpp>
|
|
#include <gb/cartridge/cartridge.hpp>
|
|
#include <gb/cpu/cpu.hpp>
|
|
#include <gb/ppu/ppu.hpp>
|
|
#include <gb/apu/apu.hpp>
|
|
#include <gb/cheat/cheat.hpp>
|
|
#include <gb/video/video.hpp>
|
|
};
|
|
|
|
#endif
|