summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dalos/Dalos.cc5
-rw-r--r--Dalos/Hexview.cc8
-rw-r--r--Dalos/Hexview.h3
3 files changed, 12 insertions, 4 deletions
diff --git a/Dalos/Dalos.cc b/Dalos/Dalos.cc
index f9d2805..b7c201a 100644
--- a/Dalos/Dalos.cc
+++ b/Dalos/Dalos.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: Dalos.cc,v 1.17 2005-03-31 16:23:04 pixel Exp $ */
+/* $Id: Dalos.cc,v 1.18 2005-06-20 22:43:35 pixel Exp $ */
#include <SDL.h>
#include <SDL_thread.h>
@@ -287,7 +287,7 @@ class about : public mogltk::widgets::action {
virtual void do_action(mogltk::widget * w) {
new mogltk::widgets::MsgBox(w->Shaper(), w->Father(), "About...",
"Dalos version 0.1 - OpenGL version\n"
- "Copyright (C) 2004 Nicolas \"Pixel\" Noble\n"
+ "Copyright (C) 2004-2005 Nicolas \"Pixel\" Noble\n"
"\n"
"Thanks and greetings fly to (no particular order)\n"
"GreatSkaori, Orphis, Ti Dragon, Yaz0r, S-O-R,\n"
@@ -304,6 +304,7 @@ virtual int startup() throw (GeneralException) {
new Archive(argv[0], ARCHIVE_EXECUTABLE);
}
catch (...) {
+ printm(M_INFO, "Built-in data file unreadable, looking for external .paq file.\n");
new Archive("Dalos.paq");
}
diff --git a/Dalos/Hexview.cc b/Dalos/Hexview.cc
index 0519526..109aa3a 100644
--- a/Dalos/Hexview.cc
+++ b/Dalos/Hexview.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: Hexview.cc,v 1.2 2005-02-24 11:30:04 pixel Exp $ */
+/* $Id: Hexview.cc,v 1.3 2005-06-20 22:43:35 pixel Exp $ */
#include <SDL.h>
@@ -142,6 +142,7 @@ int hexview::get_shift() {
void hexview::bind_handle(Handle * _h) {
h = _h;
+ refresh_data();
}
Uint8 * hexview::get_data() {
@@ -161,6 +162,11 @@ Uint8 * hexview::get_data() {
return data;
}
+void hexview::refresh_data() {
+ size_loaded = 0;
+ get_data();
+}
+
void hexview::draw() {
int i, max_o, j, k, start_o, l, c;
diff --git a/Dalos/Hexview.h b/Dalos/Hexview.h
index 1d604cc..a550e04 100644
--- a/Dalos/Hexview.h
+++ b/Dalos/Hexview.h
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: Hexview.h,v 1.2 2004-12-29 01:58:33 pixel Exp $ */
+/* $Id: Hexview.h,v 1.3 2005-06-20 22:43:35 pixel Exp $ */
#ifndef __HEXVIEW_H__
#define __HEXVIEW_H__
@@ -45,6 +45,7 @@ class hexview : public mogltk::widget {
int get_shift();
void bind_handle(Handle * _h);
Uint8 * get_data();
+ void refresh_data();
virtual void draw();
protected:
virtual void resize_notify();