Skip to content

Commit

Permalink
support target 6.39 on 6.20
Browse files Browse the repository at this point in the history
  • Loading branch information
hrimfaxi committed Jun 24, 2011
1 parent 83d5448 commit d3a746d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
1 change: 1 addition & 0 deletions popsloader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ all:
@cp -rf modules dist
@cp -f popcorn/popcorn.prx dist/modules/620/
@cp -f popcorn/popcorn.prx dist/modules/635/
@cp -f popcorn/popcorn.prx dist/modules/639/

clean:
make clean -C popcorn
Expand Down
6 changes: 4 additions & 2 deletions popsloader/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ static inline const char *get_module_prefix(void)
{
static char buf[80];

if(pops_fw_version == FW_635) {
if(pops_fw_version == FW_639) {
sprintf(buf, "%s%s/", MODULE_PATH, "639");
} else if(pops_fw_version == FW_635) {
sprintf(buf, "%s%s/", MODULE_PATH, "635");
} else if(pops_fw_version == FW_620) {
sprintf(buf, "%s%s/", MODULE_PATH, "620");
Expand Down Expand Up @@ -263,7 +265,7 @@ int module_start(SceSize args, void* argp)
{
int thid;

pops_fw_version = FW_635;
pops_fw_version = FW_639;
psp_fw_version = sceKernelDevkitVersion();
psp_model = sceKernelGetModel();
printk_init();
Expand Down
5 changes: 0 additions & 5 deletions popsloader/core/nid_635_to_639.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@
#include "systemctrl.h"
#include "main.h"

static nid_entry testLibrary_nid[] = {
{ 0x11111111, 0x22222222, },
};

resolver_config nid_fix_635_to_639[] = {
NID_ENTRY(testLibrary),
};

u32 nid_fix_635_to_639_size = NELEMS(nid_fix_635_to_639);
14 changes: 13 additions & 1 deletion popsloader/core/resolve_nid.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,35 @@ u32 nid_fix_size = 0;

void setup_nid_resolver(void)
{
if(pops_fw_version == FW_639 && psp_fw_version == FW_620) {
nid_fix_size = nid_fix_635_to_620_size;
nid_fix = nid_fix_635_to_620;
}

if(pops_fw_version == FW_635 && psp_fw_version == FW_620) {
nid_fix_size = nid_fix_635_to_620_size;
nid_fix = nid_fix_635_to_620;
}

#if 0
if(pops_fw_version == FW_635 && psp_fw_version == FW_639) {
nid_fix_size = nid_fix_635_to_639_size;
nid_fix = nid_fix_635_to_639;
}
#endif

if(pops_fw_version == FW_620 && psp_fw_version == FW_639) {
nid_fix_size = nid_fix_620_to_635_size;
nid_fix = nid_fix_620_to_635;
}

#if 0
if(pops_fw_version == FW_620 && psp_fw_version == FW_635) {
nid_fix_size = nid_fix_620_to_635_size;
nid_fix = nid_fix_620_to_635;
}

// try built in NID resolver first
#if 0
if(pops_fw_version == FW_500 && psp_fw_version == FW_639) {
nid_fix_size = nid_fix_500_to_635_size;
nid_fix = nid_fix_500_to_635;
Expand Down

0 comments on commit d3a746d

Please sign in to comment.