Changeset ea878ba in buchla-emu for emu


Ignore:
Timestamp:
08/01/2017 05:46:02 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
bdd5a63
Parents:
74c44d9
Message:

Added SDL_net for networking.

Location:
emu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • emu/all.h

    r74c44d9 rea878ba  
    2828
    2929#include <SDL2/SDL.h>
     30#include <SDL2/SDL_net.h>
    3031#include <SDL2/SDL_ttf.h>
    3132
  • emu/sdl.c

    r74c44d9 rea878ba  
    3333        SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_VERBOSE);
    3434
     35        if (SDLNet_Init() < 0) {
     36                fail("SDLNet_Init() failed: %s", SDLNet_GetError());
     37        }
     38
    3539        if (TTF_Init() < 0) {
    3640                fail("TTF_Init() failed: %s", TTF_GetError());
     
    4448{
    4549        TTF_Quit();
     50        SDLNet_Quit();
    4651        SDL_Quit();
    4752}
Note: See TracChangeset for help on using the changeset viewer.