Skip to content

Commit 89f0797

Browse files
committed
remove banner for windows stuff
1 parent 6ccc028 commit 89f0797

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

src/ProjectManager.cpp

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ void ExtractFolderISO(std::shared_ptr<Disk::Folder> folder){
2323
std::filesystem::create_directory(folder->GetName());
2424
std::filesystem::current_path(std::filesystem::current_path() / folder->GetName());
2525

26-
for(auto file : folder->GetFiles()){
27-
bStream::CFileStream extractFile(file->GetName(), bStream::Endianess::Big, bStream::OpenMode::Out);
28-
extractFile.writeBytes(file->GetData(), file->GetSize());
29-
}
3026

3127
for(auto subdir : folder->GetSubdirectories()){
3228
ExtractFolderISO(subdir);
3329
}
3430

31+
for(auto file : folder->GetFiles()){
32+
bStream::CFileStream extractFile(file->GetName(), bStream::Endianess::Big, bStream::OpenMode::Out);
33+
extractFile.writeBytes(file->GetData(), file->GetSize());
34+
}
35+
3536
std::filesystem::current_path(std::filesystem::current_path().parent_path());
3637
}
3738

@@ -62,15 +63,15 @@ void Init(){
6263
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
6364
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
6465

65-
std::vector<uint8_t> bnrImgData(96*32*4);
66-
std::filesystem::path bannerPath(std::filesystem::path(project.get<std::string>()) / "files" / "opening.bnr");
67-
if(std::filesystem::exists(bannerPath)){
68-
bStream::CFileStream bnr(bannerPath.string(), bStream::Endianess::Big, bStream::OpenMode::In);
69-
bnr.seek(0x1820);
70-
ProjectNames[project.get<std::string>()] = bnr.readString(0x20);
71-
bnr.seek(0x20);
72-
ImageFormat::Decode::RGB5A3(&bnr, 96, 32, bnrImgData.data());
73-
}
66+
//std::vector<uint8_t> bnrImgData(96*32*4);
67+
//std::filesystem::path bannerPath(std::filesystem::path(project.get<std::string>()) / "files" / "opening.bnr");
68+
//if(std::filesystem::exists(bannerPath)){
69+
// bStream::CFileStream bnr(bannerPath.string(), bStream::Endianess::Big, bStream::OpenMode::In);
70+
// bnr.seek(0x1820);
71+
// ProjectNames[project.get<std::string>()] = bnr.readString(0x20);
72+
// bnr.seek(0x20);
73+
// ImageFormat::Decode::RGB5A3(&bnr, 96, 32, bnrImgData.data());
74+
//}
7475

7576
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 96, 32, 0, GL_RGBA, GL_UNSIGNED_BYTE, bnrImgData.data());
7677
glBindTexture(GL_TEXTURE_2D, 0);

0 commit comments

Comments
 (0)