mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-05-12 05:25:17 +02:00
byuu says: Main reason for this WIP was because of all the added lines to hiro for selective component disabling. May as well get all the diff-noise apart from code changes. It also merges something I've been talking to Cydrak about ... making nall::string::(integer,decimal) do built-in binary,octal,hex decoding instead of just failing on those. This will have fun little side effects all over the place, like being able to view a topic on my forum via "forum.byuu.org/topic/0b10010110", heh. There are two small changes to higan itself, though. First up, I fixed the resampler ratio when loading non-SNES games. Tested and I can play Game Boy games fine now. Second, I hooked up menu option hiding for reset and controller selection. Right now, this works like higan v094, but I'm thinking I might want to show the "Device -> Controller" even if that's all that's there. It kind of jives nicer with the input settings window to see the labels there, I think. And if we ever do add more stuff, it'll be nice that people already always expect that menu there. Remaining issues: * add slotted cart loader (SGB, BSX, ST) * add DIP switch selection window (NSS) * add timing configuration (video/audio sync)
98 lines
2.7 KiB
C++
98 lines
2.7 KiB
C++
#include <nall/intrinsics.hpp>
|
|
|
|
#if defined(HIRO_WINDOWS)
|
|
#include "../windows/header.hpp"
|
|
#elif defined(HIRO_QT)
|
|
#include "../qt/header.hpp"
|
|
#elif defined(HIRO_GTK)
|
|
#include "../gtk/header.hpp"
|
|
#elif defined(HIRO_COCOA)
|
|
#include "../cocoa/header.hpp"
|
|
#elif defined(HIRO_REFERENCE)
|
|
#include "../reference/header.hpp"
|
|
#endif
|
|
|
|
#include "core.hpp"
|
|
using namespace nall;
|
|
|
|
#if defined(HIRO_WINDOWS)
|
|
#include "../windows/platform.cpp"
|
|
#elif defined(HIRO_QT)
|
|
#include "../qt/platform.cpp"
|
|
#elif defined(HIRO_GTK)
|
|
#include "../gtk/platform.cpp"
|
|
#elif defined(HIRO_COCOA)
|
|
#include "../cocoa/platform.cpp"
|
|
#elif defined(HIRO_REFERENCE)
|
|
#include "../reference/platform.cpp"
|
|
#endif
|
|
|
|
#define signal(function, ...) \
|
|
(delegate ? self()->function(__VA_ARGS__) : decltype(self()->function(__VA_ARGS__))())
|
|
|
|
namespace hiro {
|
|
#include "application.cpp"
|
|
#include "color.cpp"
|
|
#include "position.cpp"
|
|
#include "size.cpp"
|
|
#include "geometry.cpp"
|
|
#include "font.cpp"
|
|
#include "desktop.cpp"
|
|
#include "monitor.cpp"
|
|
#include "keyboard.cpp"
|
|
#include "mouse.cpp"
|
|
#include "browser-window.cpp"
|
|
#include "message-window.cpp"
|
|
#include "object.cpp"
|
|
#include "hotkey.cpp"
|
|
#include "timer.cpp"
|
|
#include "window.cpp"
|
|
#include "status-bar.cpp"
|
|
#include "menu-bar.cpp"
|
|
#include "popup-menu.cpp"
|
|
|
|
#include "action/action.cpp"
|
|
#include "action/menu.cpp"
|
|
#include "action/menu-separator.cpp"
|
|
#include "action/menu-item.cpp"
|
|
#include "action/menu-check-item.cpp"
|
|
#include "action/menu-radio-item.cpp"
|
|
|
|
#include "sizable.cpp"
|
|
#include "layout.cpp"
|
|
|
|
#include "widget/widget.cpp"
|
|
#include "widget/button.cpp"
|
|
#include "widget/canvas.cpp"
|
|
#include "widget/check-button.cpp"
|
|
#include "widget/check-label.cpp"
|
|
#include "widget/combo-button.cpp"
|
|
#include "widget/combo-button-item.cpp"
|
|
#include "widget/console.cpp"
|
|
#include "widget/frame.cpp"
|
|
#include "widget/hex-edit.cpp"
|
|
#include "widget/horizontal-scroller.cpp"
|
|
#include "widget/horizontal-slider.cpp"
|
|
#include "widget/icon-view.cpp"
|
|
#include "widget/icon-view-item.cpp"
|
|
#include "widget/label.cpp"
|
|
#include "widget/line-edit.cpp"
|
|
#include "widget/list-view.cpp"
|
|
#include "widget/list-view-column.cpp"
|
|
#include "widget/list-view-item.cpp"
|
|
#include "widget/progress-bar.cpp"
|
|
#include "widget/radio-button.cpp"
|
|
#include "widget/radio-label.cpp"
|
|
#include "widget/source-edit.cpp"
|
|
#include "widget/tab-frame.cpp"
|
|
#include "widget/tab-frame-item.cpp"
|
|
#include "widget/text-edit.cpp"
|
|
#include "widget/tree-view.cpp"
|
|
#include "widget/tree-view-item.cpp"
|
|
#include "widget/vertical-scroller.cpp"
|
|
#include "widget/vertical-slider.cpp"
|
|
#include "widget/viewport.cpp"
|
|
}
|
|
|
|
#undef signal
|