reepblue Posted November 4 Share Posted November 4 If you run this application from the editor, the argv[0] variable will be empty. When running it outside of the editor, the value will be the name/path of the application. I need this to work to get the name of the application to create the settings file. I can work around this, but I thought I should let you know. #include "UltraEngine.h" using namespace UltraEngine; int main(int argc, const char* argv[]) { auto name = WString(argv[0]); if (name.empty()) { Print("Application name is empty.") } return 0; } Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Solution Josh Posted November 6 Solution Share Posted November 6 Okay, fixed. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.