FBA The Creator

The True Multiplatform PC / PocketPC Opensource Development Tool - Read Only Mode - Kept only for historical purposes - Thank you all ;)
It is currently Mon Jun 17, 2019 3:37 pm

All times are UTC




Post new topic  Reply to topic  [ 15 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Thu Jun 26, 2008 12:25 pm 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
I need to be able to install a <progname>.INI file with my application. COuld this please be added to the options when building an installer?

THANKS!!!!

_________________
http://www.boiledsweets.com


Top
   
PostPosted: Thu Jun 26, 2008 12:38 pm 
Offline
Feejo Member
Feejo Member
User avatar

Joined: Fri Mar 28, 2008 8:07 am
Posts: 64
Location: Italy
What about adding the ini file to the application resources?

why you need an external .ini file?

_________________
Regards,

umbiomar
umbiomar@gmail.com


Top
   
PostPosted: Thu Jun 26, 2008 12:50 pm 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
Was using the inbuild configuration file support!

If I stick the INI in the resource file will the openconfig() etc open from the resource file?

_________________
http://www.boiledsweets.com


Top
   
PostPosted: Thu Jun 26, 2008 12:56 pm 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
Yes openconfig should open an ini file from resources.


Top
   
PostPosted: Thu Jun 26, 2008 1:03 pm 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
COOL!

Perhaps the docs should indicate that would happen....

_________________
http://www.boiledsweets.com


Top
   
PostPosted: Thu Jun 26, 2008 1:41 pm 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
Hmm, doesn't seem to pick up the ini file in the resource...

Code:
     -- INI file
       
        openconfig("amazing.ini")

        local opt_block_size = readconfignumber("options", "blocksize", "16")

        debug(opt_block_size)


ini file is called amazing.ini and in the resources, contains...

Code:
[options]
blocksize=32


however the debug shows 16

_________________
http://www.boiledsweets.com


Top
   
PostPosted: Thu Jun 26, 2008 2:16 pm 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
Mmmh...you're right...

Actually the only way to read a line from a resource file is using
openres("myfile.txt", true)
(true = multi line parsing)

openconfig works only for newly created config files


Top
   
PostPosted: Thu Jun 26, 2008 2:21 pm 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
So then back to my original request - can we have an option to include file(s) in the installer cab please?

_________________
http://www.boiledsweets.com


Top
   
PostPosted: Tue Jul 08, 2008 2:52 pm 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
Hi,

still need a way to write to a internal resource file. Why?

I want to save the current level the user is on and don't wnat them to be able to open an external file and edit it. So how can this be done?

_________________
http://www.boiledsweets.com


Top
   
PostPosted: Tue Jul 08, 2008 4:02 pm 
Offline
Tutorials Contributor
Tutorials Contributor
User avatar

Joined: Tue Jun 17, 2008 3:39 am
Posts: 59
Location: Midwest, US
I thought that was what the cryptkey parameter is for: so you can encrypt your config files. Of course, I could be way off the mark.

_________________
Don't look at me. I'm new here.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 15 posts ]  Go to page 1 2 Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited