Filenames now full
This commit is contained in:
parent
1d64404b24
commit
3f5f3ee7ea
|
@ -160,6 +160,4 @@ enum ByteCode
|
||||||
BC_NATIVE = 0x75
|
BC_NATIVE = 0x75
|
||||||
};
|
};
|
||||||
|
|
||||||
#pragma compile("crt.c")
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "Preprocessor.h"
|
#include "Preprocessor.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
SourcePath::SourcePath(const char* path)
|
SourcePath::SourcePath(const char* path)
|
||||||
{
|
{
|
||||||
|
@ -49,19 +50,31 @@ SourceFile::~SourceFile(void)
|
||||||
|
|
||||||
bool SourceFile::Open(const char* name, const char* path)
|
bool SourceFile::Open(const char* name, const char* path)
|
||||||
{
|
{
|
||||||
strcpy_s(mFileName, path);
|
char fname[200];
|
||||||
int n = strlen(mFileName);
|
|
||||||
|
|
||||||
if (n > 0 && mFileName[n - 1] != '/')
|
strcpy_s(fname, path);
|
||||||
|
int n = strlen(fname);
|
||||||
|
|
||||||
|
if (n > 0 && fname[n - 1] != '/')
|
||||||
{
|
{
|
||||||
mFileName[n++] = '/';
|
fname[n++] = '/';
|
||||||
mFileName[n] = 0;
|
fname[n] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
strcat_s(mFileName + n, sizeof(mFileName) - n, name);
|
strcat_s(fname + n, sizeof(fname) - n, name);
|
||||||
|
|
||||||
if (!fopen_s(&mFile, mFileName, "r"))
|
if (!fopen_s(&mFile, fname, "r"))
|
||||||
|
{
|
||||||
|
_fullpath(mFileName, fname, sizeof(mFileName));
|
||||||
|
char* p = mFileName;
|
||||||
|
while (*p)
|
||||||
|
{
|
||||||
|
if (*p == '\\')
|
||||||
|
*p = '/';
|
||||||
|
p++;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,8 +25,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
|
||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION 1,0,30,0
|
FILEVERSION 1,0,31,0
|
||||||
PRODUCTVERSION 1,0,30,0
|
PRODUCTVERSION 1,0,31,0
|
||||||
FILEFLAGSMASK 0x3fL
|
FILEFLAGSMASK 0x3fL
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
|
@ -43,12 +43,12 @@ BEGIN
|
||||||
BEGIN
|
BEGIN
|
||||||
VALUE "CompanyName", "oscar64"
|
VALUE "CompanyName", "oscar64"
|
||||||
VALUE "FileDescription", "oscar64 compiler"
|
VALUE "FileDescription", "oscar64 compiler"
|
||||||
VALUE "FileVersion", "1.0.30.0"
|
VALUE "FileVersion", "1.0.31.0"
|
||||||
VALUE "InternalName", "oscar64.exe"
|
VALUE "InternalName", "oscar64.exe"
|
||||||
VALUE "LegalCopyright", "Copyright (C) 2021"
|
VALUE "LegalCopyright", "Copyright (C) 2021"
|
||||||
VALUE "OriginalFilename", "oscar64.exe"
|
VALUE "OriginalFilename", "oscar64.exe"
|
||||||
VALUE "ProductName", "oscar64"
|
VALUE "ProductName", "oscar64"
|
||||||
VALUE "ProductVersion", "1.0.30.0"
|
VALUE "ProductVersion", "1.0.31.0"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
|
|
@ -564,15 +564,15 @@
|
||||||
{
|
{
|
||||||
"Name" = "8:Microsoft Visual Studio"
|
"Name" = "8:Microsoft Visual Studio"
|
||||||
"ProductName" = "8:oscar64"
|
"ProductName" = "8:oscar64"
|
||||||
"ProductCode" = "8:{3661BD30-0CEA-48FD-9F79-F3EE87E35F13}"
|
"ProductCode" = "8:{62476C9D-FE04-46D6-94CA-6521843D6575}"
|
||||||
"PackageCode" = "8:{A215641A-3D35-468B-AAAA-AB1067861712}"
|
"PackageCode" = "8:{67130DB4-0306-455D-881B-FCE28C4AB1C9}"
|
||||||
"UpgradeCode" = "8:{9AB61EFF-ACAC-4079-9950-8D96615CD4EF}"
|
"UpgradeCode" = "8:{9AB61EFF-ACAC-4079-9950-8D96615CD4EF}"
|
||||||
"AspNetVersion" = "8:2.0.50727.0"
|
"AspNetVersion" = "8:2.0.50727.0"
|
||||||
"RestartWWWService" = "11:FALSE"
|
"RestartWWWService" = "11:FALSE"
|
||||||
"RemovePreviousVersions" = "11:TRUE"
|
"RemovePreviousVersions" = "11:TRUE"
|
||||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||||
"InstallAllUsers" = "11:FALSE"
|
"InstallAllUsers" = "11:FALSE"
|
||||||
"ProductVersion" = "8:1.0.30"
|
"ProductVersion" = "8:1.0.31"
|
||||||
"Manufacturer" = "8:oscar64"
|
"Manufacturer" = "8:oscar64"
|
||||||
"ARPHELPTELEPHONE" = "8:"
|
"ARPHELPTELEPHONE" = "8:"
|
||||||
"ARPHELPLINK" = "8:"
|
"ARPHELPLINK" = "8:"
|
||||||
|
@ -1086,7 +1086,7 @@
|
||||||
{
|
{
|
||||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_FB2E467BC172457785F4279BB0BFE8B6"
|
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_FB2E467BC172457785F4279BB0BFE8B6"
|
||||||
{
|
{
|
||||||
"SourcePath" = "8:..\\Debug\\oscar64.exe"
|
"SourcePath" = "8:..\\Release\\oscar64.exe"
|
||||||
"TargetName" = "8:"
|
"TargetName" = "8:"
|
||||||
"Tag" = "8:"
|
"Tag" = "8:"
|
||||||
"Folder" = "8:_C95D3F098F884652A04D707B55B980EE"
|
"Folder" = "8:_C95D3F098F884652A04D707B55B980EE"
|
||||||
|
|
Loading…
Reference in New Issue