Author Topic: Could you test my applications?  (Read 6186 times)

Shin-NiL (OP)

  • *
  • Posts: 375
    • Shin-NiL's Personal Web Page (Brazilian Portuguese)
Re: Could you test my applications?
« Reply #20 on: August 30, 2013, 12:57:46 pm »
Thanks again, zephyrus. I've updated the link. If it still does not working, we'll have to wait to get my device for debugging :'(

zephyrus

  • *
  • Posts: 76
Re: Could you test my applications?
« Reply #21 on: August 30, 2013, 01:47:45 pm »
it runs perfect, save is working  :) the only log message that occurs in both zelda roth and olb is:
"ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occured"
it doesn't affect gameplay, but it might help you until your zero finally arrrives. great work!

Shin-NiL (OP)

  • *
  • Posts: 375
    • Shin-NiL's Personal Web Page (Brazilian Portuguese)
Re: Could you test my applications?
« Reply #22 on: August 30, 2013, 01:53:58 pm »
Wow it worked? Actually I did not expect that ;)
The log you post is occurring on all my OpenDingux ports, so it's not really a issue.

To celebrate I'll post the source code on the first post.

Thank you very much, my friend.

hi-ban

  • **
  • Posts: 857
Re: Could you test my applications?
« Reply #23 on: August 30, 2013, 02:06:05 pm »
Could you comment on what changes did you do for the GCW ports? That might be useful for other people who want to port stuff from Dingoo into the GCW...

ruffnutts

  • ****
  • Posts: 2671
Re: Could you test my applications?
« Reply #24 on: August 30, 2013, 03:07:56 pm »
Thanks again for your effort Shin-NiL ;D

Shin-NiL (OP)

  • *
  • Posts: 375
    • Shin-NiL's Personal Web Page (Brazilian Portuguese)
Re: Could you test my applications?
« Reply #25 on: August 30, 2013, 06:21:42 pm »
Could you comment on what changes did you do for the GCW ports? That might be useful for other people who want to port stuff from Dingoo into the GCW...
Sure, if you are porting a previous OpenDingux app it was basicaly two things:

1) Change and create the save file directory, as squashfs is readonly:
Code: [Select]
#ifdef GCWZERO
    system("mkdir -p /boot/local/home/.zeldaROTH_US/save/");
    ofstream f(("/boot/local/home/.zeldaROTH_US/save/roth" + im.str() + ".dat").c_str(),ios::out | ios::binary);
#else
    ofstream f(("data/save/roth" + im.str() + ".dat").c_str(),ios::out | ios::binary);
#endif

2) Remap X/Y buttons due GCW-Zero layout:
Code: [Select]
#ifdef GCWZERO //GCW-Zero's X/Y
    #define SDLK_p              304 //X USE ITEM
    #define SDLK_x              32 //Y MAP
#else //DINGOO Y/X
    #define SDLK_p              32 //X USE ITEM
    #define SDLK_x              304 //Y MAP
#endif

If you're porting a Dingux Legacy app, maybe you have to do some adjusts at SDL_SetVideoMode flags before.


Thanks again for your effort Shin-NiL ;D

You're welcome, my friend :)

mth

  • *
  • Posts: 298
Re: Could you test my applications?
« Reply #26 on: September 01, 2013, 08:28:35 pm »
1) Change and create the save file directory, as squashfs is readonly:
Code: [Select]
#ifdef GCWZERO
    system("mkdir -p /boot/local/home/.zeldaROTH_US/save/");
    ofstream f(("/boot/local/home/.zeldaROTH_US/save/roth" + im.str() + ".dat").c_str(),ios::out | ios::binary);
#else
    ofstream f(("data/save/roth" + im.str() + ".dat").c_str(),ios::out | ios::binary);
#endif
Please don't hardcode the home directory; that might break as we continue to develop OpenDingux and is not portable to other systems. And in any case don't rely on /boot; if you really must hardcode it (again, please don't), use /usr/local/home.

The reliable way to get the home directory is to read the HOME environment variable. This can be done with "$HOME" or simply "~" in shell scripts and getenv() in C.

Deagle275

  • *
  • Posts: 110
Re: Could you test my applications?
« Reply #27 on: September 02, 2013, 01:35:27 am »
Zelda 3T will take more time, since I'll do the port from scratch  :-[
Why ? Weren't they made with C++ and SDL ?

Shin-NiL (OP)

  • *
  • Posts: 375
    • Shin-NiL's Personal Web Page (Brazilian Portuguese)
Re: Could you test my applications?
« Reply #28 on: September 02, 2013, 01:19:53 pm »
@mth: Thanks for your tips, I'll use the getenv approach from now ;)
Code: [Select]
#ifdef GCWZERO
    string home = getenv("HOME");
    string savePath(home + "/.zelda3T_US/save/");
    system(("mkdir -p " + savePath).c_str());
    ofstream f((savePath + "3t" + im.str() + ".dat").c_str(),ios::out | ios::binary);
#else
    ofstream f(("data/save/3t" + im.str() + ".dat").c_str(),ios::out | ios::binary);
#endif

@Deagle275: Yes, they are, but for the previous ones (ROTH & OLB) I've made a port to A320 OpenDingux some time ago, so ~90% of work was already done. For 3T I'm working from the beginning.

@Testers: I just added Zelda 3T in the first post   ;D
« Last Edit: September 02, 2013, 01:23:58 pm by Shin-NiL »

zephyrus

  • *
  • Posts: 76
Re: Could you test my applications?
« Reply #29 on: September 02, 2013, 02:54:22 pm »
applause :) zelda 3t runs smooth, no bugs here. thank you once again!

Shin-NiL (OP)

  • *
  • Posts: 375
    • Shin-NiL's Personal Web Page (Brazilian Portuguese)
Re: Could you test my applications?
« Reply #30 on: September 02, 2013, 06:13:52 pm »
applause :) zelda 3t runs smooth, no bugs here. thank you once again!
Thanks zephyrus, what a nice surprise ;) Source code will be released soon, I need to write down a good README.

Shin-NiL (OP)

  • *
  • Posts: 375
    • Shin-NiL's Personal Web Page (Brazilian Portuguese)
Re: Could you test my applications?
« Reply #31 on: September 09, 2013, 12:48:12 pm »
Source code for Zelda 3T was added.

I received my unit this weekend, so after some tests I will release the final version of these games.

Many thanks to all who helped in testing. You guys are great ;)

 

Post a new topic