Skip to content

Commit

Permalink
izdubar: added an About screen to the GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaël Jimenez committed Dec 8, 2010
1 parent 104ab86 commit d013df0
Show file tree
Hide file tree
Showing 11 changed files with 600 additions and 463 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,31 @@

Open PS2 Loader ChangeLog:

Version 0.8
-------------------------------------------------
Core:
* secure authentication for the SMB module (to enable security and write access)
* new GUI, fully customizable elements
* various SMB tweaks (NBSS keep-alive, small ingame speed-up)
* improved NAS support for more devices (WD MyBook, Digitus NAS, ...)
* added an embedded HDLServer into OPL to install HDD games
* various debugging output option (to help debug failing games)
* add compatibility for new external USB HDD with 1k/2k/4k cluster file
* add full compatibility for old PS2 consoles (10k JAP)
* ISO format added for USB too (still there is the 4Gb file limit, which is not present on SMB)
* new compatibility modes
* childproof mode (settings are locked)
* alternate startup mode, for loading/saving configuration files from USB and HDD (no need for MC in this case)
* added new menu to launch external ELF applications
* added VMC (Virtual Memory Card) support
* improved general compatibility (many specific games now working for the first time)

GUI:
* new multi-threaded and redesigned GUI
* support for Cover, Icon and Background Art
* skinnable interface using theme
* added "rename" and "delete" functionalities for games lists

Version 0.7
-------------------------------------------------
- Improved network startups and various fixes
Expand Down
943 changes: 503 additions & 440 deletions DETAILED_CHANGELOG

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions include/dialogs.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ extern struct UIItem diaIPConfig[];
extern struct UIItem diaCompatConfig[];
extern struct UIItem diaUIConfig[];
extern struct UIItem diaConfig[];
extern struct UIItem diaAbout[];
#ifdef VMC
extern struct UIItem diaVMC[];
#endif
Expand Down
4 changes: 3 additions & 1 deletion include/lang.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@
#define _STR_VMC_FILE_NEW 99
#define _STR_ERR_VMC_CONTINUE 100
#define _STR_AUTOREFRESH 101
#define LANG_STR_COUNT 102
#define _STR_ABOUT 102
#define _STR_DEVS 103
#define LANG_STR_COUNT 104

// Maximum external languages supported
#define MAX_LANGUAGE_FILES 15
Expand Down
6 changes: 2 additions & 4 deletions include/usbld.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@
#include <smem.h>
#include <debug.h>
#include "config.h"

#ifdef VMC
#include <sys/fcntl.h>
#define USBLD_VERSION "0.7 VMC"
#else
#define USBLD_VERSION "0.7"
#endif

#define USBLD_VERSION "0.8"

int loadConfig(int types);
int saveConfig(int types, int showUI);
void applyConfig(int themeID, int langID);
Expand Down
30 changes: 15 additions & 15 deletions lng/lang_Polish.lng
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# translation by loki7777
# translation by Berion & Loki7777
Polish
WITAMY W PROGRAMIE OPEN PS2 LOADER. GŁÓWNY KOD OPARTY ZOSTAŁ NA KODZIE ŹRÓDŁOWYM HD PROJECT <http://psx-scene.com> IMPLEMENTACJE FORMATU USB ADVANCE I GUI PRZEZ IFCARO <http://ps2dev.ifcaro.net> WIĘKSZOŚĆ JĄDRA LOADERA WYKONANA PRZEZ JIMMIKAELKAEL. WSZYSTKIE ULEPSZENIA GUI WYKONANE PRZEZ VOLCA. DZIĘKUJEMY ZA SKORZYSTANIE Z NASZEJ APLIKACJI. ^^
Open PS2 Loader %s
Zapisz zmiany
"X" Zapisz zmiany
"O" Powrót
Konfiguracja sieci
<brak wartości>
Ustawienia zostały zapisane...
Błąd przy zapisywaniu ustawień!
Wystąpił błąd podczas zapisywania ustawień!
Wyjście
Ustawienia
Gry z USB
Expand Down Expand Up @@ -35,8 +35,8 @@ Automatyczne sortowanie
Wystąpił błąd podczas wczytywania pliku językowego
Wyłącz kolory Debug
Nie wykryto podłączonego kontrolera, oczekiwanie...
Włącz pokazywanie okładek (Cover Art)
Szerokokątny ekran
Włącz pokazywanie okładek
Panoramiczny ekran
Wyłącz zasilanie
Wczytywanie ustawień
Zapisywanie ustawień
Expand All @@ -49,8 +49,8 @@ Automatyczny
Ręczny
Uruchom serwer HDL
Uruchamianie serwera HDL...
Serwer HDL Uruchomiony... Wciśnij "O" by zatrzymać
Wciśnij "X" aby zakończyć serwer HDL
Serwer HDL Uruchomiony... Wciśnij "O" aby zatrzymać
Wciśnij "X" aby zakończyć pracę serwera HDL
Wyłączanie serwera HDL...
Wyjście do
Kolor tła
Expand All @@ -62,24 +62,24 @@ Port
Udostępnij
Użytkownik
Hasło
<nie wybrane>
<nie ustawione>
"X" Zatwierdź
Wybrana gra będzie usunięta, kontynuować ?
Wybrana gra zostanie usunięta, kontynuować?
Zmień nazwę
Usuń
Uruchom
Ustawienia ekranu
Pozwól na usuwanie i zmianę nazwy
Sprawdź fragmentację dysku USB
Pozwól na usuwanie i zmiany nazw gier
Sprawdź fragmentację gry na urządzeniu USB
Zapamiętaj ostatnio uruchomioną grę
Błąd: Gra jest zdefragmentowana
Błąd: Gra jest pofragmentowana
Błąd: Nie można uruchomić gry
Test
Zostaw puste dla autoryzacji konta GOŚĆ.
Załaduj alternatywne jądro
Alternatywny sposób odczytu danych
Uwolnij Syscalls
0 PSS mode
Zwolnij Syscalls
Tryb zastpowania PSS dummy
Wyłącz obsługę DVD-DL
Wyłącz IGR
Zmniejsz bufor cdvdfsv
Expand All @@ -99,5 +99,5 @@ Postęp
Plik VMC już istnieje
Niewłaściwy plik VMC, nieprawidłowy rozmiar
Plik VMC musi zostać utworzony
Błąd z plikiem VMC, kontynuować z fizyczną karta pamięci ?
Błąd z plikiem VMC, kontynuować z fizyczną kartą pamięci?
Automatyczne odswieżanie
2 changes: 1 addition & 1 deletion lng/lang_Spanish.lng
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ Archivo VMC ya existe
Archivo VMC inválido, el tamaño es incorrecto
El archivo VMC debe ser creado
Error con el archivo VMC, ¿continuar con la MC física?
Refresco automáticde la lista
Refresco automático de la lista
2 changes: 1 addition & 1 deletion scripts/make_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

hgchangeset=`eval hg log | grep changeset: | sed -n 's/changeset: *//p' | sed -n 's/:[^.]*//p'`
hg log | grep summary: | sed -n 's/summary: *//p' >rev_summary
hg log | grep date: | sed -n 's/date: *//p' | sed -n 's/+[0-9]*//p' >rev_date
hg log | grep date: | sed -n 's/date: *//p' >rev_date

i=0
changeset_array=$(echo $hgchangeset | tr " " "\n")
Expand Down
27 changes: 27 additions & 0 deletions src/dialogs.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,33 @@ struct UIItem diaUIConfig[] = {
{UI_TERMINATOR}
};

struct UIItem diaAbout[] = {
{UI_LABEL, 1, 1, -1, {.label = {NULL, -1}}},
{UI_SPLITTER},

{UI_LABEL, 0, 1, -1, {.label = {NULL, _STR_DEVS}}}, {UI_BREAK},

// trick due to the "dots" bug in space characters
{UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER},
{UI_LABEL, 0, 1, -1, {.label = {"A", -1}}}, {UI_BREAK},

{UI_SPACER}, {UI_LABEL, 0, 1, -1, {.label = {"crazyc", -1}}}, {UI_BREAK},
{UI_SPACER}, {UI_LABEL, 0, 1, -1, {.label = {"ifcaro", -1}}}, {UI_BREAK},
{UI_SPACER}, {UI_LABEL, 0, 1, -1, {.label = {"izdubar", -1}}}, {UI_BREAK},
{UI_SPACER}, {UI_LABEL, 0, 1, -1, {.label = {"jimmikaelkael", -1}}}, {UI_BREAK},
{UI_SPACER}, {UI_LABEL, 0, 1, -1, {.label = {"Polo35", -1}}}, {UI_BREAK},
{UI_SPACER}, {UI_LABEL, 0, 1, -1, {.label = {"volca", -1}}}, {UI_BREAK},

{UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER}, {UI_SPACER},
{UI_LABEL, 0, 1, -1, {.label = {"A", -1}}}, {UI_BREAK},

{UI_SPLITTER},
{UI_OK, 0, 1, -1, {.label = {NULL, _STR_OK}}},

// end of dialog
{UI_TERMINATOR}
};

#ifdef VMC
struct UIItem diaVMC[] = {
{UI_LABEL, 0, 1, -1, {.label = {NULL, _STR_VMC_SCREEN}}},
Expand Down
19 changes: 19 additions & 0 deletions src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ static void guiInitMainMenu() {
if (gMenuFillHook) // if found
gMenuFillHook(&mainMenu);

submenuAppendItem(&mainMenu, EXIT_ICON, "About", 8, _STR_ABOUT);
submenuAppendItem(&mainMenu, EXIT_ICON, "Exit", 9, _STR_EXIT);
submenuAppendItem(&mainMenu, EXIT_ICON, "Power off", 11, _STR_POWEROFF);

Expand Down Expand Up @@ -253,6 +254,22 @@ void guiEndFrame(void) {
rmEndFrame();
}

static void guiShowAbout() {
char OPLVersion[64];
snprintf(OPLVersion, 64, _l(_STR_OUL_VER), USBLD_VERSION);

#ifdef VMC
strcat(OPLVersion, " VMC");
#endif
#ifdef __CHILDPROOF
strcat(OPLVersion, " CHILDPROOF");
#endif

diaSetLabel(diaAbout, 1, OPLVersion);

diaExecuteDialog(diaAbout, -1, 1, NULL);
}

static void guiExecExit() {
if(gExitMode==0) {
__asm__ __volatile__(
Expand Down Expand Up @@ -1246,6 +1263,8 @@ static void guiMenuHandleInput() {
guiShowIPConfig();
} else if (id == 7) {
saveConfig(CONFIG_OPL, 1);
} else if (id == 8) {
guiShowAbout();
} else if (id == 9) {
guiExecExit();
} else if (id == 11) {
Expand Down
4 changes: 3 additions & 1 deletion src/lang.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ static char *internalEnglish[LANG_STR_COUNT] = {
"Invalid VMC file, size is incorrect",
"VMC file need to be created",
"Error with VMC file, continue with physical MC ?",
"Automatic refresh"
"Automatic refresh",
"About",
"Coders"
};

static int guiLangID = 0;
Expand Down

0 comments on commit d013df0

Please sign in to comment.