Jump to content

BSScaleformTranslator - correct way to retrieve?


Arizona_Steve

Recommended Posts

Posted

Simple question - I believe I may have my code (in the Random Sex mod) incorrect. From version 2:

 

	const GFxLoader* const loader = GFxLoader::GetSingleton();
	GFxStateBag* const stateBag = (loader == nullptr) ? nullptr : loader->stateBag;
	const BSScaleformTranslator* const translator = (stateBag == nullptr) ? nullptr : stateBag->GetTranslator();

	if (translator == nullptr) {
		_WARNING(ERROR_TRANSLATOR_LOAD);
		return "";
	}

 

Is there a more correct way of doing this? I believe the code above may be responsible for CTDs when generating notifications.

 

Edit: Didn't realize there was a separate tech support section for SE, but I suspect the code is similar for both (the above is for AE).

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...