mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-04-02 10:42:14 -04:00
byuu says: Most notably, this release adds Nintendo DS emulation. The Nintendo DS module was written entirely by Cydrak, so please give him all of the credit for it. I for one am extremely grateful to be allowed to use his module in bsnes. The Nintendo DS emulator's standalone name is dasShiny. You will need the Nintendo DS firmware, which I cannot provide, in order to use it. It also cannot (currently?) detect the save type used by NDS games. As such, manifest.xml files must be created manually for this purpose. The long-term plan is to create a database of save types for each game. Also, you will need an analog input device for the touch screen for now (joypad axes work well.) There have also been a lot of changes from my end: a unified manifest.xml format across all systems, major improvements to SPC7110 emulation, enhancements to RTC emulation, MSU1 enhancements, icons in the file browser list, improvements to SNES coprocessor memory mapping, cleanups and improvements in the libraries used to build bsnes, etc. I've also included kaijuu (which allows launching game folders directly with bsnes) and purify (which allows opening images that are compressed, have copier headers, and have wrong extensions); both of which are fully GUI-based. This release only loads game folders, not files. Use purify to load ROM files in bsnes. Note that this will likely be the last release for a long time, and that I will probably rename the emulator for the next release, due to how many additional systems it now supports.
63 lines
2.1 KiB
C++
63 lines
2.1 KiB
C++
#ifndef NALL_INTRINSICS_HPP
|
|
#define NALL_INTRINSICS_HPP
|
|
|
|
struct Intrinsics {
|
|
enum class Compiler : unsigned { GCC, VisualC, Unknown };
|
|
enum class Platform : unsigned { X, OSX, Windows, Unknown };
|
|
enum class Endian : unsigned { LSB, MSB, Unknown };
|
|
|
|
static inline Compiler compiler();
|
|
static inline Platform platform();
|
|
static inline Endian endian();
|
|
};
|
|
|
|
/* Compiler detection */
|
|
|
|
#if defined(__GNUC__)
|
|
#define COMPILER_GCC
|
|
Intrinsics::Compiler Intrinsics::compiler() { return Intrinsics::Compiler::GCC; }
|
|
#elif defined(_MSC_VER)
|
|
#define COMPILER_VISUALC
|
|
Intrinsics::Compiler Intrinsics::compiler() { return Intrinsics::Compiler::VisualC; }
|
|
#else
|
|
#warning "unable to detect compiler"
|
|
#define COMPILER_UNKNOWN
|
|
Intrinsics::Compiler Intrinsics::compiler() { return Intrinsics::Compiler::Unknown; }
|
|
#endif
|
|
|
|
/* Platform detection */
|
|
|
|
#if defined(linux) || defined(__sun__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
|
#define PLATFORM_X
|
|
Intrinsics::Platform Intrinsics::platform() { return Intrinsics::Platform::X; }
|
|
#elif defined(__APPLE__)
|
|
#define PLATFORM_OSX
|
|
Intrinsics::Platform Intrinsics::platform() { return Intrinsics::Platform::OSX; }
|
|
#elif defined(_WIN32)
|
|
#define PLATFORM_WINDOWS
|
|
#define PLATFORM_WIN
|
|
Intrinsics::Platform Intrinsics::platform() { return Intrinsics::Platform::Windows; }
|
|
#else
|
|
#warning "unable to detect platform"
|
|
#define PLATFORM_UNKNOWN
|
|
Intrinsics::Platform Intrinsics::platform() { return Intrinsics::Platform::Unknown; }
|
|
#endif
|
|
|
|
/* Endian detection */
|
|
|
|
#if defined(__i386__) || defined(__amd64__) || defined(_M_IX86) || defined(_M_AMD64)
|
|
#define ENDIAN_LSB
|
|
#define ARCH_LSB
|
|
Intrinsics::Endian Intrinsics::endian() { return Intrinsics::Endian::LSB; }
|
|
#elif defined(__powerpc__) || defined(_M_PPC) || defined(__BIG_ENDIAN__)
|
|
#define ENDIAN_MSB
|
|
#define ARCH_MSB
|
|
Intrinsics::Endian Intrinsics::endian() { return Intrinsics::Endian::MSB; }
|
|
#else
|
|
#warning "unable to detect endian"
|
|
#define ENDIAN_UNKNOWN
|
|
#define ARCH_UNKNOWN
|
|
Intrinsics::Endian Intrinsics::endian() { return Intrinsics::Endian::Unknown; }
|
|
#endif
|
|
|
|
#endif
|