Register | Login
Forum Index > Requests and Feedback > PlugIn switch
Author Message
Pages: 1
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[247] PlugIn switch - posted: 2011-11-01 08:43:21

Hi

sometimes any user does not need a certain PlugIn , so that we can add a feature that allows
the user to switch on or off a certain PlugIn.

so what do you think ?


http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[250] - posted: 2011-11-01 18:08:38
tbh, i was thinking about making it a requirement for the plugins to be added in the source such as

Code:
#plugins a.dll, b.dll, c.dll;


that way it would be certain that code that is pasted would be easily checked against which plugins are used, but i am not too sure yet.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[251] - posted: 2011-11-01 18:49:35

nice , but remove the term '.dll' , just supply the filename without it's extension.

http://www.freewebs.com/ogremagic/index.htm
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[266] - posted: 2011-11-02 17:55:58

also suppose that an application needs a certain plugin version , i think the following may be nice , what is your opinion ?
Code:
#plugins a 1.5 , b , c 0.1;


so
plugin required a is version 1.5
plugin required b is version default
plugin required c is version 0.1


http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[268] - posted: 2011-11-02 18:09:15
actually i am still deciding whether to add it like this since it loses some of the plugin usage ability, such as custom program types, so i believe i may make it so you need to add a plugin file such as an ini.

myapp.zir -> your code
myapp.plug -> plugins required (and versions, which is a good idea)

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[270] - posted: 2011-11-02 18:18:02


ok , i think put it within a code will be better,

any way you can allow the two ways , so Ziron will read ini file and knows which plugin will
be loaded , and also in text code as #plugin directive.

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[271] - posted: 2011-11-02 18:24:40
I don't believe having both would be a good idea, because it can lead to confusion and if the plugin directive is placed somewhere deep in the code (hard to find) in 1000s of lines of code...

also the main reason is because for example a program must begin with:

Code:
program type 'name';


now lets say some plugin wants to add a custom program type, e.g. they want to develop a plugin to output coff object files, or linux bin files etc, with a seperate file it is easy to find out which plugins are used and also allows the assembler to quickly load the plugins before it begins processing anything else, since each plugin has its own code buffer, it is better to be done all at once.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[274] - posted: 2011-11-02 18:47:08

ok now i see your point.

http://www.freewebs.com/ogremagic/index.htm
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 2 user(s) online. 0 member(s) and 2 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd