summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/Gtk2Gui.c8
-rw-r--r--gui/Plugin.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/gui/Gtk2Gui.c b/gui/Gtk2Gui.c
index 535e42c0..0dff71e8 100644
--- a/gui/Gtk2Gui.c
+++ b/gui/Gtk2Gui.c
@@ -436,7 +436,7 @@ void OnFile_RunExe() {
SetIsoFile(NULL);
LoadPlugins();
- NetOpened = 0;
+ NetOpened = FALSE;
if (OpenPlugins() == -1) {
g_free(file);
@@ -469,7 +469,7 @@ void OnFile_RunCd() {
SetIsoFile(NULL);
LoadPlugins();
- NetOpened = 0;
+ NetOpened = FALSE;
if (OpenPlugins() == -1) {
SysRunGui();
@@ -511,7 +511,7 @@ void OnFile_RunBios() {
SetIsoFile(NULL);
LoadPlugins();
- NetOpened = 0;
+ NetOpened = FALSE;
if (OpenPlugins() == -1) {
SysRunGui();
@@ -594,7 +594,7 @@ void OnFile_RunImage() {
g_free(filename);
LoadPlugins();
- NetOpened = 0;
+ NetOpened = FALSE;
if (OpenPlugins() == -1) {
SysRunGui();
diff --git a/gui/Plugin.c b/gui/Plugin.c
index 98e057da..e5c4cbe8 100644
--- a/gui/Plugin.c
+++ b/gui/Plugin.c
@@ -288,7 +288,7 @@ int _OpenPlugins() {
ret = PAD2_open(&gpuDisp);
if (ret < 0) { SysMessage(_("Error opening Controller 2 plugin!")); return -1; }
- if (Config.UseNet && NetOpened == 0) {
+ if (Config.UseNet && !NetOpened) {
netInfo info;
char path[MAXPATHLEN];
char dotdir[MAXPATHLEN];
@@ -341,7 +341,7 @@ int _OpenPlugins() {
if (RecvPcsxInfo() == -1) Config.UseNet = 0;
}
}
- NetOpened = 1;
+ NetOpened = TRUE;
} else if (Config.UseNet) {
NET_resume();
}