mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-04-16 08:45:38 +02:00
byuu says: Changelog: - hiro: added BrowserDialog::openObject() [match file *or* folder by filters] - hiro: BrowserDialog accept button is now disabled when it would otherwise do nothing - eg openFile without a folder to enter or file to open selected - eg saveFile without a file name or with a file name that matches a folder name - bsnes: added support for gamepaks (game folders) - bsnes: store all save states inside per-game .bsz (ZIP) archives instead of .bst/ folders - this reduces the number of state files from 10+ to 1; without having folders sort before files - hiro: both gtk2 and gtk3 now use cairo to render Canvas; supports sx,sy [BearOso] - higan, bsnes: fast PPU/DSP are now run-time options instead of compile-time options - bsnes: disable fast PPU when loading Air Strike Patrol / Desert Fighter - bsnes: disable fast DSP when loading Koushien 2 - bsnes: added options to advanced panel to disable fast PPU and/or fast DSP
69 lines
1.8 KiB
C++
69 lines
1.8 KiB
C++
#pragma once
|
|
|
|
//license: GPLv3
|
|
//started: 2004-10-14
|
|
|
|
#include <emulator/emulator.hpp>
|
|
#include <emulator/thread.hpp>
|
|
#include <emulator/scheduler.hpp>
|
|
#include <emulator/random.hpp>
|
|
#include <emulator/cheat.hpp>
|
|
|
|
#include <processor/arm7tdmi/arm7tdmi.hpp>
|
|
#include <processor/gsu/gsu.hpp>
|
|
#include <processor/hg51b/hg51b.hpp>
|
|
#include <processor/spc700/spc700.hpp>
|
|
#include <processor/upd96050/upd96050.hpp>
|
|
#include <processor/wdc65816/wdc65816.hpp>
|
|
|
|
#if defined(SFC_SUPERGAMEBOY)
|
|
#include <gb/gb.hpp>
|
|
#endif
|
|
|
|
namespace SuperFamicom {
|
|
#define platform Emulator::platform
|
|
namespace File = Emulator::File;
|
|
using Scheduler = Emulator::Scheduler;
|
|
using Random = Emulator::Random;
|
|
using Cheat = Emulator::Cheat;
|
|
extern Scheduler scheduler;
|
|
extern Random random;
|
|
extern Cheat cheat;
|
|
|
|
struct Thread : Emulator::Thread {
|
|
auto create(auto (*entrypoint)() -> void, double frequency) -> void {
|
|
Emulator::Thread::create(entrypoint, frequency);
|
|
scheduler.append(*this);
|
|
}
|
|
|
|
inline auto synchronize(Thread& thread) -> void {
|
|
if(clock() >= thread.clock()) scheduler.resume(thread);
|
|
}
|
|
};
|
|
|
|
struct Region {
|
|
static inline auto NTSC() -> bool;
|
|
static inline auto PAL() -> bool;
|
|
};
|
|
|
|
#include <sfc/system/system.hpp>
|
|
#include <sfc/memory/memory.hpp>
|
|
#include <sfc/ppu/counter/counter.hpp>
|
|
|
|
#include <sfc/cpu/cpu.hpp>
|
|
#include <sfc/smp/smp.hpp>
|
|
#include <sfc/dsp/dsp.hpp>
|
|
#include <sfc/ppu/ppu.hpp>
|
|
|
|
#include <sfc/controller/controller.hpp>
|
|
#include <sfc/expansion/expansion.hpp>
|
|
#include <sfc/coprocessor/coprocessor.hpp>
|
|
#include <sfc/slot/slot.hpp>
|
|
#include <sfc/cartridge/cartridge.hpp>
|
|
|
|
#include <sfc/memory/memory-inline.hpp>
|
|
#include <sfc/ppu/counter/counter-inline.hpp>
|
|
}
|
|
|
|
#include <sfc/interface/interface.hpp>
|