Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
08fb7110
There was an error fetching the commit references. Please try again later.
Commit
08fb7110
authored
10 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
added symbol map load function to Qt GUI
parent
29da6e9a
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/citra_qt/main.cpp
+9
-1
9 additions, 1 deletion
src/citra_qt/main.cpp
src/citra_qt/main.hxx
+5
-4
5 additions, 4 deletions
src/citra_qt/main.hxx
src/citra_qt/main.ui
+12
-6
12 additions, 6 deletions
src/citra_qt/main.ui
src/citra_qt/ui_main.h
+5
-0
5 additions, 0 deletions
src/citra_qt/ui_main.h
with
31 additions
and
11 deletions
src/citra_qt/main.cpp
+
9
−
1
View file @
08fb7110
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include
"core/system.h"
#include
"core/system.h"
#include
"core/loader.h"
#include
"core/loader.h"
#include
"core/core.h"
#include
"core/core.h"
#include
"core/arm/disassembler/load_symbol_map.h"
#include
"version.h"
#include
"version.h"
...
@@ -74,6 +75,7 @@ GMainWindow::GMainWindow()
...
@@ -74,6 +75,7 @@ GMainWindow::GMainWindow()
// Setup connections
// Setup connections
connect
(
ui
.
action_Load_File
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
OnMenuLoadFile
()));
connect
(
ui
.
action_Load_File
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
OnMenuLoadFile
()));
connect
(
ui
.
action_Load_Symbol_Map
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
OnMenuLoadSymbolMap
()));
connect
(
ui
.
action_Start
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
OnStartGame
()));
connect
(
ui
.
action_Start
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
OnStartGame
()));
connect
(
ui
.
action_Pause
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
OnPauseGame
()));
connect
(
ui
.
action_Pause
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
OnPauseGame
()));
connect
(
ui
.
action_Stop
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
OnStopGame
()));
connect
(
ui
.
action_Stop
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
OnStopGame
()));
...
@@ -140,11 +142,17 @@ void GMainWindow::BootGame(const char* filename)
...
@@ -140,11 +142,17 @@ void GMainWindow::BootGame(const char* filename)
void
GMainWindow
::
OnMenuLoadFile
()
void
GMainWindow
::
OnMenuLoadFile
()
{
{
QString
filename
=
QFileDialog
::
getOpenFileName
(
this
,
tr
(
"Load file"
),
QString
(),
tr
(
"3DS homebrew (*.elf *.dat)"
));
QString
filename
=
QFileDialog
::
getOpenFileName
(
this
,
tr
(
"Load file"
),
QString
(),
tr
(
"3DS homebrew (*.elf *.dat
*.bin
)"
));
if
(
filename
.
size
())
if
(
filename
.
size
())
BootGame
(
filename
.
toLatin1
().
data
());
BootGame
(
filename
.
toLatin1
().
data
());
}
}
void
GMainWindow
::
OnMenuLoadSymbolMap
()
{
QString
filename
=
QFileDialog
::
getOpenFileName
(
this
,
tr
(
"Load symbol map"
),
QString
(),
tr
(
"Symbol map (*)"
));
if
(
filename
.
size
())
LoadSymbolMap
(
filename
.
toLatin1
().
data
());
}
void
GMainWindow
::
OnStartGame
()
void
GMainWindow
::
OnStartGame
()
{
{
render_window
->
GetEmuThread
().
SetCpuRunning
(
true
);
render_window
->
GetEmuThread
().
SetCpuRunning
(
true
);
...
...
This diff is collapsed.
Click to expand it.
src/citra_qt/main.hxx
+
5
−
4
View file @
08fb7110
...
@@ -33,10 +33,11 @@ private:
...
@@ -33,10 +33,11 @@ private:
void
closeEvent
(
QCloseEvent
*
event
);
void
closeEvent
(
QCloseEvent
*
event
);
private
slots
:
private
slots
:
void
OnStartGame
();
void
OnStartGame
();
void
OnPauseGame
();
void
OnPauseGame
();
void
OnStopGame
();
void
OnStopGame
();
void
OnMenuLoadFile
();
void
OnMenuLoadFile
();
void
OnMenuLoadSymbolMap
();
void
OnOpenHotkeysDialog
();
void
OnOpenHotkeysDialog
();
void
OnConfigure
();
void
OnConfigure
();
void
ToggleWindowMode
();
void
ToggleWindowMode
();
...
...
This diff is collapsed.
Click to expand it.
src/citra_qt/main.ui
+
12
−
6
View file @
08fb7110
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
<string>
&
File
</string>
<string>
&
File
</string>
</property>
</property>
<addaction
name=
"action_Load_File"
/>
<addaction
name=
"action_Load_File"
/>
<addaction
name=
"action_Load_Symbol_Map"
/>
<addaction
name=
"separator"
/>
<addaction
name=
"separator"
/>
<addaction
name=
"action_Exit"
/>
<addaction
name=
"action_Exit"
/>
</widget>
</widget>
...
@@ -72,12 +73,17 @@
...
@@ -72,12 +73,17 @@
<addaction
name=
"menu_Help"
/>
<addaction
name=
"menu_Help"
/>
</widget>
</widget>
<widget
class=
"QStatusBar"
name=
"statusbar"
/>
<widget
class=
"QStatusBar"
name=
"statusbar"
/>
<action
name=
"action_Load_File"
>
<action
name=
"action_Load_File"
>
<property
name=
"text"
>
<property
name=
"text"
>
<string>
Load file...
</string>
<string>
Load file...
</string>
</property>
</property>
</action>
</action>
<action
name=
"action_Exit"
>
<action
name=
"action_Load_Symbol_Map"
>
<property
name=
"text"
>
<string>
Load symbol map...
</string>
</property>
</action>
<action
name=
"action_Exit"
>
<property
name=
"text"
>
<property
name=
"text"
>
<string>
E
&
xit
</string>
<string>
E
&
xit
</string>
</property>
</property>
...
...
This diff is collapsed.
Click to expand it.
src/citra_qt/ui_main.h
+
5
−
0
View file @
08fb7110
...
@@ -27,6 +27,7 @@ class Ui_MainWindow
...
@@ -27,6 +27,7 @@ class Ui_MainWindow
{
{
public:
public:
QAction
*
action_Load_File
;
QAction
*
action_Load_File
;
QAction
*
action_Load_Symbol_Map
;
QAction
*
action_Exit
;
QAction
*
action_Exit
;
QAction
*
action_Start
;
QAction
*
action_Start
;
QAction
*
action_Pause
;
QAction
*
action_Pause
;
...
@@ -56,6 +57,8 @@ public:
...
@@ -56,6 +57,8 @@ public:
MainWindow
->
setDockNestingEnabled
(
true
);
MainWindow
->
setDockNestingEnabled
(
true
);
action_Load_File
=
new
QAction
(
MainWindow
);
action_Load_File
=
new
QAction
(
MainWindow
);
action_Load_File
->
setObjectName
(
QString
::
fromUtf8
(
"action_Load_File"
));
action_Load_File
->
setObjectName
(
QString
::
fromUtf8
(
"action_Load_File"
));
action_Load_Symbol_Map
=
new
QAction
(
MainWindow
);
action_Load_Symbol_Map
->
setObjectName
(
QString
::
fromUtf8
(
"action_Load_Symbol_Map"
));
action_Exit
=
new
QAction
(
MainWindow
);
action_Exit
=
new
QAction
(
MainWindow
);
action_Exit
->
setObjectName
(
QString
::
fromUtf8
(
"action_Exit"
));
action_Exit
->
setObjectName
(
QString
::
fromUtf8
(
"action_Exit"
));
action_Start
=
new
QAction
(
MainWindow
);
action_Start
=
new
QAction
(
MainWindow
);
...
@@ -101,6 +104,7 @@ public:
...
@@ -101,6 +104,7 @@ public:
menubar
->
addAction
(
menu_View
->
menuAction
());
menubar
->
addAction
(
menu_View
->
menuAction
());
menubar
->
addAction
(
menu_Help
->
menuAction
());
menubar
->
addAction
(
menu_Help
->
menuAction
());
menu_File
->
addAction
(
action_Load_File
);
menu_File
->
addAction
(
action_Load_File
);
menu_File
->
addAction
(
action_Load_Symbol_Map
);
menu_File
->
addSeparator
();
menu_File
->
addSeparator
();
menu_File
->
addAction
(
action_Exit
);
menu_File
->
addAction
(
action_Exit
);
menu_Emulation
->
addAction
(
action_Start
);
menu_Emulation
->
addAction
(
action_Start
);
...
@@ -123,6 +127,7 @@ public:
...
@@ -123,6 +127,7 @@ public:
{
{
MainWindow
->
setWindowTitle
(
QApplication
::
translate
(
"MainWindow"
,
"Citra"
,
0
,
QApplication
::
UnicodeUTF8
));
MainWindow
->
setWindowTitle
(
QApplication
::
translate
(
"MainWindow"
,
"Citra"
,
0
,
QApplication
::
UnicodeUTF8
));
action_Load_File
->
setText
(
QApplication
::
translate
(
"MainWindow"
,
"Load file..."
,
0
,
QApplication
::
UnicodeUTF8
));
action_Load_File
->
setText
(
QApplication
::
translate
(
"MainWindow"
,
"Load file..."
,
0
,
QApplication
::
UnicodeUTF8
));
action_Load_Symbol_Map
->
setText
(
QApplication
::
translate
(
"MainWindow"
,
"Load symbol map..."
,
0
,
QApplication
::
UnicodeUTF8
));
action_Exit
->
setText
(
QApplication
::
translate
(
"MainWindow"
,
"E&xit"
,
0
,
QApplication
::
UnicodeUTF8
));
action_Exit
->
setText
(
QApplication
::
translate
(
"MainWindow"
,
"E&xit"
,
0
,
QApplication
::
UnicodeUTF8
));
action_Start
->
setText
(
QApplication
::
translate
(
"MainWindow"
,
"&Start"
,
0
,
QApplication
::
UnicodeUTF8
));
action_Start
->
setText
(
QApplication
::
translate
(
"MainWindow"
,
"&Start"
,
0
,
QApplication
::
UnicodeUTF8
));
action_Pause
->
setText
(
QApplication
::
translate
(
"MainWindow"
,
"&Pause"
,
0
,
QApplication
::
UnicodeUTF8
));
action_Pause
->
setText
(
QApplication
::
translate
(
"MainWindow"
,
"&Pause"
,
0
,
QApplication
::
UnicodeUTF8
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment