Update to v094r41 release (open beta).

byuu says:

Changelog (since the last open beta):
- icarus is now included. icarus is used to import game files/archives
  into game paks (folders)
- SNES: mid-scanline BGMODE changes now emulated correctly (used only by
  atx2.smc Anthrox Demo)
- GBA: fixed a CPU bug that was causing dozens of games to have
  distorted audio
- GBA: fixed default FlashROM ID; should allow much higher compatibility
- GBA: now using Cydrak's new, much improved, GBA color emulation filter
  (still a work-in-progress)
- re-added command-line loading support for game paks (not for game
  files/archives, sorry!)
- Qt port now compiles and runs again (may be a little buggy;
  Windows/GTK+ ports preferred)
- SNES performance profile now compiles and runs again
- much more
This commit is contained in:
Tim Allen
2015-08-21 20:56:39 +10:00
parent 4344b916b6
commit 213879771e
62 changed files with 499 additions and 515 deletions

View File

@@ -39,7 +39,7 @@
#include "widget/console.cpp"
#include "widget/frame.cpp"
#include "widget/hex-edit.cpp"
#include "widget/horizontal-scroller.cpp"
#include "widget/horizontal-scroll-bar.cpp"
#include "widget/horizontal-slider.cpp"
#include "widget/icon-view.cpp"
#include "widget/icon-view-item.cpp"
@@ -59,7 +59,7 @@
#include "widget/text-edit.cpp"
#include "widget/tree-view.cpp"
#include "widget/tree-view-item.cpp"
#include "widget/vertical-scroller.cpp"
#include "widget/vertical-scroll-bar.cpp"
#include "widget/vertical-slider.cpp"
#include "widget/viewport.cpp"

View File

@@ -50,7 +50,7 @@ namespace hiro {
#include "widget/console.hpp"
#include "widget/frame.hpp"
#include "widget/hex-edit.hpp"
#include "widget/horizontal-scroller.hpp"
#include "widget/horizontal-scroll-bar.hpp"
#include "widget/horizontal-slider.hpp"
#include "widget/icon-view.hpp"
#include "widget/icon-view-item.hpp"
@@ -70,7 +70,7 @@ namespace hiro {
#include "widget/text-edit.hpp"
#include "widget/tree-view.hpp"
#include "widget/tree-view-item.hpp"
#include "widget/vertical-scroller.hpp"
#include "widget/vertical-scroll-bar.hpp"
#include "widget/vertical-slider.hpp"
#include "widget/viewport.hpp"

View File

@@ -1,34 +1,34 @@
#if defined(Hiro_HorizontalScroller)
#if defined(Hiro_HorizontalScrollBar)
namespace hiro {
static auto HorizontalScroller_change(GtkRange* gtkRange, pHorizontalScroller* p) -> void {
static auto HorizontalScrollBar_change(GtkRange* gtkRange, pHorizontalScrollBar* p) -> void {
auto position = (unsigned)gtk_range_get_value(gtkRange);
if(p->state().position == position) return;
p->state().position = position;
if(!p->locked()) p->self().doChange();
}
auto pHorizontalScroller::construct() -> void {
auto pHorizontalScrollBar::construct() -> void {
gtkWidget = gtk_hscrollbar_new(0);
setLength(state().length);
setPosition(state().position);
g_signal_connect(G_OBJECT(gtkWidget), "value-changed", G_CALLBACK(HorizontalScroller_change), (gpointer)this);
g_signal_connect(G_OBJECT(gtkWidget), "value-changed", G_CALLBACK(HorizontalScrollBar_change), (gpointer)this);
pWidget::construct();
}
auto pHorizontalScroller::destruct() -> void {
auto pHorizontalScrollBar::destruct() -> void {
gtk_widget_destroy(gtkWidget);
}
auto pHorizontalScroller::minimumSize() const -> Size {
auto pHorizontalScrollBar::minimumSize() const -> Size {
return {0, 20};
}
auto pHorizontalScroller::setLength(unsigned length) -> void {
auto pHorizontalScrollBar::setLength(unsigned length) -> void {
lock();
length += length == 0;
gtk_range_set_range(GTK_RANGE(gtkWidget), 0, max(1u, length - 1));
@@ -36,7 +36,7 @@ auto pHorizontalScroller::setLength(unsigned length) -> void {
unlock();
}
auto pHorizontalScroller::setPosition(unsigned position) -> void {
auto pHorizontalScrollBar::setPosition(unsigned position) -> void {
gtk_range_set_value(GTK_RANGE(gtkWidget), position);
}

View File

@@ -1,9 +1,9 @@
#if defined(Hiro_HorizontalScroller)
#if defined(Hiro_HorizontalScrollBar)
namespace hiro {
struct pHorizontalScroller : pWidget {
Declare(HorizontalScroller, Widget)
struct pHorizontalScrollBar : pWidget {
Declare(HorizontalScrollBar, Widget)
auto minimumSize() const -> Size;
auto setLength(unsigned length) -> void;

View File

@@ -66,18 +66,6 @@ auto pListView::remove(sListViewHeader header) -> void {
auto pListView::remove(sListViewItem item) -> void {
}
auto pListView::reset() -> void {
GList* list = gtk_tree_view_get_columns(gtkTreeView);
GList* p = list;
while(p && p->data) {
gtk_tree_view_remove_column(gtkTreeView, (GtkTreeViewColumn*)p->data);
p = p->next;
}
g_list_free(list);
_createModel();
gtk_tree_view_set_rules_hint(gtkTreeView, false);
}
auto pListView::resizeColumns() -> void {
lock();
@@ -159,7 +147,7 @@ auto pListView::_cellWidth(unsigned _row, unsigned _column) -> unsigned {
if(auto item = self().item(_row)) {
if(auto cell = item->cell(_column)) {
if(cell->state.checkable) {
width += 32;
width += 24;
}
if(auto& icon = cell->state.icon) {
width += icon.width() + 2;

View File

@@ -10,7 +10,6 @@ struct pListView : pWidget {
auto focused() const -> bool override;
auto remove(sListViewHeader column) -> void;
auto remove(sListViewItem item) -> void;
auto reset() -> void;
auto resizeColumns() -> void;
auto setAlignment(Alignment alignment) -> void;
auto setBackgroundColor(Color color) -> void;

View File

@@ -1,34 +1,34 @@
#if defined(Hiro_VerticalScroller)
#if defined(Hiro_VerticalScrollBar)
namespace hiro {
static auto VerticalScroller_change(GtkRange* gtkRange, pVerticalScroller* p) -> void {
static auto VerticalScrollBar_change(GtkRange* gtkRange, pVerticalScrollBar* p) -> void {
auto position = (unsigned)gtk_range_get_value(gtkRange);
if(p->state().position == position) return;
p->state().position = position;
if(!p->locked()) p->self().doChange();
}
auto pVerticalScroller::construct() -> void {
auto pVerticalScrollBar::construct() -> void {
gtkWidget = gtk_vscrollbar_new(0);
setLength(state().length);
setPosition(state().position);
g_signal_connect(G_OBJECT(gtkWidget), "value-changed", G_CALLBACK(VerticalScroller_change), (gpointer)this);
g_signal_connect(G_OBJECT(gtkWidget), "value-changed", G_CALLBACK(VerticalScrollBar_change), (gpointer)this);
pWidget::construct();
}
auto pVerticalScroller::destruct() -> void {
auto pVerticalScrollBar::destruct() -> void {
gtk_widget_destroy(gtkWidget);
}
auto pVerticalScroller::minimumSize() const -> Size {
auto pVerticalScrollBar::minimumSize() const -> Size {
return {20, 0};
}
auto pVerticalScroller::setLength(unsigned length) -> void {
auto pVerticalScrollBar::setLength(unsigned length) -> void {
lock();
length += length == 0;
gtk_range_set_range(GTK_RANGE(gtkWidget), 0, max(1u, length - 1));
@@ -36,7 +36,7 @@ auto pVerticalScroller::setLength(unsigned length) -> void {
unlock();
}
auto pVerticalScroller::setPosition(unsigned position) -> void {
auto pVerticalScrollBar::setPosition(unsigned position) -> void {
gtk_range_set_value(GTK_RANGE(gtkWidget), position);
}

View File

@@ -1,9 +1,9 @@
#if defined(Hiro_VerticalScroller)
#if defined(Hiro_VerticalScrollBar)
namespace hiro {
struct pVerticalScroller : pWidget {
Declare(VerticalScroller, Widget)
struct pVerticalScrollBar : pWidget {
Declare(VerticalScrollBar, Widget)
auto minimumSize() const -> Size;
auto setLength(unsigned length) -> void;