-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5df5edf
commit 8c015d7
Showing
21 changed files
with
692 additions
and
926 deletions.
There are no files selected for viewing
Binary file modified
BIN
+64 Bytes
(100%)
NetStream/CONTENTS/module/download_enabler_netstream.suprx
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#ifndef _LOCAL_SERVER_BROWSER_H_ | ||
#define _LOCAL_SERVER_BROWSER_H_ | ||
|
||
#include <kernel.h> | ||
#include <paf.h> | ||
#include <psp2_compat/curl/curl.h> | ||
|
||
using namespace paf; | ||
|
||
class LocalServerBrowser | ||
{ | ||
public: | ||
|
||
class Entry | ||
{ | ||
public: | ||
|
||
enum Type | ||
{ | ||
Type_UnsupportedFile, | ||
Type_SupportedFile, | ||
Type_Folder | ||
}; | ||
|
||
string ref; | ||
Type type; | ||
}; | ||
|
||
LocalServerBrowser(); | ||
|
||
~LocalServerBrowser(); | ||
|
||
SceBool Probe(); | ||
|
||
SceBool IsAtRoot(string *current); | ||
|
||
SceBool IsAtRoot(); | ||
|
||
SceVoid SetPath(const char *ref); | ||
|
||
string GetPath(); | ||
|
||
string GetBEAVUrl(string *in); | ||
|
||
vector<LocalServerBrowser::Entry *> *GoTo(const char *ref, SceInt32 *result); | ||
|
||
private: | ||
|
||
string path; | ||
}; | ||
|
||
#endif |
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,114 @@ | ||
#ifndef _MENU_LOCAL_H_ | ||
#define _MENU_LOCAL_H_ | ||
|
||
#include <kernel.h> | ||
#include <paf.h> | ||
|
||
#include "dialog.h" | ||
#include "menu_generic.h" | ||
#include "local_server_browser.h" | ||
#include "menus/menu_player_simple.h" | ||
|
||
using namespace paf; | ||
|
||
namespace menu { | ||
class Local : public GenericMenu | ||
{ | ||
public: | ||
|
||
static SceVoid PlayerBackCb(PlayerSimple *player, ScePVoid pUserArg); | ||
static SceVoid PlayerFailCb(PlayerSimple *player, ScePVoid pUserArg); | ||
static SceVoid BackButtonCbFun(SceInt32 eventId, ui::Widget *self, SceInt32 a3, ScePVoid pUserData); | ||
static SceVoid ListButtonCbFun(SceInt32 eventId, ui::Widget *self, SceInt32 a3, ScePVoid pUserData); | ||
|
||
class ListViewCb : public ui::ListView::ItemCallback | ||
{ | ||
public: | ||
|
||
~ListViewCb() | ||
{ | ||
|
||
} | ||
|
||
ui::ListItem *Create(Param *info); | ||
|
||
SceVoid Start(Param *info) | ||
{ | ||
info->parent->PlayEffect(0.0f, effect::EffectType_Popup1); | ||
} | ||
|
||
Local *workObj; | ||
}; | ||
|
||
class GoToJob : public job::JobItem | ||
{ | ||
public: | ||
|
||
using job::JobItem::JobItem; | ||
|
||
~GoToJob() {} | ||
|
||
SceVoid Run(); | ||
|
||
SceVoid Finish() {} | ||
|
||
static SceVoid ConnectionFailedDialogHandler(dialog::ButtonCode buttonCode, ScePVoid pUserArg); | ||
|
||
Local *workObj; | ||
string targetRef; | ||
}; | ||
|
||
class BrowserPage | ||
{ | ||
public: | ||
|
||
BrowserPage() : isLoaded(SCE_FALSE) | ||
{ | ||
|
||
} | ||
|
||
~BrowserPage() | ||
{ | ||
|
||
} | ||
|
||
vector<LocalServerBrowser::Entry *> *itemList; | ||
ui::ListView *list; | ||
SceBool isLoaded; | ||
}; | ||
|
||
Local(); | ||
|
||
~Local(); | ||
|
||
MenuType GetMenuType() | ||
{ | ||
return MenuType_Http; | ||
} | ||
|
||
const SceUInt32 *GetSupportedSettingsItems(SceInt32 *count) | ||
{ | ||
*count = sizeof(k_settingsIdList) / sizeof(char*); | ||
return k_settingsIdList; | ||
} | ||
|
||
SceBool PushBrowserPage(string *ref); | ||
|
||
SceBool PopBrowserPage(); | ||
|
||
LocalServerBrowser *browser; | ||
ui::Widget *browserRoot; | ||
ui::BusyIndicator *loaderIndicator; | ||
ui::Text *topText; | ||
vector<BrowserPage *> pageList; | ||
SceBool firstBoot; | ||
|
||
private: | ||
|
||
const SceUInt32 k_settingsIdList[1] = { | ||
http_setting | ||
}; | ||
}; | ||
} | ||
|
||
#endif |
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
Oops, something went wrong.