Compare commits
2 Commits
3e6d29d918
...
e143fdb1a4
Author | SHA1 | Date | |
---|---|---|---|
e143fdb1a4 | |||
75ecdeb635 |
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "source/sandia"]
|
||||
path = source/sandia
|
||||
url = https://git.donut.eu.org/nez/sandia-Wii.git
|
2
Makefile
2
Makefile
@ -17,7 +17,7 @@ include $(DEVKITPPC)/wii_rules
|
||||
#---------------------------------------------------------------------------------
|
||||
TARGET := $(notdir $(CURDIR))
|
||||
BUILD := build
|
||||
SOURCES := source
|
||||
SOURCES := source source/sandia
|
||||
DATA := data
|
||||
INCLUDES :=
|
||||
|
||||
|
@ -4,6 +4,8 @@
|
||||
#include <network.h>
|
||||
#include <wiiuse/wpad.h>
|
||||
|
||||
#include "sandia/sandia.h"
|
||||
|
||||
static void *xfb = NULL;
|
||||
static GXRModeObj *rmode = NULL;
|
||||
|
||||
@ -74,7 +76,12 @@ int main(int argc, char **argv) {
|
||||
logprint(1, "Initialized successfully!\n");
|
||||
logprint(0, "Your Wii's IP address is ");
|
||||
printf("%s.\n", localip);
|
||||
} else {
|
||||
|
||||
sandia req = sandia_create("libreshop.donut.eu.org", 80);
|
||||
sandia_response res = sandia_get_request(&req, "/");
|
||||
printf("\n%s\n", res.body);
|
||||
sandia_close(&res);
|
||||
} else {
|
||||
logprint(0, "Network configuration failed :(\n");
|
||||
}
|
||||
|
||||
|
1
source/sandia
Submodule
1
source/sandia
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 9b383cdda825ab4ba2767102b06cbd5dc734dae9
|
Loading…
Reference in New Issue
Block a user