Jump to content

bossy_max

Inactive Member
  • Posts

    22
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by bossy_max

  1. 8 hours ago, martysama0134 said:

    This is its definition:

    template<typename T, typename... Args>
    std::unique_ptr<T> make_unique(Args&&... args)
    {
        return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
    }

    i will use it this thank you

    m_pointsInstant.playerSlots = std::unique_ptr<character_point_instant::PlayerSlotT>(new character_point_instant::PlayerSlotT());

     

  2. On 9/8/2022 at 5:36 PM, Amun said:

    Pretty cool idea.

    By using what Marty posted here

      Reveal hidden contents

     

    The core reduced memory usage from 471 MB to 221, with a peak of 243 MB when booting(loading).

    .png

     

    i did everything the same but there is such a bug

    https://metin2.download/picture/9Zj97oEe003IAgxykVqjZ4kYmlK86Z02/.png

    and i used unique_ptr instead of make_unique in part SetPlayerProto.

  3. def ExitSelect(self):
    	import uiCommon
    	self.selectDialog = uiCommon.QuestionDialog()
    	self.selectDialog.SetText("what do you want to do?")
    	self.selectDialog.SetAcceptEvent(ui.__mem_func__(self.SelectPortal), 1)
    	self.selectDialog.SetCancelEvent(ui.__mem_func__(self.SelectPortal), 0)
    	self.selectDialog.Open()
    
    def	SelectPortal(self, arg):
    	if not arg == 0:
    		if LEAVE_BUTTON_FOR_POTAL:
    			if app.loggined:
    				self.stream.SetPhaseWindow(0)
    			else:
    				self.stream.setloginphase()
    		else:
    			self.stream.SetLoginPhase()
    		self.Hide()

     

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.