-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1466 from dpogue/cleanups
hsMessageBox Cleanups
- Loading branch information
Showing
40 changed files
with
466 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,6 +106,7 @@ You can contact Cyan Worlds, Inc. by email [email protected] | |
#include "plMessage/plResPatcherMsg.h" | ||
#include "plMessage/plRoomLoadNotifyMsg.h" | ||
#include "plMessage/plTransitionMsg.h" | ||
#include "plMessageBox/hsMessageBox.h" | ||
#include "plModifier/plSimpleModifier.h" | ||
#include "plNetClient/plLinkEffectsMgr.h" | ||
#include "plNetClient/plNetLinkingMgr.h" | ||
|
@@ -442,7 +443,7 @@ bool plClient::InitPipeline(hsWindowHndl display, uint32_t devType) | |
|
||
if (!devSel.GetRequested(&dmr, devType)) | ||
{ | ||
hsMessageBox("No suitable rendering devices found.","Plasma", hsMessageBoxNormal, hsMessageBoxIconError); | ||
hsMessageBox(ST_LITERAL("No suitable rendering devices found."), ST_LITERAL("Plasma"), hsMessageBoxNormal, hsMessageBoxIconError); | ||
return true; | ||
} | ||
|
||
|
@@ -490,9 +491,9 @@ bool plClient::InitPipeline(hsWindowHndl display, uint32_t devType) | |
{ | ||
ISetGraphicsDefaults(); | ||
#ifdef PLASMA_EXTERNAL_RELEASE | ||
hsMessageBox("There was an error initializing the video card.\nSetting defaults.", "Error", hsMessageBoxNormal); | ||
hsMessageBox(ST_LITERAL("There was an error initializing the video card.\nSetting defaults."), ST_LITERAL("Error"), hsMessageBoxNormal); | ||
#else | ||
hsMessageBox( pipe->GetErrorString(), "Error creating pipeline", hsMessageBoxNormal ); | ||
hsMessageBox(ST::string(pipe->GetErrorString()), ST_LITERAL("Error creating pipeline"), hsMessageBoxNormal); | ||
#endif | ||
delete pipe; | ||
devSel.GetDefault(&dmr); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ You can contact Cyan Worlds, Inc. by email [email protected] | |
#include "plPipeline.h" | ||
|
||
#include "plClientResMgr/plClientResMgr.h" | ||
#include "plMessageBox/hsMessageBox.h" | ||
#include "plNetClient/plNetClientMgr.h" | ||
#include "plPhysX/plSimulationMgr.h" | ||
#include "plResMgr/plResManager.h" | ||
|
@@ -57,7 +58,7 @@ void plClientLoader::Run() | |
hsgResMgr::Init(resMgr); | ||
|
||
if (!plFileInfo("resource.dat").Exists()) { | ||
hsMessageBox("Required file 'resource.dat' not found.", "Error", hsMessageBoxNormal); | ||
hsMessageBox(ST_LITERAL("Required file 'resource.dat' not found."), ST_LITERAL("Error"), hsMessageBoxNormal); | ||
return; | ||
} | ||
plClientResMgr::Instance().ILoadResources("resource.dat"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,7 @@ You can contact Cyan Worlds, Inc. by email [email protected] | |
#include "plNetClient/plNetClientMgr.h" | ||
#include "plNetGameLib/plNetGameLib.h" | ||
#include "plMessage/plDisplayScaleChangedMsg.h" | ||
#include "plMessageBox/hsMessageBox.h" | ||
#include "plPhysX/plPXSimulation.h" | ||
#include "plPipeline/hsG3DDeviceSelector.h" | ||
#include "plResMgr/plLocalization.h" | ||
|
@@ -1132,7 +1133,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC | |
{ | ||
if(!CreateProcessW(s_patcherExeName, nullptr, nullptr, nullptr, FALSE, 0, nullptr, nullptr, &si, &pi)) | ||
{ | ||
hsMessageBox("Failed to launch patcher", "Error", hsMessageBoxNormal); | ||
hsMessageBox(ST_LITERAL("Failed to launch patcher"), ST_LITERAL("Error"), hsMessageBoxNormal); | ||
} | ||
CloseHandle( pi.hThread ); | ||
CloseHandle( pi.hProcess ); | ||
|
@@ -1186,7 +1187,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC | |
message = ST_LITERAL("Another copy of URU is already running"); | ||
break; | ||
} | ||
hsMessageBox(message.to_wchar().c_str(), caption.to_wchar().c_str(), hsMessageBoxNormal); | ||
hsMessageBox(message, caption, hsMessageBoxNormal); | ||
return PARABLE_NORMAL_EXIT; | ||
} | ||
#endif | ||
|
@@ -1204,13 +1205,13 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC | |
} | ||
else | ||
{ | ||
hsMessageBox("No server.ini file found. Please check your URU installation.", "Error", hsMessageBoxNormal); | ||
hsMessageBox(ST_LITERAL("No server.ini file found. Please check your URU installation."), ST_LITERAL("Error"), hsMessageBoxNormal); | ||
return PARABLE_NORMAL_EXIT; | ||
} | ||
|
||
// Begin initializing the client in the background | ||
if (!WinInit(hInst)) { | ||
hsMessageBox("Failed to initialize plClient", "Error", hsMessageBoxNormal); | ||
hsMessageBox(ST_LITERAL("Failed to initialize plClient"), ST_LITERAL("Error"), hsMessageBoxNormal); | ||
return PARABLE_NORMAL_EXIT; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,7 @@ You can contact Cyan Worlds, Inc. by email [email protected] | |
#include "resource.h" | ||
|
||
#include "plClipboard/plClipboard.h" | ||
#include "plMessageBox/hsMessageBox.h" | ||
|
||
#include "pfCrashHandler/plCrashSrv.h" | ||
|
||
|
@@ -380,7 +381,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine | |
IShowCrashDialog(hInstance); | ||
return 0; | ||
} else { | ||
hsMessageBox("You should never run this manually.", "Error", hsMessageBoxNormal, hsMessageBoxIconExclamation); | ||
hsMessageBox(ST_LITERAL("You should never run this manually."), ST_LITERAL("Error"), hsMessageBoxNormal, hsMessageBoxIconExclamation); | ||
return 1; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ target_link_libraries( | |
CoreLib | ||
pnAsyncCore | ||
pnNetBase | ||
plMessageBox | ||
plNetGameLib | ||
plStatusLog | ||
plWinDpi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.