Skip to content

Windows 9x support#572

Open
Un1q32 wants to merge 8 commits intonbcraft-org:masterfrom
Un1q32:master
Open

Windows 9x support#572
Un1q32 wants to merge 8 commits intonbcraft-org:masterfrom
Un1q32:master

Conversation

@Un1q32
Copy link
Copy Markdown
Contributor

@Un1q32 Un1q32 commented Mar 28, 2026

Will test NT 3 later

Un1q32 added 4 commits March 26, 2026 16:08
We now store screenshots in the storage directory on Windows, this is
consistent with SDL
@Un1q32 Un1q32 changed the title Windows NT 4.0 support Theoretical Windows NT 4.0 support Mar 28, 2026
@Un1q32 Un1q32 changed the title Theoretical Windows NT 4.0 support Windows 9x support Mar 28, 2026
createFolderIfNotExists(screenshot_path.c_str());

screenshot_path += fileName;
screenshot_path += '\\' + fileName;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I could be wrong here, but I don't think this works. As far as I know, in order to concatenate a c-string and an std::string, you need to use an operator overload or directly call a function. In this case, there is no operator overload for + on a char*, so I can't imagine how this would work. Feel free to correct me though. I imagine you could solve this by appending the backslash on the line above.

else
storagePath = ".";
} else
storagePath = appdata;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrap this in curly braces like the rest of the if statement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants