Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
user-grinch committed Mar 5, 2022
1 parent 5291e10 commit f42a8f7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Binary file added resource/MapEditor/fonts/text.ttf
Binary file not shown.
14 changes: 13 additions & 1 deletion src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@ void EditorThread(void* param)
{
ObjManager::Init();
Updater::CheckUpdate();
Sleep(3000);
/*
Wait for game init
Doing it like this doesn't prevent you to attach debugger
*/
static bool gameStarted = false;
Events::processScriptsEvent +=[]{
gameStarted = true;
};

while (!gameStarted)
{
Sleep(500);
}
// -------------------------------------------------------------

gLog << "Starting...\nVersion: " EDITOR_VERSION "\nAuthor: Grinch_\nDiscord: " DISCORD_INVITE "\nMore Info: "
Expand Down
2 changes: 1 addition & 1 deletion src/filemgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void FileMgr::ImportIPL(std::string fileName, bool logImports)
{
gLog << "Pasing line: " << line << std::endl;
}

int hObj;
Command<Commands::REQUEST_MODEL>(model);
Command<Commands::LOAD_ALL_MODELS_NOW>();
Expand Down

0 comments on commit f42a8f7

Please sign in to comment.