initial commit
[swap_emu.git] / main.c
blob909e14f9114ba790a282e3faed8cf3ebc7d782ad
1 /*
3 swap by cth103, jeuxjeux20 and jba03
5 */
6 #include <stdio.h>
7 #include <SDL2/SDL.h>
8 #define SCREEN_WIDTH 854
9 #define SCREEN_HEIGHT 480
10 int main(int argc, char **argv) {
11 puts("swap by cth103, jeuxjeux20 and jba03\ndata taken from reswitched, switchbrew and creatable's switch waiting till im getting mine");
12 SDL_Window* window = NULL;
13 SDL_Surface* screenSurface = NULL;
14 if (SDL_Init(SDL_INIT_VIDEO) < 0) {
15 fprintf(stderr, "could not initialize sdl2: %s\n", SDL_GetError());
16 return 1;
18 window = SDL_CreateWindow(
19 "swap_window",
20 SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
21 SCREEN_WIDTH, SCREEN_HEIGHT,
22 SDL_WINDOW_SHOWN
24 if (window == NULL) {
25 fprintf(stderr, "could not create window: %s\n", SDL_GetError());
26 return 1;
28 return 0;