Registering .blend files now works for Windows -- hopefully!

You will need to re-register the blend files (blender.exe -R)
for the fix to come into action.
This commit is contained in:
2003-06-04 21:22:57 +00:00
parent f289109228
commit f40d9f57ee
2 changed files with 11 additions and 12 deletions

View File

@@ -407,6 +407,7 @@ int main(int argc, char **argv)
* - "-d": enables debugging.
* - "-w": fullscreen mode.
* - "-W": borderless window (MS windows only).
* - "-R": registers the blender extensions. (MS windows only).
* - "-noaudion", "-nosound": disables audio.
* - "-nofrozen": disables frozen python.
*/
@@ -457,6 +458,12 @@ int main(int argc, char **argv)
/* XXX, fixme zr, borderless on win32 */
#ifdef _WIN32 // FULLSCREEN
G.windowstate = G_WINDOWSTATE_FULLSCREEN;
#endif
break;
case 'R':
/* Registering filetypes only makes sense on windows... */
#ifdef WIN32
RegisterBlendExtension(argv[0]);
#endif
break;
case 'n':
@@ -545,7 +552,6 @@ int main(int argc, char **argv)
* - "-S": sets the starting scene name.
* - "-s": sets the start frame.
* - "-e": sets the end frame.
* - "-R": registers the blender extensions. (MS windows only)
* - <file>: sets the blender file to open.
*/
for(a=1; a<argc; a++) {
@@ -641,12 +647,6 @@ int main(int argc, char **argv)
if (a < argc) (G.scene->r.efra) = atoi(argv[a]);
}
break;
case 'R':
/* Registering filetypes only makes sense on windows... */
#ifdef WIN32
RegisterBlendExtension(argv[0]);
#endif
break;
}
}
/**