housekeeping
This commit is contained in:
@@ -123,6 +123,9 @@ using uint = unsigned int;
|
||||
using uchar = unsigned char;
|
||||
using Bytes = std::vector<uint8_t>;
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
|
||||
using OWBlockset = std::vector<std::vector<uint16_t>>;
|
||||
struct OWMapTiles {
|
||||
OWBlockset light_world; // 64 maps
|
||||
@@ -131,8 +134,6 @@ struct OWMapTiles {
|
||||
};
|
||||
using OWMapTiles = struct OWMapTiles;
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace core {
|
||||
|
||||
constexpr uint32_t kRedPen = 0xFF0000FF;
|
||||
|
||||
@@ -30,23 +30,21 @@ void ShowOpenFileDialogImpl(void (^completionHandler)(std::string)) {
|
||||
|
||||
std::string ShowOpenFileDialogSync() {
|
||||
__block std::string result;
|
||||
|
||||
|
||||
ShowOpenFileDialogImpl(^(std::string filePath) {
|
||||
result = filePath;
|
||||
});
|
||||
|
||||
// Check if the documentPicker is done
|
||||
// while (result.empty()) {
|
||||
// [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]];
|
||||
// }
|
||||
|
||||
// Check if the documentPicker is done
|
||||
// while (result.empty()) {
|
||||
// [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]];
|
||||
// }
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
std::string FileDialogWrapper::ShowOpenFileDialog() {
|
||||
return ShowOpenFileDialogSync();
|
||||
}
|
||||
std::string FileDialogWrapper::ShowOpenFileDialog() { return ShowOpenFileDialogSync(); }
|
||||
|
||||
std::string FileDialogWrapper::ShowOpenFolderDialog() { return ""; }
|
||||
|
||||
|
||||
@@ -441,7 +441,6 @@ class Rom : public core::ExperimentFlags {
|
||||
auto begin() { return rom_data_.begin(); }
|
||||
auto end() { return rom_data_.end(); }
|
||||
auto data() { return rom_data_.data(); }
|
||||
auto push_back(uint8_t byte) { rom_data_.push_back(byte); }
|
||||
auto vector() const { return rom_data_; }
|
||||
auto filename() const { return filename_; }
|
||||
auto is_loaded() const { return is_loaded_; }
|
||||
|
||||
Reference in New Issue
Block a user