Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
766ed58712 | |||
4678946bc7 |
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,3 +1,3 @@
|
|||||||
[submodule "source/sandia"]
|
[submodule "source/sandia"]
|
||||||
path = source/sandia
|
path = source/sandia
|
||||||
url = https://git.donut.eu.org/libreshop/sandia-Wii.git
|
url = https://git.donut.eu.org/nez/sandia-Wii.git
|
||||||
|
27
README.md
27
README.md
@ -1,3 +1,26 @@
|
|||||||
# libreshop_client
|
# LibreShop
|
||||||
|
|
||||||
Wii Homebrew downloader
|
LibreShop is a program that lets you download, update, and install homebrew software onto your Wii without even needing to touch a computer.
|
||||||
|
|
||||||
|
## Development setup
|
||||||
|
|
||||||
|
First, install the devkitppc toolchain. [Click here for a guide on how to do so.](https://devkitpro.org/wiki/Getting_Started)
|
||||||
|
|
||||||
|
Next, install all the dependencies.
|
||||||
|
```
|
||||||
|
# (dkp-)pacman -S ppc-jansson
|
||||||
|
```
|
||||||
|
In addition, you'll have to download the submodule dependencies.
|
||||||
|
```
|
||||||
|
$ git submodule init
|
||||||
|
$ git submodule update
|
||||||
|
```
|
||||||
|
|
||||||
|
Now all you need to do is edit, compile, and run!
|
||||||
|
```
|
||||||
|
$ make
|
||||||
|
```
|
||||||
|
If you have Wiiload installed and correctly setup, you can use it with the following command:
|
||||||
|
```
|
||||||
|
$ make run
|
||||||
|
```
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
#ifndef INPUT_MACROS_H
|
|
||||||
#define INPUT_MACROS_H
|
|
||||||
|
|
||||||
#include <wiiuse/wpad.h>
|
|
||||||
|
|
||||||
// Input definitions table
|
|
||||||
// TODO: GameCube controller support
|
|
||||||
// Macro name Classic Controller Wii Remote
|
|
||||||
#define INPUT_BUTTON_HOME (WPAD_CLASSIC_BUTTON_HOME || WPAD_BUTTON_HOME )
|
|
||||||
|
|
||||||
#define INPUT_BUTTON_PLUS (WPAD_CLASSIC_BUTTON_PLUS || WPAD_BUTTON_PLUS )
|
|
||||||
#define INPUT_BUTTON_MINUS (WPAD_CLASSIC_BUTTON_MINUS || WPAD_BUTTON_MINUS )
|
|
||||||
|
|
||||||
#define INPUT_BUTTON_A (WPAD_CLASSIC_BUTTON_Y || WPAD_BUTTON_A )
|
|
||||||
#define INPUT_BUTTON_B (WPAD_CLASSIC_BUTTON_B || WPAD_BUTTON_B )
|
|
||||||
#define INPUT_BUTTON_X (WPAD_CLASSIC_BUTTON_X || WPAD_BUTTON_1 )
|
|
||||||
#define INPUT_BUTTON_Y (WPAD_CLASSIC_BUTTON_A || WPAD_BUTTON_2 )
|
|
||||||
|
|
||||||
#define INPUT_BUTTON_UP (WPAD_CLASSIC_BUTTON_UP || WPAD_BUTTON_UP )
|
|
||||||
#define INPUT_BUTTON_DOWN (WPAD_CLASSIC_BUTTON_DOWN || WPAD_BUTTON_DOWN )
|
|
||||||
#define INPUT_BUTTON_LEFT (WPAD_CLASSIC_BUTTON_LEFT || WPAD_BUTTON_LEFT )
|
|
||||||
#define INPUT_BUTTON_RIGHT (WPAD_CLASSIC_BUTTON_RIGHT || WPAD_BUTTON_RIGHT )
|
|
||||||
|
|
||||||
#endif // INPUT_MACROS_H
|
|
@ -3,12 +3,11 @@
|
|||||||
#include <gccore.h>
|
#include <gccore.h>
|
||||||
#include <network.h>
|
#include <network.h>
|
||||||
#include <wiiuse/wpad.h>
|
#include <wiiuse/wpad.h>
|
||||||
#include <jansson.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "sandia/sandia.h"
|
#include "sandia/sandia.h"
|
||||||
|
#include <jansson.h>
|
||||||
#include "input_macros.h"
|
|
||||||
|
|
||||||
// Uncomment if this is a development build
|
// Uncomment if this is a development build
|
||||||
//#include "debug.h"
|
//#include "debug.h"
|
||||||
@ -134,8 +133,8 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
u32 pressed = WPAD_ButtonsDown(0);
|
u32 pressed = WPAD_ButtonsDown(0);
|
||||||
|
|
||||||
if ( pressed && INPUT_BUTTON_HOME ) {
|
if ( pressed & WPAD_BUTTON_HOME ) {
|
||||||
logprint(0, "HOME pressed, quitting!\n");
|
logprint(0, "HOME pressed, quitting!");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 8f4d62429b06bb851f03c21c7796ae69f78541a8
|
Subproject commit 62ea4d024fda8663463ddc20c13eec5e1c08b2de
|
Loading…
Reference in New Issue
Block a user