Do network vblank last, correct spelling

This commit is contained in:
simon.kagstrom 2009-01-29 20:26:40 +00:00
parent f8f469ddaa
commit 978f0ce537
3 changed files with 8 additions and 4 deletions

View File

@ -199,7 +199,7 @@ public:
bool prefs_changed;
char save_game_name[256];
void network_vlbank();
void network_vblank();
void select_disc(Prefs *np);
void select_fake_key_sequence(Prefs *np);

View File

@ -554,7 +554,7 @@ void C64::Run(void)
thread_func();
}
void C64::network_vlbank()
void C64::network_vblank()
{
#if defined(GEKKO)
Uint32 now = ticks_to_millisecs(gettime());
@ -667,7 +667,6 @@ void C64::VBlank(bool draw_frame)
if (draw_frame && this->network_client == NULL) {
TheDisplay->Update();
}
this->network_vlbank();
if (this->have_a_break) {
int submenus[1];
@ -730,6 +729,7 @@ void C64::VBlank(bool draw_frame)
if (this->quit_thyself)
ThePrefs.Save(PREFS_PATH);
}
this->network_vblank();
#if defined(GEKKO)
now = ticks_to_millisecs(gettime());
#else

View File

@ -1,7 +1,11 @@
#ifndef NETWORK_H
#define NETWORK_H
#if defined(GEKKO)
# include <network.h>
#else
#include <arpa/inet.h>
#endif
#include <SDL.h>
#define NETWORK_UPDATE_SIZE (256 * 1024)