Fixing errors of compilation.
This commit is contained in:
parent
35116c80f2
commit
0c6847a76c
@ -28,4 +28,6 @@ struct msCoreController *
|
||||
msCoreControllerNew (struct mCore *core, struct msClientConnectionData *const data);
|
||||
void
|
||||
msCoreControllerThreadStart (struct msCoreController *const core_controller);
|
||||
void
|
||||
msCoreControllerSetFrameCallback(struct msCoreController *const self, void(*callback)(struct mCoreThread *));
|
||||
#endif
|
||||
|
@ -8,7 +8,7 @@
|
||||
/**
|
||||
* The possible values for a packet id.
|
||||
*/
|
||||
extern enum {
|
||||
enum {
|
||||
PACKET_GET_HELLO, //! Packet id for get hello.
|
||||
PACKET_SEND_FRAME, //! Packet id for send frame.
|
||||
PACKETS_NUMBER //! The number of recognized packets.
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include <msgba/packet.h>
|
||||
#include <msgba/packet/hello.h>
|
||||
#include <msgba/core_controller.h>
|
||||
void
|
||||
msPacketHelloDestroy(struct msPacketHello **hello) {
|
||||
if ((*hello)->rom) {
|
||||
@ -23,7 +24,7 @@ msPacketHelloHandle(const struct msPacket *packet, struct msPacketHello *hello,
|
||||
goto return_ms_packet_hello_handle;
|
||||
}
|
||||
printf("Loading game and save for client_fd %d\n", data->clientFd);
|
||||
data->coreController = msCoreControllerLoadGame(hello->rom, hello->size_rom, hello->savestate, hello->size_savestate);
|
||||
data->coreController = msCoreControllerLoadGame(hello->rom, hello->size_rom, hello->savestate, hello->size_savestate, data);
|
||||
msCoreControllerThreadStart(data->coreController);
|
||||
result = true;
|
||||
return_ms_packet_hello_handle:
|
||||
|
Loading…
Reference in New Issue
Block a user