Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 08/17/26 19:28
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
Accepting new programming clients
by AndrewAMD. 08/06/26 21:25
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (EW_bytes), 2,207 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Path #181564
02/02/08 10:21
02/02/08 10:21
Joined: Jan 2008
Posts: 19
G
girish Offline OP
Newbie
girish  Offline OP
Newbie
G

Joined: Jan 2008
Posts: 19
How to use path in Lite-C
i want to have seperate folder for images, models & code
How to access those folder from lite-c

Re: Path [Re: girish] #181565
02/02/08 10:58
02/02/08 10:58

A
Anonymous
Unregistered
Anonymous
Unregistered
A



If your project name is for example myproject.c you need to create a file named myproject.wdl.

Within you can use the PATH keyword like in c-script:

Code:

// PATH...
//
// ============================================================================
PLUGINDIR = "plugins";

PATH "images";
PATH "sounds";
PATH "scripts";
PATH "models";




Re: Path [Re: ] #181566
02/03/08 02:38
02/03/08 02:38
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
well, they re now PRAGMA_PATH s .


you should use:

#define PRAGMA_PATH "images";//absolute or relative paths.
#define PRAGMA_PATH "models";//as far as i know, you can define more than one pragma_path


you can also add folders using

add_folder(<path here>);

at runtime.


3333333333

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1