We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34cb0a7 commit c013181Copy full SHA for c013181
Source/Sandbox/src/Sandbox.cpp
@@ -157,7 +157,7 @@ namespace Quartz
157
158
// @TODO: Move to using platform main instead
159
160
-int main()
+int main(int argc, char* argv[])
161
{
162
using namespace Quartz;
163
@@ -326,7 +326,14 @@ int main()
326
UNIFORMS
327
=====================================*/
328
329
- Array<Byte> modelFileData = ReadFile(MODEL_PATH);
+ String modelPath = MODEL_PATH;
330
+
331
+ if (argc > 1)
332
+ {
333
+ modelPath = argv[1];
334
+ }
335
336
+ Array<Byte> modelFileData = ReadFile(modelPath);
337
String modelDataString = String((char*)modelFileData.Data(), modelFileData.Size());
338
Model mModel = LoadOBJ(modelDataString);
339
0 commit comments