forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

8002013C

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Mon Jul 20, 2009 10:54 am    Post subject: 8002013C Reply with quote

I receive an error code that means Library Not Found. Can someone help me fix this?

makefile

Code:
TARGET = test
OBJS = main.o pshimg_user.o

INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS) -c

LIBDIR =
LDFLAGS =
LIBS = -lpsppower -lpspkubridge -lpspctrl -lpspkernel
PSP_FW_VERSION = 500

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Playstation Image test

BUILD_PRX = 1

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak



main.c

Code:

#include <pspsdk.h>
#include <pspkernel.h>
#include <stdio.h>
#include "pshn-img.h"
#include <pspctrl.h>
#include "kubridge.h"
PSP_MODULE_INFO("pshimg-test", 0, 1, 1);
#define printf pspDebugScreenPrintf

int LoadStartModule(char *module, int partition)
{
   SceUID mod = kuKernelLoadModule(module, 0, NULL);

   if (mod < 0)
      return mod;

   return sceKernelStartModule(mod, 0, NULL, NULL, NULL);
}

int onPress(int flag){
while(1)
    {
        SceCtrlData pad;

        sceCtrlReadBufferPositive(&pad, 1);
        if(pad.Buttons & flag)
        {
            break;
        }
       }
 return 1;
}
int main(int argc, char argv[])
{
   pspDebugScreenInit();
   SceUID mod = LoadStartModule("pshimg.prx", 0);
   if(mod < 0){
      printf("Error: Couldnt Start PRX pshimg.prx (0x%08x)\n", mod);
      sceKernelExitGame();
   }
   printf("Now testing TEST.PSHIMG\n");
   SceUID fd = sceIoOpen("test.pshimg", PSP_O_RDONLY, 777);
   if(pshnInit(fd, 0) == 1){
      printf("TEST.PSHIMG is now verify as a image file\n\n");
      printf("Version: 0x%08x\n", header.version);
      printf("Image Title: %s\n\n", header.title);
      printf("Now Reading Files blocks\n");
      pshnLoadSection(fd);
      printf("Reading Complete\n");
      printf("Filename\tSize\n");
      int i, j;
      for(i = 0;i<10;i++){
         for(j=0;j<10;j++){
            printf("%s\t%d\n", section[i].filename[j], section[i].size[j]);
            if(section[i].size[j] == 0){
               break;
            }
         }
      }
   }
      printf("Press X to exit\n");
      onPress(PSP_CTRL_CROSS);
      sceKernelExitGame();
   return 0;
}

_________________
PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group