mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-10 21:55:11 +01:00
Do network vblank last, correct spelling
This commit is contained in:
parent
f8f469ddaa
commit
978f0ce537
@ -199,7 +199,7 @@ public:
|
|||||||
bool prefs_changed;
|
bool prefs_changed;
|
||||||
char save_game_name[256];
|
char save_game_name[256];
|
||||||
|
|
||||||
void network_vlbank();
|
void network_vblank();
|
||||||
|
|
||||||
void select_disc(Prefs *np);
|
void select_disc(Prefs *np);
|
||||||
void select_fake_key_sequence(Prefs *np);
|
void select_fake_key_sequence(Prefs *np);
|
||||||
|
@ -554,7 +554,7 @@ void C64::Run(void)
|
|||||||
thread_func();
|
thread_func();
|
||||||
}
|
}
|
||||||
|
|
||||||
void C64::network_vlbank()
|
void C64::network_vblank()
|
||||||
{
|
{
|
||||||
#if defined(GEKKO)
|
#if defined(GEKKO)
|
||||||
Uint32 now = ticks_to_millisecs(gettime());
|
Uint32 now = ticks_to_millisecs(gettime());
|
||||||
@ -667,7 +667,6 @@ void C64::VBlank(bool draw_frame)
|
|||||||
if (draw_frame && this->network_client == NULL) {
|
if (draw_frame && this->network_client == NULL) {
|
||||||
TheDisplay->Update();
|
TheDisplay->Update();
|
||||||
}
|
}
|
||||||
this->network_vlbank();
|
|
||||||
|
|
||||||
if (this->have_a_break) {
|
if (this->have_a_break) {
|
||||||
int submenus[1];
|
int submenus[1];
|
||||||
@ -730,6 +729,7 @@ void C64::VBlank(bool draw_frame)
|
|||||||
if (this->quit_thyself)
|
if (this->quit_thyself)
|
||||||
ThePrefs.Save(PREFS_PATH);
|
ThePrefs.Save(PREFS_PATH);
|
||||||
}
|
}
|
||||||
|
this->network_vblank();
|
||||||
#if defined(GEKKO)
|
#if defined(GEKKO)
|
||||||
now = ticks_to_millisecs(gettime());
|
now = ticks_to_millisecs(gettime());
|
||||||
#else
|
#else
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
#ifndef NETWORK_H
|
#ifndef NETWORK_H
|
||||||
#define NETWORK_H
|
#define NETWORK_H
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#if defined(GEKKO)
|
||||||
|
# include <network.h>
|
||||||
|
#else
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
#endif
|
||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
|
|
||||||
#define NETWORK_UPDATE_SIZE (256 * 1024)
|
#define NETWORK_UPDATE_SIZE (256 * 1024)
|
||||||
|
Loading…
Reference in New Issue
Block a user