Update release date and make some minor changes to Windows launcher
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
IDI_ICON1 ICON DISCARDABLE "novelwriter.ico"
|
||||
IDI_ICON1 ICON DISCARDABLE "novelWriter.ico"
|
||||
1 VERSIONINFO
|
||||
FILEVERSION 1,1,0,0
|
||||
PRODUCTVERSION 1,1,0,0
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <tchar.h>
|
||||
#include <iostream>
|
||||
|
||||
void _tmain( int argc, TCHAR *argv[] ) {
|
||||
void _tmain(int argc, TCHAR *argv[]) {
|
||||
STARTUPINFO si;
|
||||
PROCESS_INFORMATION pi;
|
||||
|
||||
@@ -32,11 +32,11 @@ void _tmain( int argc, TCHAR *argv[] ) {
|
||||
si.cb = sizeof(si);
|
||||
ZeroMemory(&pi, sizeof(pi));
|
||||
|
||||
TCHAR fileName[MAX_PATH];
|
||||
auto pathlen = GetModuleFileName(NULL, fileName, MAX_PATH);
|
||||
fileName[pathlen - 15] = 0;
|
||||
SetCurrentDirectory(fileName);
|
||||
std::cout << "WorkDir: " << fileName << std::endl;
|
||||
TCHAR path[MAX_PATH];
|
||||
auto pathlen = GetModuleFileName(NULL, path, MAX_PATH);
|
||||
path[pathlen - 15] = 0;
|
||||
SetCurrentDirectory(path);
|
||||
std::cout << "WorkDir: " << path << std::endl;
|
||||
|
||||
TCHAR cmd[MAX_PATH] = TEXT("pythonw.exe novelWriter.pyw");
|
||||
if (argc > 1) {
|
||||
|
||||
Reference in New Issue
Block a user