forked from Cpasjuste/uae4all2
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow autostarting of config file via command line argument
- Loading branch information
Showing
17 changed files
with
133 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
TITLE_ID = UAE2XXXXX | ||
TARGET = Launcher | ||
OBJS = main.o | ||
|
||
LIBS = -lSceAppMgr_stub | ||
|
||
PREFIX = arm-vita-eabi | ||
CC = $(PREFIX)-gcc | ||
CFLAGS = -Wl,-q -Wall | ||
ASFLAGS = $(CFLAGS) | ||
|
||
all: builder/eboot.bin | ||
|
||
%.vpk: eboot.bin | ||
vita-mksfoex -s TITLE_ID=$(TITLE_ID) "Launcher" param.sfo | ||
vita-pack-vpk -s param.sfo -b eboot.bin $@ \ | ||
-a assets/icon0.png=sce_sys/icon0.png \ | ||
-a assets/bg.png=sce_sys/livearea/contents/bg.png \ | ||
-a assets/startup.png=sce_sys/livearea/contents/startup.png \ | ||
-a assets/template.xml=sce_sys/livearea/contents/template.xml \ | ||
-a assets/args.txt=args.txt | ||
|
||
builder/eboot.bin: $(TARGET).velf | ||
vita-make-fself -s $< $@ | ||
|
||
%.velf: %.elf | ||
vita-elf-create $< $@ | ||
|
||
$(TARGET).elf: $(OBJS) | ||
$(CC) $(CFLAGS) $^ $(LIBS) -o $@ | ||
|
||
clean: | ||
@rm -rf $(TARGET).vpk $(TARGET).velf $(TARGET).elf $(OBJS) \ | ||
eboot.bin param.sfo |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<livearea style="psmobile" format-ver="01.00" content-rev="1"> | ||
<livearea-background> | ||
<image>bg.png</image> | ||
</livearea-background> | ||
|
||
<gate> | ||
<startup-image>startup.png</startup-image> | ||
</gate> | ||
</livearea> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@set /p title="Insert bubble name: " | ||
@set /p rom="Insert rom name: " | ||
@set /p id="Insert bubble title ID (9 characters [NOTE: Only UPPERCASE letters or numbers]): " | ||
@echo|set /p="%rom%"> "assets/args.txt" | ||
vita-mksfoex -s TITLE_ID=%id% "%title%" param.sfo | ||
vita-pack-vpk -s param.sfo -b eboot.bin "%title%.vpk" -a assets/icon0.png=sce_sys/icon0.png -a assets/bg.png=sce_sys/livearea/contents/bg.png -a assets/startup.png=sce_sys/livearea/contents/startup.png -a assets/template.xml=sce_sys/livearea/contents/template.xml -a assets/args.txt=args.txt |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include <vitasdk.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
int main(int argc, const char *argv[]) { | ||
char buffer[256]; | ||
memset(buffer, 0, 256); | ||
FILE *f = fopen("app0:args.txt", "rb"); | ||
if (f) { | ||
fread(buffer, 1, 256, f); | ||
fclose(f); | ||
char uri[512]; | ||
sprintf(uri, "psgm:play?titleid=%s¶m=%s", "UAE4ALL00", buffer); | ||
|
||
sceAppMgrLaunchAppByUri(0xFFFFF, uri); | ||
sceKernelDelayThread(1000); | ||
} | ||
|
||
sceKernelExitProcess(0); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.