2013-04-18 03:43:35 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2009-02-06 18:04:24 +00:00
|
|
|
|
2008-12-18 00:37:24 +00:00
|
|
|
#include "Common.h"
|
2008-12-08 05:30:24 +00:00
|
|
|
#include "AboutDolphin.h"
|
2013-02-28 04:37:38 +00:00
|
|
|
#include "WxUtils.h"
|
2008-12-08 05:30:24 +00:00
|
|
|
#include "../resources/dolphin_logo.cpp"
|
|
|
|
|
2010-06-10 14:39:08 +00:00
|
|
|
AboutDolphin::AboutDolphin(wxWindow *parent, wxWindowID id,
|
2011-03-15 21:57:00 +00:00
|
|
|
const wxString &title, const wxPoint &position,
|
|
|
|
const wxSize& size, long style)
|
2010-06-10 14:39:08 +00:00
|
|
|
: wxDialog(parent, id, title, position, size, style)
|
2008-12-08 05:30:24 +00:00
|
|
|
{
|
|
|
|
wxMemoryInputStream istream(dolphin_logo_png, sizeof dolphin_logo_png);
|
|
|
|
wxImage iDolphinLogo(istream, wxBITMAP_TYPE_PNG);
|
2011-03-15 21:57:00 +00:00
|
|
|
wxStaticBitmap* const sbDolphinLogo = new wxStaticBitmap(this, wxID_ANY,
|
|
|
|
wxBitmap(iDolphinLogo));
|
2010-06-10 14:39:08 +00:00
|
|
|
|
2013-09-07 02:02:11 +00:00
|
|
|
const wxString Text = wxString::Format(_("Dolphin %s\n"
|
|
|
|
"Copyright (c) 2003-2013+ Dolphin Team\n"
|
|
|
|
"\n"
|
|
|
|
"Branch: %s\n"
|
|
|
|
"Revision: %s\n"
|
|
|
|
"Compiled: %s @ %s\n"
|
|
|
|
"\n"
|
|
|
|
"Dolphin is a Gamecube/Wii emulator, which was\n"
|
|
|
|
"originally written by F|RES and ector.\n"
|
|
|
|
"Today Dolphin is an open source project with many\n"
|
|
|
|
"contributors, too many to list.\n"
|
|
|
|
"If interested, just go check out the project page at\n"
|
|
|
|
"http://code.google.com/p/dolphin-emu/ .\n"
|
|
|
|
"\n"
|
|
|
|
"Special thanks to Bushing, Costis, CrowTRobo,\n"
|
|
|
|
"Marcan, Segher, Titanik, or9 and Hotquik for their\n"
|
|
|
|
"reverse engineering and docs/demos.\n"
|
|
|
|
"\n"
|
|
|
|
"Big thanks to Gilles Mouchard whose Microlib PPC\n"
|
|
|
|
"emulator gave our development a kickstart.\n"
|
|
|
|
"\n"
|
|
|
|
"Thanks to Frank Wille for his PowerPC disassembler,\n"
|
|
|
|
"which or9 and we modified to include Gekko specifics.\n"
|
|
|
|
"\n"
|
|
|
|
"Thanks to hcs/destop for their GC ADPCM decoder.\n"
|
|
|
|
"\n"
|
|
|
|
"We are not affiliated with Nintendo in any way.\n"
|
|
|
|
"Gamecube and Wii are trademarks of Nintendo.\n"
|
2013-09-23 05:07:19 +00:00
|
|
|
"The emulator should not be used to play games\n"
|
|
|
|
"you do not legally own."),
|
2013-09-23 05:06:03 +00:00
|
|
|
scm_desc_str, scm_branch_str, scm_rev_git_str, __DATE__, __TIME__);
|
2013-09-07 02:02:11 +00:00
|
|
|
|
|
|
|
wxStaticText* const Message = new wxStaticText(this, wxID_ANY, Text);
|
2011-03-15 21:57:00 +00:00
|
|
|
Message->Wrap(GetSize().GetWidth());
|
2008-12-08 05:30:24 +00:00
|
|
|
|
2011-03-15 21:57:00 +00:00
|
|
|
wxBoxSizer* const sInfo = new wxBoxSizer(wxVERTICAL);
|
2011-03-16 22:22:21 +00:00
|
|
|
sInfo->Add(Message, 1, wxEXPAND | wxALL, 5);
|
2011-03-15 21:57:00 +00:00
|
|
|
|
|
|
|
wxBoxSizer* const sMainHor = new wxBoxSizer(wxHORIZONTAL);
|
2011-03-16 22:22:21 +00:00
|
|
|
sMainHor->Add(sbDolphinLogo, 0, wxEXPAND | wxALL, 5);
|
2008-12-08 05:30:24 +00:00
|
|
|
sMainHor->Add(sInfo);
|
|
|
|
|
2011-03-15 21:57:00 +00:00
|
|
|
wxBoxSizer* const sMain = new wxBoxSizer(wxVERTICAL);
|
|
|
|
sMain->Add(sMainHor, 1, wxEXPAND);
|
2011-03-16 22:22:21 +00:00
|
|
|
sMain->Add(CreateButtonSizer(wxOK), 0, wxEXPAND | wxLEFT | wxRIGHT | wxBOTTOM, 5);
|
2008-12-08 05:30:24 +00:00
|
|
|
|
2011-03-16 22:22:21 +00:00
|
|
|
SetSizerAndFit(sMain);
|
2011-03-15 21:57:00 +00:00
|
|
|
Center();
|
|
|
|
SetFocus();
|
2008-12-08 05:30:24 +00:00
|
|
|
}
|