aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/frontend/qt_sdl/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index 75317f8..f77c287 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -1413,7 +1413,7 @@ std::string extractROM(char* zipName, std::string zipDir){
zip_stat_index(z, 0, 0, &st); //Get information about the file at index 0
//Allocate memory for its uncompressed contents
- char *contents = new char[st.size];
+ u8 *contents = new u8[st.size];
//Read the compressed file
zip_file *f = zip_fopen_index(z, 0, 0); //Open file at index 0
@@ -1423,7 +1423,7 @@ std::string extractROM(char* zipName, std::string zipDir){
zip_close(z);
//Write the file (binary mode)
- std::ofstream(zipDir + "/" + st.name, std::ofstream::binary).write(contents, st.size);
+ std::ofstream(zipDir + "/" + st.name, std::ofstream::binary).write((char*) contents, st.size);
delete[] contents;
return zipDir + "/" + st.name;
}