mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-01-12 18:39:32 +08:00
fix vs warnings
This commit is contained in:
parent
6066d0cbe8
commit
6328061212
@ -521,7 +521,7 @@ void Steam_GameStats::save_session_to_disk(Steam_GameStats::Session_t &session,
|
||||
ss << "\"" << name_str << "\",\"" << val_str << "\"\n";
|
||||
}
|
||||
auto ss_str = ss.str();
|
||||
Local_Storage::store_file_data(folder_u8_str, "session_attributes.csv", ss_str.c_str(), ss_str.size());
|
||||
Local_Storage::store_file_data(folder_u8_str, "session_attributes.csv", ss_str.c_str(), (unsigned int)ss_str.size());
|
||||
}
|
||||
|
||||
// save each table
|
||||
@ -588,7 +588,7 @@ void Steam_GameStats::save_session_to_disk(Steam_GameStats::Session_t &session,
|
||||
}
|
||||
ss_table << "\n";
|
||||
auto ss_str = ss_table.str();
|
||||
Local_Storage::store_file_data(folder_u8_str, table_name.c_str(), ss_str.c_str(), ss_str.size());
|
||||
Local_Storage::store_file_data(folder_u8_str, table_name.c_str(), ss_str.c_str(), (unsigned int)ss_str.size());
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -362,7 +362,7 @@ int Steam_Matchmaking::AddFavoriteGame( AppId_t nAppID, uint32 nIP, uint16 nConn
|
||||
directory_path = file_path.substr(0, file_directory);
|
||||
file_name = file_path.substr(file_directory);
|
||||
}
|
||||
Local_Storage::store_file_data(directory_path, file_name, (char *)list.data(), list.size());
|
||||
Local_Storage::store_file_data(directory_path, file_name, (char *)list.data(), (unsigned int)list.size());
|
||||
|
||||
++list_lines;
|
||||
return static_cast<int>(list_lines);
|
||||
@ -379,7 +379,7 @@ int Steam_Matchmaking::AddFavoriteGame( AppId_t nAppID, uint32 nIP, uint16 nConn
|
||||
directory_path = file_path.substr(0, file_directory);
|
||||
file_name = file_path.substr(file_directory);
|
||||
}
|
||||
Local_Storage::store_file_data(directory_path, file_name, (char *)newip_string.data(), newip_string.size());
|
||||
Local_Storage::store_file_data(directory_path, file_name, (char *)newip_string.data(), (unsigned int)newip_string.size());
|
||||
|
||||
return 1;
|
||||
}
|
||||
@ -429,7 +429,7 @@ bool Steam_Matchmaking::RemoveFavoriteGame( AppId_t nAppID, uint32 nIP, uint16 n
|
||||
directory_path = file_path.substr(0, file_directory);
|
||||
file_name = file_path.substr(file_directory);
|
||||
}
|
||||
Local_Storage::store_file_data(directory_path, file_name, (char *)list.data(), list.size());
|
||||
Local_Storage::store_file_data(directory_path, file_name, (char *)list.data(), (unsigned int)list.size());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user