win32: Try another fix for string.

This commit is contained in:
BearOso 2025-06-12 17:04:03 -05:00
parent d3a1c3a6f3
commit ddc2014bba
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,8 @@ static std::string trim_quotes(std::string str)
bool IniFile::load_file(std::string filename)
{
std::ifstream file;
file.open(filename, std::ios_base::binary);
// Windows ifstream wrapper wants c_str
file.open(filename.c_str(), std::ios_base::binary);
if (!file.is_open())
{
printf("No file %s\n", filename.c_str());