Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / How to receive var. in c++ from game shortcut command?

Author
Message
Szymat
14
Years of Service
User Offline
Joined: 17th Oct 2010
Location:
Posted: 10th Jan 2012 19:34
I want to run my game in developer mode, so I want to receive var 'developer'
some shortcut on desktop: "D:\somexe.exe" -developer

How to recieve variables from this command line?
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 11th Jan 2012 11:08 Edited at: 11th Jan 2012 11:08
You can use dbCL() which returns the command line parameters to a string. Maybe something like this:



Szymat
14
Years of Service
User Offline
Joined: 17th Oct 2010
Location:
Posted: 11th Jan 2012 15:12
Thanks, helped!

Login to post a reply

Server time is: 2024-11-19 04:22:37
Your offset time is: 2024-11-19 04:22:37