Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <btypes.h>
- #include <ragact.h>
- #include <ragspr.h>
- int main(int argc, char** argv)
- {
- int i;
- for(i = 1; i<argc; i++)
- {
- const char* arg = argv[i];
- printf("%s ", arg);
- switch(((ulong_t*)(&arg[strlen(arg)-4]))[0]|0x20202020)
- {
- case 'tca.':
- {
- HRAGACTION hAct;
- if(RagAct_Load(arg, &hAct))
- {
- printf("OK");
- RagAct_Free(&hAct);
- }
- else
- {
- printf("NG");
- }
- break;
- }
- case 'rps.':
- {
- HRAGSPRITE hSpr;
- if(RagSpr_Load(arg, &hSpr))
- {
- printf("OK");
- RagSpr_Free(&hSpr);
- }
- else
- {
- printf("NG");
- }
- break;
- }
- default:
- printf("NOT IMPLEMENTED");
- break;
- }
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement